ToolBark
Developer

CSS Box Shadow Generator

Design layered CSS box shadows visually — copy the code instantly.

CSS Box Shadow Generator

Shadow Layers
0px 8px 24px -4px rgba(26, 35, 50, 0.18)
0px 2px 6px 0px rgba(26, 35, 50, 0.10)
Edit Selected Layer
0px
8px
24px
-4px
18%
Preview Options
#f0f4f8
#ffffff
12px
Preview
Generated CSS
box-shadow: 0px 8px 24px -4px rgba(26, 35, 50, 0.18),
  0px 2px 6px 0px rgba(26, 35, 50, 0.10);
Quick Presets
About

The CSS Box Shadow Generator lets you craft beautiful, layered shadows for any HTML element — all without touching code first. Adjust offset X and Y, blur radius, spread, color, and opacity with intuitive sliders. Stack multiple shadow layers for realistic depth, preview your design live, and copy the ready-to-paste CSS box-shadow rule with a single click.

FAQ
How do I create a multi-layer box shadow?+

Click 'Add Layer' to add a new shadow on top of your existing ones. Select each layer in the list to edit its settings independently. All layers are combined into a single box-shadow CSS value you can copy.

What does the Spread Radius slider do?+

Spread radius expands or contracts the shadow before blurring. A positive value makes the shadow larger than the element; a negative value shrinks it, which is useful for creating realistic lifted-card effects.

How does the Inset option work?+

Checking Inset turns the shadow inward, drawing it inside the element's border instead of outside. This is commonly used to create pressed-button states, inner glow effects, or recessed UI panels.

Can I use these shadows directly in my CSS or Tailwind project?+

Yes — the generator outputs a standard CSS box-shadow property value. Paste it directly into a stylesheet, a style attribute, or a Tailwind config's boxShadow extension under your custom key.

Related tools