Processing your request...
Stack up to 5 shadow layers with a live preview and presets. Copy the CSS or a Tailwind class.
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
shadow-[0_10px_15px_-3px_rgb(0_0_0/0.1),0_4px_6px_-4px_rgb(0_0_0/0.1)]
In order: inset? x y blur spread color. Separate layers with commas.
| Value | Example | What it does |
|---|---|---|
| inset | Optional | Draws the shadow inside the box |
| offset-x | 4px | Moves it right (negative moves it left) |
| offset-y | 4px | Moves it down (negative moves it up) |
| blur | 12px | Softness; 0 gives a hard edge. Can't be negative |
| spread | -2px | Grows or shrinks the shadow before blurring |
| color | rgb(0 0 0 / 0.1) | Use transparency for natural shadows |
The built-in Tailwind v4 shadows and their CSS.
| Preview | Class | CSS |
|---|---|---|
| shadow-2xs | 0 1px rgb(0 0 0 / 0.05) | |
| shadow-xs | 0 1px 2px 0 rgb(0 0 0 / 0.05) | |
| shadow-sm | 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1) | |
| shadow-md | 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) | |
| shadow-lg | 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) | |
| shadow-xl | 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) | |
| shadow-2xl | 0 25px 50px -12px rgb(0 0 0 / 0.25) |
Pick Card, Floating, Smooth or another starting point.
Change the offset, blur, spread, color and opacity, or add another layer.
Paste the CSS or Tailwind class into your project.
Stack soft and sharp shadows for depth that looks natural.
Set the background, box color and corner radius to match your design.
Paste any box-shadow value to load it into the editor.
Copy the CSS or a Tailwind shadow-[…] class that works in v3 and v4.
Your rating helps us decide what to improve.