Why use this tool?
- Combine several shadows in one copyable declaration.
- Tune each layer without manually editing a long CSS value.
- Start from card, glow, hard-offset, or inset presets.
Create CSS box shadows with multiple layers, blur, spread, color, and inset controls. Try card and glow presets, preview the effect, and copy the CSS.
Runs locally in your browser
Drag the marker to set the offset.
Saturation 64 percent, brightness 16 percent, hue 222 degrees.
Element color
Backdrop color
The first layer paints on top of the rest.
box-shadow: 0px 8px 24px -4px rgba(15, 23, 42, 0.18);Complete tool guide
Generate CSS box-shadow declarations for cards, panels, and inset surfaces. Build multiple layers, adjust their offsets, blur, spread, and opacity, and use the preview to compare a subtle contact shadow with a broader ambient shadow.
Your input is processed in the current browser tab and is not sent to the application server.
Pick a preset, or start from the single default layer.
Drag inside the offset pad to set the light direction.
Tune blur, spread, color, and opacity for the selected layer.
Add more layers for a natural falloff, then copy the CSS.
Positive X moves a shadow right; positive Y moves it down. The drag control changes these offsets for the selected layer.
Blur softens the edge. Positive spread expands the shadow shape and negative spread contracts it. Blur cannot be negative.
CSS paints the first listed shadow above later shadows. Inset draws a shadow inside the box instead of outside it.
Start with: The Subtle preset
box-shadow: 0px 1px 2px 0px rgba(15, 23, 42, 0.08);This low-opacity shadow provides a small edge cue. It may need adjustment against a darker page background.
Start with: The Inset preset
box-shadow: inset 0px 2px 6px 0px rgba(15, 23, 42, 0.25);The inset keyword changes where the shadow is painted; it does not change the element’s size.
A tight, faint layer can mark contact with the surface while a wider layer suggests lift. Compare the result on the actual page background before choosing opacity.
box-shadow follows the element’s box and rounded corners. For the opaque silhouette of a transparent image, CSS filter: drop-shadow() serves a different purpose and is not this tool’s output.
Outer shadows do not reserve layout space. A parent with overflow clipping can hide them, so check spacing and scroll containers in the final component.
Add layers in the editor. The output joins them with commas in a single box-shadow declaration, with the first layer painted on top.
Check ancestor overflow settings and available space. Shadows can extend outside the box without increasing its layout dimensions.
CSS can interpolate compatible shadow lists, but large animated blurs may be expensive to paint. Test performance on your target devices.
Keep working
Continue with another focused tool from the same collection.