← Tools

Free tool

Shadow generator

Layer up to six box-shadows, or let the smooth generator build a stack that falls off like real light.

Presets

Smooth shadow

px
%
%
Shadow colour

These sliders rewrite the layer stack below. Fine-tune any layer by hand afterwards.

Layers 5/6

Stage

Background
Object
px
box-shadow:
  0 1px 2px 0 rgba(16, 28, 61, 0.094),
  0 6px 15px -1px rgba(16, 28, 61, 0.079),
  0 13px 32px -2px rgba(16, 28, 61, 0.065),
  0 23px 57px -3px rgba(16, 28, 61, 0.05),
  0 36px 89px -4px rgba(16, 28, 61, 0.036);

How the shadow generator works

Realistic shadows are made of several layers: a tight, dark one close to the object and wider, softer ones further away. Edit up to six layers by hand, or use the smooth generator to build the whole stack from two sliders.

Why use layered box shadows instead of one?
A single box-shadow looks flat because real light produces a sharp contact shadow plus a soft, spread-out ambient one. Stacking several shadows with increasing blur and offset mimics that falloff.
Can I use these shadows in Tailwind CSS?
Yes. The Tailwind tab outputs an arbitrary shadow class such as shadow-[0_1px_2px_rgba(0,0,0,0.06),0_8px_24px_rgba(0,0,0,0.08)] that you can paste into className.

More from the workshop