CSS Shadow Gallery

36 shadows. Copy one, or open it in the generator to fine-tune every layer.

Whisper

0 1px 3px 0 rgb(15 23 42 / 0.08)
Edit

Feather

0 2px 6px 0 rgb(15 23 42 / 0.06), 0 8px 20px 0 rgb(15 23 42 / 0.06)
Edit

Cloud

0 20px 50px -12px rgb(15 23 42 / 0.18)
Edit

Mist

0 0 40px 0 rgb(15 23 42 / 0.1)
Edit

Paper

0 1px 1px 0 rgb(15 23 42 / 0.06), 0 2px 4px 0 rgb(15 23 42 / 0.06)
Edit

Lift 1

0 0 0 0 rgb(15 23 42 / 0.06), 0 0 1px 0 rgb(15 23 42 / 0.06), 0 1px 3px 0 rgb(15 23 42 / 0.06), 0 2px 5px 0 rgb(15 23 42 / 0.06), 0 3px 8px 0 rgb(15 23 42 / 0.06)
Edit

Lift 2

0 0 1px 0 rgb(15 23 42 / 0.06), 0 1px 3px 0 rgb(15 23 42 / 0.06), 0 3px 7px 0 rgb(15 23 42 / 0.06), 0 5px 12px 0 rgb(15 23 42 / 0.06), 0 8px 19px 0 rgb(15 23 42 / 0.06)
Edit

Lift 3

0 1px 1px 0 rgb(15 23 42 / 0.06), 0 2px 5px 0 rgb(15 23 42 / 0.06), 0 5px 12px 0 rgb(15 23 42 / 0.06), 0 9px 22px 0 rgb(15 23 42 / 0.06), 0 14px 34px 0 rgb(15 23 42 / 0.06)
Edit

Lift 4

0 1px 2px 0 rgb(15 23 42 / 0.06), 0 3px 8px 0 rgb(15 23 42 / 0.06), 0 8px 19px 0 rgb(15 23 42 / 0.06), 0 13px 34px 0 rgb(15 23 42 / 0.06), 0 21px 53px 0 rgb(15 23 42 / 0.06)
Edit

Lift 5

0 1px 3px 0 rgb(15 23 42 / 0.06), 0 5px 13px 0 rgb(15 23 42 / 0.06), 0 12px 30px 0 rgb(15 23 42 / 0.06), 0 21px 53px 0 rgb(15 23 42 / 0.06), 0 33px 83px 0 rgb(15 23 42 / 0.06)
Edit

Stacked

0 1px 2px 0 rgb(15 23 42 / 0.06), 0 2px 4px 0 rgb(15 23 42 / 0.06), 0 4px 8px 0 rgb(15 23 42 / 0.06), 0 8px 16px 0 rgb(15 23 42 / 0.06), 0 16px 32px 0 rgb(15 23 42 / 0.06)
Edit

Ambient + key

0 0 2px 0 rgb(15 23 42 / 0.12), 0 10px 24px -6px rgb(15 23 42 / 0.2)
Edit

Long cast

4px 4px 8px 0 rgb(15 23 42 / 0.08), 12px 12px 24px 0 rgb(15 23 42 / 0.08), 28px 28px 56px 0 rgb(15 23 42 / 0.08)
Edit

Floating

0 2px 4px 0 rgb(15 23 42 / 0.04), 0 24px 48px -16px rgb(15 23 42 / 0.22)
Edit

Ringed

0 0 0 1px rgb(15 23 42 / 0.08), 0 6px 16px -2px rgb(15 23 42 / 0.12)
Edit

Offset block

6px 6px 0 0 rgb(15 23 42)
Edit

Brutalist

8px 8px 0 0 rgb(0 0 0)
Edit

Retro double

4px 4px 0 0 rgb(249 115 22), 8px 8px 0 0 rgb(14 165 233)
Edit

Outline

0 0 0 2px rgb(15 23 42)
Edit

Stamp

-4px 4px 0 0 rgb(190 18 60)
Edit

Neon cyan

0 0 8px 0 rgb(34 211 238 / 0.7), 0 0 32px 4px rgb(34 211 238 / 0.4)
Edit

Magenta glow

0 0 24px 2px rgb(232 121 249 / 0.55)
Edit

Sunset

0 10px 30px -6px rgb(249 115 22 / 0.45), 0 20px 50px -12px rgb(236 72 153 / 0.3)
Edit

Brand tint

0 12px 28px -8px rgb(79 70 229 / 0.4)
Edit

Aurora

-12px 0 40px 0 rgb(34 197 94 / 0.35), 12px 0 40px 0 rgb(59 130 246 / 0.35)
Edit

Soft UI

8px 8px 16px 0 rgb(163 177 198 / 0.7), -8px -8px 16px 0 rgb(255 255 255)
Edit

Soft UI small

4px 4px 8px 0 rgb(163 177 198 / 0.7), -4px -4px 8px 0 rgb(255 255 255)
Edit

Soft UI pressed

inset 6px 6px 12px 0 rgb(163 177 198 / 0.7), inset -6px -6px 12px 0 rgb(255 255 255)
Edit

Soft UI dark

8px 8px 16px 0 rgb(21 26 34 / 0.8), -8px -8px 16px 0 rgb(45 54 70 / 0.8)
Edit

Pressed

inset 0 2px 6px 0 rgb(15 23 42 / 0.2)
Edit

Well

inset 0 4px 12px 0 rgb(15 23 42 / 0.18), inset 0 0 0 1px rgb(15 23 42 / 0.08)
Edit

Top bevel

inset 0 1px 0 0 rgb(255 255 255 / 0.6), inset 0 -2px 0 0 rgb(15 23 42 / 0.12)
Edit

Vignette

inset 0 0 40px 0 rgb(15 23 42 / 0.3)
Edit

Spotlight

0 40px 80px -20px rgb(15 23 42 / 0.45)
Edit

Hover card

0 4px 6px -2px rgb(15 23 42 / 0.1), 0 30px 60px -12px rgb(15 23 42 / 0.3)
Edit

Deep space

0 50px 100px -20px rgb(0 0 0 / 0.6)
Edit

Download the pack

Every shadow shown above, named and ready to drop into a stylesheet.

CSS variables shadow pack

Choosing a shadow for the job

Soft and elevation shadows suit cards, menus and dialogs, where depth should signal hierarchy without drawing attention. Sharp, unblurred shadows give a flat, printed or retro look and work well for buttons and badges. Glows are best on dark backgrounds, where a colored shadow reads as light rather than dirt.

Use a small number of steps consistently. A design that uses three shadow levels, each with a clear meaning, reads better than one where every component has its own.

Neumorphic and inset shadows

Neumorphic shadows pair a dark shadow with a light highlight on the opposite side, and only work when the element and the page share the same background color. That is why those examples carry their own stage. Their low contrast makes them a poor choice for controls that must be recognised as interactive.

Inset shadows are drawn inside the element. They suit pressed buttons, input wells and subtle vignettes, and they can be combined with outer layers in the same declaration.

Using the downloadable pack

The pack contains every shadow currently shown, so filter first if you only want one style. Each shadow is named after its example, as a custom property, a class, a Tailwind v4 theme token or an SCSS variable with a map of all of them.

The light and dark background switch changes the preview and the colors carried into the generator. It does not change the shadow values themselves.

Frequently asked questions

Yes. The examples are original to this gallery and are plain CSS values; copy and adapt them freely.

Cookie consent

We use cookies to run the site and improve your experience. You can choose which types to allow.

Cookie preferences
Manage preferences