Shadows - CSS Box-Shadow Generator | Free Multi-Layer Shadow Tool

CSS Box-Shadow Generator

The key to a good box-shadow is opacity and layers.

I built this to be a better box-shadow generator. One that allows you to visualize how you'll use the shadow in your UI. This is why there are lots of settings and presets to help you.

This CSS generator allows you to specify multiple shadows and customize your viewing options. Customize the page background, the preview card colors, and view a grid of cards or a variety of 3 sizes.

This project is open-source. Please submit issues through GitHub.

Preview Your Box Shadow

See how your shadows look on different elements


Shadow Builder Controls

Shadow Builder

On/Off
Angle
Distance
Blur
Spread
Color
Inset
Opacity
Actions
90°
8px
6px
3px
20%

Shadow Presets

Shadow Presets

Elevation 1
Elevation 2
Elevation 3
Elevation 4
Elevation 5
Elevation 6
Elevation 7
Elevation 8
Elevation 9
Elevation 10
Elevation 11
Elevation 12
Elevation 13
Elevation 14
Elevation 15
Elevation 16
Elevation 17
Elevation 18
Elevation 19
Elevation 20
Elevation 21
Elevation 22
Elevation 23
Elevation 24

Frequently Asked Questions

What makes a good CSS box-shadow?

The key to realistic shadows is using multiple layers with proper opacity. Real shadows are complex - they have sharp edges close to objects and soft, diffused edges further away. Our generator lets you layer multiple shadows to achieve this realistic depth.

How should I use opacity in CSS box-shadows?

Opacity is what really lets us make good box-shadows by allowing us to layer the shadows. I recommend that you use a mix of opacities between .04 and 0.25. You can do so by using an rgba value of

rgba(0, 0, 0, 0.10)
.

How do I use Material Design shadows?

Material Design uses elevation levels from 1-24, each with specific shadow combinations. Use our Material Design presets to get the exact shadows specified in Google's design system. Higher elevation numbers create more pronounced shadows. You can copy the CSS here and use it in your own project.

Can I copy the CSS code?

Yes! Our generator provides clean CSS output with vendor prefixes for maximum browser compatibility. Simply click the copy button to get the complete box-shadow CSS property ready for your project. To see more in depth usage of the CSS, click on the CSS tab in the shadow builder.

Want to nerd out some more on Box Shadows? Take a read of this

2021 - 2025 — Shadows: A CSS Box Shadow Generator