🎨CSS & Color

Soft UI Box Shadows

Modern, layered box shadows that create realistic elevation.

Explanation

Using multiple layers of shadows creates a much smoother and more premium effect than a single harsh shadow.

Examples

Medium Elevation
Output
shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1)

Code Examples

CSS
.card-shadow {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

Try it Now

💡 Tips

  • Use very low opacity (0.05 to 0.15) for the best results
  • The larger the blur, the higher the element appears
  • Match shadow color hue to the background for better integration

⚠️ Common Pitfalls

  • Pitch black shadows (#000) often look dated and "dirty"