Box Shadow Generator
Design CSS box shadows visually
box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.15);
How to use Box Shadow Generator
- Adjust offsets, blur, spread, and opacity to shape the shadow.
- Add multiple layers to stack shadows for more realistic depth.
- Toggle inset to draw the shadow inside the element.
- Try the presets for common effects like neumorphism, layered cards, or subtle elevation.
- Copy the generated CSS and paste into your stylesheet.
Box shadow design principles
Real-world shadows are soft, offset slightly, and rarely pitch black. The trick to natural-looking shadows is a low-alpha color (5-15% black) with generous blur relative to the offset. A common formula: blur ≈ 2× the y-offset.
Material Design, Apple's Human Interface Guidelines, and Tailwind CSS all use layered shadows — multiple stacked shadows create more depth than a single large one. Typically you pair a short, sharp shadow (near the element) with a longer, softer shadow (the ambient glow).
Neumorphism uses a light shadow on one side and a dark shadow on the opposite side of the same element, creating the illusion of a soft-extruded surface. It works best with monochromatic backgrounds and subtle color variations.