← Back to tools

Box Shadow Generator

Build CSS box-shadow visually. Add layers, tweak values, copy the code.

Shadow Layers

The CSS box-shadow property adds shadow effects to elements. Its syntax is: box-shadow: offset-x offset-y blur-radius spread-radius color. The offset controls the shadow's position, blur controls softness, and spread expands or contracts the shadow size. Adding the inset keyword creates an inner shadow.

Layered shadows create depth and realism that single shadows can't achieve. Modern UI design uses multiple subtle shadow layers — for example, a tight dark shadow for definition combined with a larger, softer shadow for elevation. This approach mimics how real-world light creates both umbra (sharp) and penumbra (soft) shadows.

Performance tip: box-shadow triggers a repaint but not a reflow, making it safe for hover effects and transitions. However, very large blur values (100px+) on many elements can impact scroll performance. For elements that animate frequently, consider using filter: drop-shadow() instead, as it can be GPU-accelerated in some browsers.

This tool in other languages:

Français:
Générateur de box-shadow CSS

Español:
Generador de box-shadow CSS

Deutsch:
CSS Box-Shadow Generator

Português:
Gerador de box-shadow CSS

日本語:
CSSボックスシャドウジェネレーター

中文:
CSS 阴影生成器

한국어:
CSS 박스 그림자 생성기

العربية:
مولد ظل CSS