frontendhack-logo

Long Shadow Short Cut is a hard-edged CSS box shadow from the Long Shadows collection, built from 8 stacked layers and a colored tint. The largest blur radius is 0px. Copy the code below and paste it into any element.

box-shadow: 1px 1px 0px 0px rgba(15, 23, 42, 0.91), 2px 2px 0px 0px rgba(15, 23, 42, 0.82), 3px 3px 0px 0px rgba(15, 23, 42, 0.73), 4px 4px 0px 0px rgba(15, 23, 42, 0.64), 5px 5px 0px 0px rgba(15, 23, 42, 0.55), 6px 6px 0px 0px rgba(15, 23, 42, 0.46), 7px 7px 0px 0px rgba(15, 23, 42, 0.38), 8px 8px 0px 0px rgba(15, 23, 42, 0.29);

All box shadow examples

Shadow values

#TypeXYBlurSpreadColorOpacity
1outer1px1px0px0px#0F172A0.91
2outer2px2px0px0px#0F172A0.82
3outer3px3px0px0px#0F172A0.73
4outer4px4px0px0px#0F172A0.64
5outer5px5px0px0px#0F172A0.55
6outer6px6px0px0px#0F172A0.46
7outer7px7px0px0px#0F172A0.38
8outer8px8px0px0px#0F172A0.29

How to use it

.card {
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 1px 1px 0px 0px rgba(15, 23, 42, 0.91), 2px 2px 0px 0px rgba(15, 23, 42, 0.82), 3px 3px 0px 0px rgba(15, 23, 42, 0.73), 4px 4px 0px 0px rgba(15, 23, 42, 0.64), 5px 5px 0px 0px rgba(15, 23, 42, 0.55), 6px 6px 0px 0px rgba(15, 23, 42, 0.46), 7px 7px 0px 0px rgba(15, 23, 42, 0.38), 8px 8px 0px 0px rgba(15, 23, 42, 0.29);
}

More Long Shadows 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 #E5E7EB background with a #FFFFFF element and 4px rounded corners.

Yes. This shadow has 8 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.