Box Shadow Generator
The Box Shadow Generator turns the CSS box-shadow syntax into something you can see while you tune it. Drag the X and Y offset sliders, pick a color, set the opacity, and the preview block reflects every change in the same frame. Stack as many layers as you need — that's how real designers build elevation, with one tight inner shadow and one soft outer one — and toggle the inset flag per layer. When the shadow looks right, copy the CSS declaration with one click. No Figma plugin, no Tailwind config, no Adobe sign-in. Six presets cover the patterns you'll use 80% of the time: subtle, medium, large, brutalist, glow, inset.
The tool content is available above. The interactive widget will be added soon.
How to use
- 1
Pick a preset to start, or tweak from the Medium default. Subtle is a card. Brutalist is a hard offset, no blur. Glow is a colored, blurred, spread-out shadow.
- 2
Drag the X and Y offset sliders. X is horizontal (positive = right). Y is vertical (positive = down).
- 3
Drag the Blur slider to soften the edges. 0 = sharp pixel-perfect edge. 20+ = diffused like ambient light.
- 4
Use the Spread slider to expand or contract the shadow before it blurs. Negative spread is how designers create that 'tight at the surface, soft underneath' elevation feel.
- 5
Pick a color and an opacity. Most card shadows are black at 8-12% — pure black at 100% looks heavy and dated.
- 6
Tap 'Add layer' to stack a second shadow. Stack a tight 1px-blur and a soft 8px-blur and you have a Material-style elevation.
- 7
Toggle the Inset checkbox per layer if you want the shadow rendered inside the element — useful for sunken inputs, pressed-button states, and recessed surfaces.
- 8
Hit Copy. The CSS is on your clipboard, ready to paste into your stylesheet or any tool that accepts a box-shadow value.
Related tools
Frequently asked questions
Ratings & Reviews
Rate this tool
Sign in to rate and review this tool.