CSS Box Shadow Generator
Layer box-shadows and preview them live
Preview box
Shadow layers
CSS
box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.25);Presets
How to use CSS Box Shadow Generator
- Use the sliders for offset, blur, spread, color and opacity, and switch to an inner (inset) shadow if you need one.
- Stack up to 5 shadow layers and change the preview box's background, color and corner radius.
- Start from presets like soft, hard or neumorphism and copy the box-shadow CSS.
Frequently asked questions
What order do box-shadow values go in?
Horizontal offset, vertical offset, blur, spread and color, with inset in front for an inner shadow. The default is box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.25);, which moves the shadow down 10px and shrinks it with a -5px spread for a soft, lifted look.
Can I stack multiple shadows?
Yes, up to 5 layers, copied as one box-shadow line separated by commas. In CSS the shadow listed first is drawn on top. The Layered preset stacks 4 faint shadows at 1px, 4px, 12px and 24px offsets for natural depth.
How do I make a neumorphism shadow?
Use the same color for the background and the box, then add a dark shadow toward the bottom right and a light one toward the top left. The Neumorphism preset uses #e0e5ec for both with 9px 9px 16px rgba(163, 177, 198, 0.6) and -9px -9px 16px rgba(255, 255, 255, 0.5).
Does the copied CSS include border radius or background color?
No. Only the box-shadow declaration is copied; the background, box color and corner radius are just for the preview. Set border-radius and background yourself to get the same look.