Long Shadow Up-Right Charcoal is a hard-edged CSS box shadow from the Long Shadows collection, built from 14 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(17, 24, 39, 0.95), 2px -2px 0px 0px rgba(17, 24, 39, 0.9), 3px -3px 0px 0px rgba(17, 24, 39, 0.85), 4px -4px 0px 0px rgba(17, 24, 39, 0.8), 5px -5px 0px 0px rgba(17, 24, 39, 0.74), 6px -6px 0px 0px rgba(17, 24, 39, 0.69), 7px -7px 0px 0px rgba(17, 24, 39, 0.64), 8px -8px 0px 0px rgba(17, 24, 39, 0.59), 9px -9px 0px 0px rgba(17, 24, 39, 0.54), 10px -10px 0px 0px rgba(17, 24, 39, 0.49), 11px -11px 0px 0px rgba(17, 24, 39, 0.44), 12px -12px 0px 0px rgba(17, 24, 39, 0.39), 13px -13px 0px 0px rgba(17, 24, 39, 0.34), 14px -14px 0px 0px rgba(17, 24, 39, 0.29);
Shadow values
| # | Type | X | Y | Blur | Spread | Color | Opacity |
|---|---|---|---|---|---|---|---|
| 1 | outer | 1px | -1px | 0px | 0px | #111827 | 0.95 |
| 2 | outer | 2px | -2px | 0px | 0px | #111827 | 0.9 |
| 3 | outer | 3px | -3px | 0px | 0px | #111827 | 0.85 |
| 4 | outer | 4px | -4px | 0px | 0px | #111827 | 0.8 |
| 5 | outer | 5px | -5px | 0px | 0px | #111827 | 0.74 |
| 6 | outer | 6px | -6px | 0px | 0px | #111827 | 0.69 |
| 7 | outer | 7px | -7px | 0px | 0px | #111827 | 0.64 |
| 8 | outer | 8px | -8px | 0px | 0px | #111827 | 0.59 |
| 9 | outer | 9px | -9px | 0px | 0px | #111827 | 0.54 |
| 10 | outer | 10px | -10px | 0px | 0px | #111827 | 0.49 |
| 11 | outer | 11px | -11px | 0px | 0px | #111827 | 0.44 |
| 12 | outer | 12px | -12px | 0px | 0px | #111827 | 0.39 |
| 13 | outer | 13px | -13px | 0px | 0px | #111827 | 0.34 |
| 14 | outer | 14px | -14px | 0px | 0px | #111827 | 0.29 |
How to use it
.card {
background: #FFFFFF;
border-radius: 4px;
box-shadow: 1px -1px 0px 0px rgba(17, 24, 39, 0.95), 2px -2px 0px 0px rgba(17, 24, 39, 0.9), 3px -3px 0px 0px rgba(17, 24, 39, 0.85), 4px -4px 0px 0px rgba(17, 24, 39, 0.8), 5px -5px 0px 0px rgba(17, 24, 39, 0.74), 6px -6px 0px 0px rgba(17, 24, 39, 0.69), 7px -7px 0px 0px rgba(17, 24, 39, 0.64), 8px -8px 0px 0px rgba(17, 24, 39, 0.59), 9px -9px 0px 0px rgba(17, 24, 39, 0.54), 10px -10px 0px 0px rgba(17, 24, 39, 0.49), 11px -11px 0px 0px rgba(17, 24, 39, 0.44), 12px -12px 0px 0px rgba(17, 24, 39, 0.39), 13px -13px 0px 0px rgba(17, 24, 39, 0.34), 14px -14px 0px 0px rgba(17, 24, 39, 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 14 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.
