Box Shadow Generator
Soft, layered CSS shadows that look like real light, plus inset, neumorphism and hard offsets. Copy them as box-shadow, Tailwind, text-shadow or drop-shadow.
Smooth shadows, not one flat blur
A single box-shadow looks like a grey smudge, because real shadows are sharp and dark close to an object and soft and faint further away. Smooth mode stacks several layers, each one larger, softer and fainter than the last, so the shadow fades the way light does. Set the distance, blur, spread and strength, tilt the light with Light from, and choose a shadow colour. A dark navy or a deep version of your background looks more natural than pure black.
Every kind of CSS shadow
Start from a preset: Subtle and Soft for cards, Layered and Floating for things that lift off the page, Bottom only, Top only and All sides for headers, bars and even glows, Sharp for crisp UI, Inset for pressed and input states, Neumorphism (a light and a dark shadow made from the surface colour, so change the background and both follow), Glow and a hard Brutalist offset. Switch to Layers to edit each shadow’s X and Y offset, blur, spread, colour, opacity and inset yourself, with up to eight layers.
Box shadow on one side only: bottom or top
box-shadow has no “bottom” setting, so a shadow under just one edge of a div, header or card takes two numbers working together. A negative spread shrinks the shadow so it hides behind the element on every side, and the offset pushes it back out on the one side you want. Click Bottom only or Top only above to start from a smooth two-layer version, or copy these:
/* Shadow on the bottom only — under a header or card */
.header { box-shadow: 0 10px 8px -8px rgba(15, 23, 42, .28); }
/* Shadow on the top only — above a sticky footer or bottom bar */
.bottom-bar { box-shadow: 0 -10px 8px -8px rgba(15, 23, 42, .28); }
/* Shadow on all sides, evenly — no offset */
.card { box-shadow: 0 0 18px rgba(15, 23, 42, .18); }
Keep the spread about the same size as the blur, but negative, so the soft edge doesn’t creep round the corners. For a crisp line instead of a shadow, use a hard 0 1px 0 shadow or a border.
box-shadow, Tailwind, text-shadow and drop-shadow
Copy the result as plain CSS or as a Tailwind arbitrary value (shadow-[…]). Switch the preview to Text to get the same shadow as text-shadow. For transparent PNGs and SVG icons, use the filter: drop-shadow() version, which follows the shape of the image instead of its box. Drop shadows don’t support spread or inset, so those parts are left out, and the output says when it does.
For a coloured glow made from a whole gradient, which box-shadow can’t do, use the Gradient Shadow Generator. For a button with its hover and focus states, try the Gradient Button Generator.
