Text & code · runs locally
CSS box-shadow generator
Stack up to three shadow layers with sliders and a live preview — copy the CSS when it looks right.
How to use this tool
- 1Tune the layers
Up to three layers, each with offset, blur, spread and alpha sliders — plus its own color and an inset toggle for inner glows.
- 2Check it on light, dark and checkered
The preview canvas switches backgrounds so the shadow reads correctly on whatever your design sits on.
- 3Copy the CSS
Output is a ready-to-paste box-shadow declaration, or “box-shadow: none” when every layer is off.
This page has no server behind it. Files are read, changed and re-built by your own browser — then they disappear when you close the tab. That's the whole privacy policy, applied.
Questions people actually ask
How many layers should I use?
Two is usually the sweet spot: a tight, low-alpha ambient shadow for contact depth plus a wider, softer one for bloom. A third inset layer works for pressed or inner-glow looks.
Why are my shadows muddy?
Usually too much alpha on a big blur. Drop the spread or alpha of the large layer, or lighten the shadow color toward your background hue instead of pure black.