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
<div class="shadow-sm bg-white rounded-2 d-flex align-items-center justify-content-center demo-box-lg"><span>.shadow-sm</span></div>
<div class="shadow bg-white rounded-2 d-flex align-items-center justify-content-center demo-box-lg"><span>.shadow</span></div>
<div class="shadow-md bg-white rounded-2 d-flex align-items-center justify-content-center demo-box-lg"><span>.shadow-md</span></div>
<div class="shadow-lg bg-white rounded-2 d-flex align-items-center justify-content-center demo-box-lg"><span>.shadow-lg</span></div>
<div class="shadow-xl bg-white rounded-2 d-flex align-items-center justify-content-center demo-box-lg"><span>.shadow-xl</span></div>
<div class="shadow-none bg-white border rounded-2 d-flex align-items-center justify-content-center demo-box-lg"><span>.shadow-none</span></div>

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>