CSS Box Shadow Generator
Drag the sliders and get a ready-to-paste CSS box-shadow line.
Preview
Settings
Offsets, blur, spread, color and opacity come from sliders, the preview box updates as you drag, and the same values appear as one box-shadow line. Everything runs in the page and nothing is saved. A refresh brings back the defaults, so use Copy before you leave.
The default is box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.1);. Each preset button moves the sliders to these values.
| Preset | Value in the CSS Code box |
|---|---|
| Subtle | 0px 1px 3px 0px rgba(0, 0, 0, 0.1) |
| Medium | 0px 4px 6px -1px rgba(0, 0, 0, 0.1) |
| Large | 0px 10px 15px -3px rgba(0, 0, 0, 0.1) |
| Sharp | 5px 5px 0px 0px rgba(0, 0, 0, 0.2) |
| Dreamy | 0px 25px 50px -12px rgba(0, 0, 0, 0.25) |
| Inset | inset 0px 2px 4px 0px rgba(0, 0, 0, 0.1) |
The ranges are -100 to 100px for offsets, 0 to 100px for blur, -50 to 50px for spread, and 0 to 100% for opacity. Medium, Large and Dreamy use a negative spread, which pulls the sides in so the shadow shows mostly below the box. The box and background colors only affect the preview and never appear in the code.
The tool makes one shadow layer. For two layers, build each and join them with a comma. An opacity readout like 7.000000000000001% is only a display quirk; the code holds 0.07. If a shadow looks clipped, check the parent for overflow: hidden.