CSS Box Shadow Generator

Create CSS box shadows visually — layer multiple shadows with controls for offset, blur, spread, color and opacity.

About CSS Box Shadow

The box-shadow CSS property adds shadow effects around an element. It accepts multiple comma-separated shadows layered on top of each other, enabling complex depth effects. Each shadow consists of: horizontal offset (positive = right), vertical offset (positive = down), blur radius (higher = softer), spread radius (positive = larger), color, and optional inset keyword (shadow inside the element).

Professional design systems use layered shadows to simulate realistic depth. Google Material Design uses elevation shadows. Tailwind CSS provides pre-built shadow utilities. This generator lets you compose multiple shadow layers to achieve any depth effect from subtle card shadows to dramatic neumorphism.

FAQ

How do I create a neumorphic shadow?
Neumorphism uses two shadows — one lighter than the background (top-left, positive X/Y) and one darker (bottom-right, negative X/Y). The element appears to protrude from or sink into the surface. Add two layers: Layer 1: negative offsets, light color. Layer 2: positive offsets, dark color.
Does box-shadow affect layout?
No. Unlike outline and border, box-shadow does not affect layout or the element box model. It is rendered outside the flow. Use spread radius to extend the shadow, but note that positive spread increases the shadow size without affecting surrounding elements spacing.