Skip to main content

Shadows

Add or remove shadows to elements with box-shadow utilities.

Examples

.shadow-sm
.shadow
.shadow-md
.shadow-lg
.shadow-xl
.shadow-none

Available values

ClassEffect
.shadow-noneNo shadow
.shadow-smSmall `.05` alpha shadow
.shadow / .shadow-baseBase shadow
.shadow-mdMedium
.shadow-lgLarge
.shadow-xl / .shadow-2xlExtra large
.shadow-innerInset

Use .shadow-sm.shadow-xl for responsive variants as well (.shadow-lg default, .shadow-md on large screens, etc.).

Material elevation

For Material Design depths from 0–5, use the elevation helpers: .elevation-0 through .elevation-5.

<div class="elevation-3">Elevated</div>