143 runs

CSS Box Shadow Generator

Generate custom CSS box-shadow effects with live 3D preview, blur, spread, color opacity, inset toggle, and one-click CSS code copy.

Instructions:
Adjust horizontal and vertical offsets, blur radius, spread, shadow color, and opacity sliders. Use the inset checkbox for inner shadows, or pick from popular shadow presets. Copy the CSS with one click.
Presets:

Shadow Optics Engine

Configure spatial displacement & blur parameters

Horizontal Offset (X) 0px
Vertical Offset (Y) 12px
Blur Radius 24px
Spread Radius -4px
Shadow Opacity 0.12 (12%)
Element Border Radius 20px
Interactive Preview Stage
Element Box
Generated Production Code
box-shadow: 0px 12px 24px -4px rgba(0, 0, 0, 0.12);

Multi-Layer Physical Falloff

Single shadows create harsh, unrealistic borders. Layered shadows mimic natural diffused ambient light with smooth physics-based Gaussian curves.

Negative Spread Compression

Using negative spread radii (e.g. -4px or -6px) keeps shadows tight beneath UI elements rather than bulging unnaturally around the perimeter.

Tailwind CSS Ready

Instantly copy drop-in boxShadow configuration tokens compatible with Tailwind CSS v3 and v4 design themes.