Developer tools

Layered box-shadow generator

Stack several shadow layers into one soft box-shadow, preview it and copy the CSS. Each layer reaches further and blurs more than the last.

Runs in your browser. Nothing you enter is uploaded.

CSS

About this tool

This generator builds a layered box-shadow from 1 to 8 stacked shadows and shows a live preview. Offset and blur grow quadratically from the first layer to the last, and the opacity you set is split evenly across the layers, so the total stays close to the value on the slider.

Why use several shadow layers instead of one?
A single shadow has one hard falloff. Stacking small, close layers with larger, softer ones gives a more gradual edge that reads closer to real light.
Which color formats can I enter?
Any color your browser accepts in CSS, such as hex, rgb(), hsl() or a named color. The output writes it as rgb() with the per-layer opacity.