Design & CSS

CSS Box-Shadow & Glassmorphism Generator

Craft multi-layer CSS box-shadows, frosted glassmorphism cards, and Tailwind shadow utilities.

Runs 100% locally in your browser
Multi-Layer Elevation Card
2 shadow layers • 20px radius

Shadow Layers & Glass Controls

Layer #1
Offset X0px
Offset Y4px
Blur6px
Spread-2px
Opacity8%
Layer #2
Offset X0px
Offset Y20px
Blur32px
Spread-8px
Opacity22%

Generated CSS Declarations

border-radius: 20px;
box-shadow: 0px 4px 6px -2px rgba(15, 23, 42, 0.08),
    0px 20px 32px -8px rgba(15, 23, 42, 0.22);
Tailwind CSS Utility Class
shadow-[0px_4px_6px_-2px_rgba(15,23,42,0.08),0px_20px_32px_-8px_rgba(15,23,42,0.22)]

Curated Elevation Presets

What Does the CSS Box-Shadow & Glassmorphism Generator Do?

The CSS Box-Shadow & Glassmorphism Generator lets frontend engineers and UI designers compose natural, multi-layered elevation shadows alongside frosted backdrop-filter glass surfaces.

Real-world lighting rarely casts a single harsh drop shadow—combining a tight, low-blur contact shadow with a wide, negative-spread ambient shadow produces crisp depth across light and dark themes.

When Glassmorphism mode is enabled, the studio also generates translucent RGBA surface backgrounds, -webkit-backdrop-filter / backdrop-filter blur rules, and subtle specular borders, plus a single-line Tailwind CSS arbitrary shadow class.

How to Use This Tool

  1. Start from a curated elevation preset or add up to 5 shadow layers, tuning Offset X/Y, Blur, Spread, Color, Opacity, and Inset.
  2. Switch the preview stage between Light, Dark, and Aurora Mesh, and toggle Glassmorphism to test backdrop blur.
  3. Copy the generated CSS declarations, copy the Tailwind shadow-[...] class, or share your exact design via a #hash link.

Common Engineering Use Cases

  • Building consistent elevation tokens (cards, dropdown menus, command palettes, and modals) for a design system.
  • Designing frosted navigation headers or floating hero cards over colorful gradient backdrops.
  • Creating recessed tactile input fields using dual inset shadows.

Practical Developer Examples

Two-Layer Realistic SaaS Card Shadow

Negative spread (-8px) keeps the shadow tucked neatly beneath the card rather than muddying the top and side edges.

Input
Layer 1: 0 4px 6px -2px rgba(15,23,42,0.08)
Layer 2: 0 20px 32px -8px rgba(15,23,42,0.22)
Output
box-shadow: 0px 4px 6px -2px rgba(15, 23, 42, 0.08),
    0px 20px 32px -8px rgba(15, 23, 42, 0.22);

Common Mistakes & Pitfalls to Avoid

  • Using pure black (#000000) at high opacity (> 0.35) with zero negative spread, which creates dated, muddy halos around UI cards.
  • Applying backdrop-filter: blur() on a completely opaque background color—the surface alpha must be below 1.0 for underlying content to show through.

Frequently Asked Questions

Why include -webkit-backdrop-filter alongside backdrop-filter?

Including both -webkit-backdrop-filter and standard backdrop-filter ensures consistent frosted-glass rendering across older Safari/WebKit builds as well as Chromium and Firefox.