frontendhack-logo

Elevation Level 4 is a soft CSS box shadow from the Elevation collection, built from 3 stacked layers using neutral black. The largest blur radius is 16px. Copy the code below and paste it into any element.

box-shadow: 0px 4px 10px -2px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 2px 16px 0px rgba(0, 0, 0, 0.12);

All box shadow examples

Shadow values

#TypeXYBlurSpreadColorOpacity
1outer0px4px10px-2px#0000000.2
2outer0px5px8px0px#0000000.14
3outer0px2px16px0px#0000000.12

How to use it

.card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0px 4px 10px -2px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 2px 16px 0px rgba(0, 0, 0, 0.12);
}

More Elevation examples

Frequently Asked Questions

Copy the box-shadow line and paste it into the CSS rule of the element you want to style, for example a card, button or image wrapper. The example is shown on a #F3F4F6 background with a #FFFFFF element and 12px rounded corners.

Yes. This shadow has 3 layers separated by commas. Change the pixel values or the rgba() color of any layer directly in your CSS to tune it.

This example is designed for light backgrounds. On very dark backgrounds a black shadow becomes hard to see, so raise the opacity or switch to a glow style.