frontendhack-logo

Triple Stack is a hard-edged CSS box shadow from the Hard & Retro collection, built from 3 stacked layers and a colored tint. The largest blur radius is 0px. Copy the code below and paste it into any element.

box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 1), 10px 10px 0px 0px rgba(245, 158, 11, 1), 15px 15px 0px 0px rgba(16, 185, 129, 1);

All box shadow examples

Shadow values

#TypeXYBlurSpreadColorOpacity
1outer5px5px0px0px#0000001
2outer10px10px0px0px#F59E0B1
3outer15px15px0px0px#10B9811

How to use it

.card {
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 1), 10px 10px 0px 0px rgba(245, 158, 11, 1), 15px 15px 0px 0px rgba(16, 185, 129, 1);
}

More Hard & Retro 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 #FEF3C7 background with a #FFFFFF element and 6px 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.