UtilDojo

Popular

Menu

CSS Box Shadow Generator — Layered Shadows

  • This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Presets

Layers

0px
10px
25px
-5px
20%

Card & background

16px

box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);

About this tool

Drag the sliders for offset, blur, spread, colour and opacity and watch the shadow update on a live card, and tick Inset shadow to draw a layer inside the box instead of behind it. Add more layers for realistic depth — several faint shadows at increasing distances look far more natural than one dark one. Each layer has its own tab.

Presets cover the common looks: soft, layered, sharp, floating, inset, glow and neumorphic. The tool opens on Soft, 0 10px 25px -5px rgba(0, 0, 0, 0.2): pushed 10px down with a negative spread so little of it shows above or beside the card. Change the card and background colours and the border radius to see how the shadow reads on your actual design.

The layered technique is worth learning. Pick Layered and the output is three shadows at 7% opacity, each about four times further away than the last: 0 1px 2px 0 rgba(0, 0, 0, 0.07), 0 4px 8px 0 rgba(0, 0, 0, 0.07), 0 16px 32px 0 rgba(0, 0, 0, 0.07). The tight one defines the edge, the middle one gives body and the wide one suggests ambient light, so together they read as a real object.

Copy the result as a plain CSS box-shadow declaration or as a Tailwind arbitrary-value class such as shadow-[0_10px_25px_-5px_rgba(0,0,0,0.2)]. Colours are written as rgba(), or rgb() at full opacity. For the corner shape itself use the Border Radius generator. Everything is rendered in your browser; nothing is sent to a server.

Frequently asked questions

What do blur and spread do?

Blur softens the shadow’s edge; spread grows (positive) or shrinks (negative) the shadow before blurring. A negative spread with a large blur gives the soft, lifted look used in most modern UIs.

Can a box have more than one shadow?

Yes. box-shadow takes a comma-separated list; this tool builds that list from your layers, with Layer 1 first. The first shadow is painted on top, so put the tightest one first.

What is an inset shadow?

An inset shadow is drawn inside the element’s border instead of outside, making it look pressed in — useful for inputs and toggles. The Inset preset is `inset 0 2px 6px 0 rgba(0, 0, 0, 0.25)`.

How do I make a glow instead of a shadow?

Set both offsets to 0, give the shadow a colour instead of black, and add a little positive spread. The Glow preset does this with `0 0 24px 4px rgba(249, 115, 22, 0.6)`.

How do I make a neumorphic (soft UI) effect?

Use two opaque shadows on opposite sides — a darker one at 8px 8px and a white one at −8px −8px, both blurred by 16px — on a box the same colour as the page. The Neumorphic preset sets this up, including the matching `#e0e0e0` card and background.

Related tools