Box Shadow

Drag the sliders, pick a color, preview the box-shadow live and copy the CSS in one click.

Presets
Preview (drag the dot below)
CSS code

Reading the box-shadow syntax

A CSS shadow is written in this order:

box-shadow: offset-x offset-y blur spread color inset;

ValueWhat it does
offset-x / offset-yHow far the shadow sits from the element. Positive x moves right, positive y moves down.
blurSoftness. 0 gives a hard edge; larger values fade the shadow out.
spreadGrows or shrinks the shadow before blurring. Negative values tighten it.
colorAlmost always semi-transparent black — rgba(0,0,0,.1) and friends.
insetDraws the shadow inside the element instead of behind it.

Shadows that look real

A single shadow usually looks flat. Layering two or three — a tight one for the contact edge and a wide soft one for the ambient bleed — reads as a real object lifting off the page:

Direction matters as well. Shadow offsets should agree with the rest of the interface: if highlights come from above, shadows fall below.

Inset shadows

Adding the inset keyword moves the shadow inside the box, which is the standard trick for pressed buttons, recessed input fields and progress tracks. Note that an inset shadow is painted above the background but below the content, so text stays readable.

Performance notes

Related tools

Gradient generator Contrast checker Colour palette

FAQ

What do the box-shadow parameters mean?
In order: X-offset (positive = right), Y-offset (positive = down), blur radius (larger = softer), spread radius (positive = bigger, negative = smaller), color (supports alpha), and an optional inset for inner shadow.
Can I stack multiple shadows?
Yes. box-shadow supports comma-separated layers — the “Card” preset is two layers stacked. This tool currently outputs a single layer; for more, copy the result and combine it by hand.
Is my data uploaded?
No. All parameter tweaking and preview happen locally in your browser; nothing is sent anywhere.