CSS box-shadow generator
Build layered box shadows visually and copy the CSS or Tailwind class. Free, private, no sign-up.
Free to use, no sign-up.
How it works
- Start from a preset, the smooth layered builder, or paste a box-shadow you already have. Add, reorder and edit layers with the sliders.
- Watch the preview change on a box and background you choose, in light or dark.
- Copy the CSS, a CSS variable version, or a Tailwind arbitrary-value class. Everything runs in your browser.
Questions
Why use more than one shadow layer?
A single shadow tends to look flat or harsh. Stacking several layers with growing offsets and blur, each at low opacity, imitates how light really falls off and gives a softer, more natural depth. The smooth layered builder creates such a stack for you.
How do I use the result in Tailwind CSS?
Copy the Tailwind output, for example shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1),0_2px_4px_-2px_rgba(0,0,0,0.1)], and put it in a class attribute. Spaces are written as underscores, which is how Tailwind arbitrary values work. To reuse a shadow, add it to your Tailwind theme instead.
What do blur and spread mean?
Blur softens the edge of the shadow: 0 is a hard edge and bigger numbers fade more. Spread grows or shrinks the shadow before blurring, and a negative spread pulls it in, which is why modern soft shadows often use a negative spread.
What does inset do?
An inset shadow is drawn inside the element's edge instead of outside it, which is useful for pressed buttons, inputs and inner glows.
Can I edit a shadow I already have?
Yes. Paste a box-shadow declaration or just its value into the import box and load it. It understands hex, rgb(), rgba() and hsl() colours and px lengths, and tells you if something cannot be read.
Does it work with dark backgrounds?
Yes. Switch the preview background to dark and raise the opacity or use a coloured glow, because black shadows are hard to see on dark surfaces.
Free tool by Huntsville Software. It runs in your browser; your files and text are not uploaded.