CSS Box Shadow Generator
Design layered CSS box shadows visually. Adjust offset, blur, spread, colour, opacity and inset for each layer, then copy the CSS or a Tailwind class.
Layers
No layers. Add one to start.
The first layer is painted on top.
Layer 1
Presets
Live preview
Paste a box-shadow value (px lengths; hex, rgb, hsl or named colours) to edit it here.
About CSS box shadows
The box-shadow property draws one or more shadows around an element. Each shadow has a horizontal and vertical offset, a blur radius (how soft the edge is), a spread radius (how much bigger or smaller the shadow is than the box), a colour and an optional inset keyword that draws it inside the box.
Stacking several faint layers with growing offsets and blur gives more natural depth than one heavy shadow; that is what the Layered preset does. Layers are painted in order, so the first one in the list sits on top. Hide a layer to compare with and without it, and use the arrows to reorder.
Neumorphism uses two shadows, one light and one dark, on a box that has the same colour as its background; the preset sets those colours for you. Paste any existing box-shadow value into the import box to edit it. The Tailwind tab gives an arbitrary-value class such as shadow-[0_4px_12px_0_rgba(0,0,0,0.15)]. Everything runs in your browser.
To round the corners of the same element, use the Border Radius Generator.
Was this tool useful?
Thanks for your feedback!
Could not send your feedback. Please try again later.
Frequently Asked Questions
Use a large blur with a small negative spread and a low opacity, for example 0 10px 30px -5px at 15% black, or stack several faint layers with growing offset and blur. The Soft and Layered presets are good starting points.
The first shadow in the list is painted on top and the last one at the bottom. Use the arrow buttons to reorder layers and the eye button to hide one and compare.
It uses two shadows, a dark one offset to the bottom right and a light one offset to the top left, on a box that has the same colour as its background. The preset sets the box and background colour for you.
Yes. Paste the value into "Import an existing shadow". Lengths in px and colours as hex, rgb(), hsl() or CSS names are understood, and each shadow becomes an editable layer.
Related Tools
All CSS Tools →Border Radius & Blob Generator
Set CSS border-radius per corner in px or %, or create organ...
CSS Custom Scrollbar Generator
Design and generate custom CSS scrollbar styles with a visua...
CSS Gradient Generator
Create beautiful linear and radial CSS gradients with a visu...
Email Signature Generator
Create a professional HTML email signature with your photo,...
Color Contrast Checker (WCAG)
Check text and background colours against WCAG 2 AA and AAA...
Color Blindness Simulator
See an image as people with protanopia, deuteranopia, tritan...