Tailwind Shadow Generator

Create custom box shadows visually and export as Tailwind CSS config — compatible with Tailwind CSS v3 & v4

  1. Home
  2. > Tailwind >
  3. Shadow Generator

Shadow Controls

Shadow Layers

0 2px 4px rgba(0,0,0,0.25)

Preview

Preview

Tailwind class: shadow-custom

tailwind.config.js (boxShadow)

    
CSS Fallback (box-shadow)

    

What is a Tailwind Shadow Generator?

A Tailwind shadow generator helps you visually create custom box-shadow values and export them directly as Tailwind CSS configuration code. Instead of manually tweaking `box-shadow` values, you can use sliders, color pickers, and presets to create the perfect shadow, then copy the ready-to-use tailwind.config.js configuration.

The generated shadow can be used with the shadow-custom class (or your custom key name) in your Tailwind project.

How to Use This Generator

  1. Adjust shadow properties — Use the sliders to set Offset X, Offset Y, Blur, Spread, and Opacity. Pick a shadow color using the color picker.
  2. Use presets — Click any preset button (sm, md, lg, xl, 2xl, inner) to instantly load Tailwind's default shadow values.
  3. Layer multiple shadows — Click + Add Layer to create complex multi-layered shadows. Remove layers with the × button.
  4. Copy the code — Copy the tailwind.config.js snippet or CSS fallback with one click.

Frequently Asked Questions

How do I use the generated shadow in my project?

Add the generated boxShadow config to your tailwind.config.js under theme.extend.boxShadow. Then use class="shadow-custom" in your HTML.

Can I create multiple shadow layers?

Yes. Click "+ Add Layer" to add additional shadow layers. Each layer is combined using comma-separated box-shadow syntax. You can remove any layer by clicking the × button.

What if I want a custom shadow key name?

The config code uses 'custom' as the key. You can rename it to anything you like in your tailwind.config.js file.

Is this compatible with Tailwind CSS v4?

Yes. The generated CSS works with any version. For Tailwind v4, add the @utility shadow-custom directive instead of the config object.

Help2Code Logo
Menu