Offset, Blur and Spread
Five sliders give precise control over every part of the shadow.
Create CSS box shadows visually with a live preview. Adjust offset, blur, spread, color and opacity, stack up to four layers and copy the code.
Includes inset shadows and background controls so you can judge the effect in context.
The CSS box-shadow property draws a shadow behind (or inside) an element. It is used to lift cards off the page, give buttons depth, and create subtle borders. A shadow is defined by its horizontal and vertical offset, its blur, its spread and its color.
Realistic shadows often layer several soft shadows together rather than using one hard one — which is why this generator supports multiple layers.
Five sliders give precise control over every part of the shadow.
Choose any shadow color and set how transparent it is.
Stack shadows for soft, realistic depth.
Switch a layer to an inner shadow for pressed or recessed looks.
Change the box color, background and corner radius to test in context.
A clean box-shadow declaration, ready to paste.
Set the offset, blur, spread and opacity.
Soft, low-opacity shadows usually look best.
Combine shadows for realistic depth.
Paste it into your stylesheet.
Quick answers about using the MoSanKit Box Shadow Generator.
In order: horizontal offset, vertical offset, blur radius, spread radius and color. An optional inset keyword puts the shadow inside the box.
Spread makes the shadow bigger (positive) or smaller (negative) than the box before blurring. Negative spread with a positive offset gives a tight, modern shadow.
Use low opacity (5–20%), a larger blur and a small vertical offset. Layering two or three soft shadows looks more natural than one heavy one.
Yes, up to four layers. They are written as a comma-separated list in the CSS.
No. Shadows are drawn outside the layout flow and do not push other elements around.
No. The CSS is generated in your browser.
Explore more free design and color tools from MoSanKit.