📦 Box Shadow Generator

Create custom CSS box shadows – offset, blur, spread, color & inset – live preview & code

Version 1.0.0 – Updated April 2025
?
Positive values move the shadow to the right, negative to the left.
?
Positive values move the shadow down, negative up.
?
The larger the value, the blurrier and softer the shadow. 0 = hard edge.
?
Positive values enlarge the shadow, negative shrink it.
?
Choose the color of your shadow. Use opacity slider for transparency.
?
Makes the shadow semi-transparent. 0 = invisible, 1 = solid.
?
Creates an inner shadow instead of an outer one.

👁️ Live Preview

📋 CSS Code

box-shadow: 10px 10px 20px 0px rgba(0,0,0,0.5);

Embed This Tool

Want to embed this box shadow generator on your website? Use this code:

<iframe src="https://yoursite.com/box-shadow-generator" width="100%" height="600" frameborder="0"></iframe>

📘 Box Shadow Examples

🔹 Soft Shadow

box-shadow: 0 10px 25px rgba(0,0,0,0.1);

🔸 Heavy Spread

box-shadow: 0 0 0 10px rgba(102,126,234,0.3);

⬇️ Bottom Shadow Only

box-shadow: 0 15px 20px -5px rgba(0,0,0,0.2);

🔄 Inset Inner Shadow

box-shadow: inset 0 0 20px rgba(0,0,0,0.2);

🌈 Colored Shadow

box-shadow: 5px 5px 15px rgba(255,107,107,0.6);

✨ Multiple Shadows

box-shadow: 0 5px 10px rgba(0,0,0,0.1), 0 15px 30px rgba(0,0,0,0.2);

📖 Box Shadow Tutorials

📏

Understanding box-shadow syntax

Learn how horizontal, vertical, blur, spread, color and inset work together.

Read Tutorial →
🎨

How to layer multiple shadows

Create depth by combining several shadows in one declaration.

Read Tutorial →
🔄

Inset shadows for pressed effects

Make buttons look like they are pressed down.

Read Tutorial →

⚖️ Box Shadow Generator Comparison

Feature Our Tool Tool A Tool B
Free & unlimited ❌ (limit)
Live preview
Spread radius
Inset shadow
Opacity control
Negative offset
Download CSS file
Client-side / private

❓ Frequently Asked Questions

What's the difference between blur and spread?

Blur radius controls the softness – higher = more blurred edge. Spread radius expands or contracts the shadow size without blurring.

Can I create multiple shadows?

This generator currently creates a single shadow for simplicity. You can easily combine several shadows by copy‑pasting and comma‑separating them in your CSS.

Why is my shadow not visible?

Check that "Enable Shadow" is checked, opacity is above 0, and the offset values aren't extreme. Also make sure the color is not too similar to the background.

Does inset work on all elements?

Yes, inset works on any box element, but the effect is most noticeable on elements with a background color or border.

📝 Version History

Version 1.0.0 – Initial release

April 2, 2025
  • 🚀 Full box-shadow CSS generator
  • 🎛️ Horizontal / vertical offset, blur, spread
  • 🎨 Color picker + opacity slider (rgba)
  • 🔄 Inset toggle & shadow enable/disable
  • 👁️ Live preview on colorful box
  • 📋 Copy CSS & download .css file

🧠 Why use Box Shadows?

Box shadows add depth, hierarchy, and visual interest to UI elements. A well‑placed shadow can make a card appear elevated, a button feel clickable, or a modal stand out.

📐 Elevation

Larger blur and offset = higher elevation. Useful for modals and dropdowns.

🔍 Focus state

Use inset or colored shadows to highlight focused inputs.

⚡ Performance

Shadows are GPU‑accelerated; use them instead of images for scalability.

🛠️ Recommended Design Resources

Tools to enhance your UI workflow