CSS Box Shadow & Tailwind Generator

Visual box-shadow designer for web developers and UI designers. Fine-tune offsets, blur, spread, color, and opacity across single or multi-layered shadows. Preview changes in real time and copy optimized CSS code and Tailwind CSS utility classes.

Elevation Presets

🥞 Shadow Layers

2D Light Source Radar
Angle: 90° Distance: 10px
Shadow Color
Opacity 15%
Offset X 0px
Offset Y 10px
Blur Radius 15px
Spread Radius -3px

👁️ Live Preview Canvas

box-shadow
Border Radius 20px
Box Dimensions 180px

💻 Generated Code Export

box-shadow: none;

Generated CSS and Tailwind utility classes are compatible with all modern browsers.

🔗 Share this page

TelegramWhatsAppX

How to use

  1. Adjust the primary shadow properties: horizontal (X) and vertical (Y) offsets, blur radius, spread radius, and shadow color.
  2. Click "+ Add Layer" to combine multiple shadow levels for natural depth and realistic light diffusion.
  3. Or select a preset elevation level, ranging from subtle card outlines to floating dialog elevations.
  4. Copy the generated standard CSS box-shadow property or Tailwind arbitrary class in a single click.

FAQ

Why are multi-layered box shadows superior to single shadows?

Natural ambient lighting never casts a single uniform shadow. Stacking two or more shadows with subtle opacities and graduated blur radii mimics real-world ambient occlusion, producing clean, tactile, and modern UI surfaces.

What is the difference between blur radius and spread radius?

Blur controls the gradient softness of the shadow edges, while spread physically expands or contracts the shadow footprint relative to the box dimensions before blurring takes effect.

When should I use inset box shadows?

Inset shadows render inside the element perimeter, ideal for depicting sunken surfaces, recessed form inputs, active toggle switches, or depressed button states.

How do I integrate the generated code into Tailwind CSS?

You can copy the arbitrary utility class directly into your HTML elements (such as shadow-[0_4px_6px_rgba(...)]) or paste the CSS rules into your tailwind.config.js theme extension.

🛠️

Related Developer & Office Tools

All tools →
🔥 Looking for software & AI subscription discounts? Save up to 70% on ChatGPT, Claude, Gemini and more.
Deals Radar →

Was this tool useful?

The site is free and has no paywalls. A small tip in TON or a share helps keep it running and add new tools.

Share in Telegram