CSS Box Shadow Generator
Visually generate CSS box-shadow properties with sliders. See a live preview and copy the CSS code.
Features
How to Use
1. Shape the shadow with the sliders — the neutral card on the stage shows exactly what ships.
2. Real-world shadows are layered: add up to four layers, or start from a preset (Soft, Elevated, Floating, Inner).
3. Switch the stage surface to check the shadow on white, grey and deep backgrounds, then copy the CSS.
About this tool
Convincing shadows in interfaces are usually made of more than one layer: a tight, darker shadow for contact and a wide, soft one for distance. This generator lets you stack up to four box-shadow layers, adjusting horizontal and vertical offset, blur, spread, colour, opacity and inset for each, while a neutral card on the stage shows the exact result. Presets give you starting points — Soft, Elevated, Floating and Inner — and you can switch the stage between white, grey and dark surfaces to check that the shadow still reads on each. The generated CSS lists the layers in the correct order with rgba colours, ready to paste into a stylesheet or design token file.