Docelora
ToolsAboutContact
Design tools

Box Shadow Generator

Create subtle, realistic shadows for cards, buttons and modals. Adjust offset, blur, spread, colour and opacity, or add a second tight shadow for natural layered depth.

Quick answer: set the values, watch the preview card, and copy the box-shadow line. Soft UI shadows usually combine a small offset, large blur, negative spread and low opacity (10–25%).

Box Shadow Generator

Offset · blur · spread · layers · inset

Runs on your device: everything you type or open is processed in this browser tab. Nothing is uploaded to Docelora or anyone else.

Shadow values

ValueEffect
Offset X / YMoves the shadow; positive Y looks like light from above
BlurSoftens the edge
SpreadGrows or shrinks the shadow; negative keeps it under the element
OpacityLower is subtler; 10–25% suits most UI
InsetDraws the shadow inside, like a pressed button
1. Adjust valuesWatch the preview.
2. Add a layerFor more realistic depth.
3. Copy the CSSPaste into your component.

Related tools

Frequently asked questions

What makes a shadow look natural?

Low opacity, a large blur, a slight downward offset and two layers.

What does negative spread do?

Shrinks the shadow so it stays tucked under the element.

What is an inset shadow?

A shadow drawn inside the element’s border.

Do shadows hurt performance?

Large blurred shadows on many animated elements can; static shadows are fine.

Can I use multiple shadows?

Yes – separate them with commas; this tool adds an optional second layer.

Should shadows be black?

A dark tint of the background or brand colour often looks better.

Is box-shadow supported everywhere?

Yes, in all current browsers.

What about text shadows?

Use the text-shadow property instead.

Do shadows work in dark mode?

They are less visible; use lighter surfaces or borders to show depth.

Can I use the colour format I like?

Any CSS colour works for the colour field.

Does border-radius affect the shadow?

Yes – the shadow follows the element’s rounded corners.

How do I make an elevation scale?

Create 3–5 shadows with increasing offset and blur.

What unit is used?

Pixels.

Can I copy the CSS?

Yes – the full declaration is ready to paste.

Is it free?

Yes – no sign-up and no watermark.

Does anything get uploaded?

No – it all runs in your browser.

Can I use the output commercially?

Yes – the generated code is yours.

Which browsers support the CSS?

All current versions of Chrome, Edge, Firefox and Safari.

Does it work on a phone?

Yes – the tool and preview are responsive.

Does the preview match my site?

It is close; your site’s fonts and backgrounds may change the look slightly.

Last reviewed: 8 November 2026.