Create custom CSS box shadows visually with multiple layers, inset shadows, color controls, blur, spread, and instant code output with live preview.
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.10),
0px 2px 4px -2px rgba(0, 0, 0, 0.06);Layer Settings
The CSS box-shadow property adds shadow effects around an element's frame. It's one of the most powerful tools for creating depth, elevation, and visual hierarchy in modern web design — without needing any images.
The syntax is: box-shadow: offset-x offset-y blur-radius spread-radius color. The offset-x and offset-y values control the shadow's horizontal and vertical position. Blur radius softens the shadow edges — higher values create a more diffused effect. Spread radius expands or contracts the shadow size.
You can apply multiple shadows to a single element by comma-separating values. This technique enables layered effects like Material Design elevation, neumorphism, and realistic 3D appearances. Combining outer shadows with inset shadows creates sophisticated embossed and debossed effects.
For performance, box-shadow is GPU-accelerated in modern browsers but can impact rendering speed when applied to many elements or with large blur radii. Use will-change: transform on animated shadowed elements to promote them to their own compositing layer.
Design tips: Use subtle shadows (low blur, slight offset) for card elevation. Match shadow color to the background rather than using pure black — rgba(0,0,0,0.1) looks more natural. Increase shadow size on hover for interactive feedback.