Skip to content
MyDailyTool

Box Shadow Generator

Compose CSS box-shadow visually — adjust X/Y offset, blur, spread, and color with a live preview. Copy the final CSS rule with one click. Supports multiple shadow layers.

box-shadow: 0px 8px 24px -8px rgba(99, 102, 241, 0.40);

How to use the box shadow generator

Tweak the sliders to compose a CSS box-shadow. The preview updates live; click Copy when satisfied.

Formula & explanation

box-shadow: [inset?] x y blur spread color. Multiple shadows can be comma-separated to layer effects.

Examples

Default: a soft indigo glow under the box.

Frequently asked questions

What do the four box-shadow values mean?
In order: horizontal offset, vertical offset, blur radius, and spread radius — all in pixels. A positive Y offset drops the shadow down; negative lifts it up.
How does spread affect the shadow?
Positive spread expands the shadow beyond the element's edges; negative spread shrinks it, which is useful for creating tight, realistic depth effects.
What does the 'inset' option do?
Inset flips the shadow to the inside of the element, making it look sunken or pressed in rather than raised.
Can I stack multiple box shadows?
Yes — copy this output and comma-separate it with another shadow declaration (e.g. box-shadow: 0 2px 4px #000, 0 8px 24px rgba(0,0,0,.2);) to layer effects.

Related design & css tools