CSS Box Shadow Generator
Design modern, multi-layered realistic CSS box shadows with interactive blur, spread, and physics-based ambient diffusion. Features multi-layer stacking, inset inner shadows, neumorphic presets, and instant CSS and Tailwind export. 100% private in-browser.
Accessible Card Component
Real-time rendering of physical light falloff, blur dispersion, and ambient occlusion.
Smooth Shadow Physics Engine
Generate 4 mathematically stacked layers using power-curve ambient diffusion.
Shadow Layers (2)
Multi-layer stacking generates realistic, non-muddy ambient shadows.
Curated Shadow Presets
Professional multi-layer elevations used in top design systems and web apps.
Export Box Shadow Code
Production-ready CSS rule declarations, Tailwind arbitrary classes, and configuration snippets.
/* CSS Box Shadow generated via ECSOT */
.elevated-card {
background-color: #ffffff;
border-radius: 16px;
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}How the CSS Box Shadow Generator Works
Multi-layered CSS box-shadow generation following physical light diffusion models.
Stack Multiple Shadow Layers
Modern realistic shadows use 2 to 5 layered shadows. Add, duplicate, or customize individual layers with independent offsets.
Adjust Offsets, Blur & Spread
Fine-tune horizontal (X) and vertical (Y) shift, gaussian blur radius, and spread expansion to achieve optical elevation.
Simulate Real-World Physics
Use the smooth physics engine to automatically compute power-curve light falloff and ambient occlusion at any light angle.
Copy CSS or Tailwind Snippets
Instant one-click export for standard CSS, Tailwind CSS arbitrary values, and tailwind.config.js theme extension objects.
The Physics of Smooth Multi-Layered Box Shadows
In the physical world, light never casts a harsh, single-radius blur. Natural shadows consist of multiple components: a sharp, dark contact shadow right beneath the object (ambient occlusion), accompanied by a broad, faint, diffused penumbra cast into the surrounding room.
1. Contact Shadow
A tight, short-distance layer (e.g. 0 1px 3px rgba(0,0,0,0.12)) that firmly grounds the element to the surface and prevents floating blurriness.
2. Ambient Penumbra
A wider, soft diffusion layer (e.g. 0 12px 24px -4px rgba(0,0,0,0.08)) that creates optical elevation and depth without adding visual dirt or muddiness.
3. Negative Spread
Applying a negative spread radius (e.g. -4px) shrinks the shadow footprint, ensuring that the sides of elevated cards remain crisp and uncluttered.
Box Shadow Syntax Breakdown
- offsetX / offsetY: Distance the shadow is shifted along the horizontal and vertical axes.
- blurRadius: Gaussian blur dispersion distance (0px produces hard edges).
- spreadRadius: Expands (positive) or contracts (negative) the shadow shape in all directions.
- inset: Renders the shadow on the interior of the element rather than the exterior.
Explore More Design & Web Utilities
Explore complementary utilities designed to speed up your workflow.
CSS Gradient Generator
Craft modern linear, radial, and conic CSS gradients with multi-stop tracks and SVG export.
WCAG Contrast Checker
Verify color contrast accessibility against WCAG 2.1 and 2.2 standards with real-time AA/AAA checks.
Color Format Converter
Convert color codes seamlessly between HEX, RGB, HSL, HSV, CMYK, and modern CSS OKLCH.