Layering helps us to generate beautiful CSS box shadows. Fine-tuning box-shadow properties like offset, radius, spread, and colors become incredibly effortless.
Box Shadow Properties
Inset
Color
Shadow 0
Shadow 1
Shadow 2
Shadow 3
Box Shadow
Presets
Element Properties
Color
Box Shadow CSS
box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.08),
0px 2px 2px 0px rgba(0,0,0,0.12),
0px 4px 4px 0px rgba(0,0,0,0.16),
0px 8px 8px 0px rgba(0,0,0,0.2);
Element CSS
.element {
width: 250px;
height: 250px;
background-color: rgba(255, 255, 255, 1);
color: #000;
border-radius: 10px;
box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.08),
0px 2px 2px 0px rgba(0,0,0,0.12),
0px 4px 4px 0px rgba(0,0,0,0.16),
0px 8px 8px 0px rgba(0,0,0,0.2);
}