Shadows
Shadow utilities add or remove box shadows: shadow-sm for subtle depth, shadow for regular elevation and shadow-lg for floating elements, while shadow-none removes a component's default shadow. Use stronger shadows for elements that sit above others, such as menus, dialogs and floating buttons.
1Shadow sizes
shadow-none, shadow-sm, shadow and shadow-lg.
shadow-noneshadow-smshadowshadow-lg<div class="row g-4 p-2">
<div class="col-6 col-md-3">
<div class="bg-body rounded-3 p-3 text-center shadow-none border">
<code class="small">shadow-none</code>
</div>
</div>
<div class="col-6 col-md-3">
<div class="bg-body rounded-3 p-3 text-center shadow-sm">
<code class="small">shadow-sm</code>
</div>
</div>
<div class="col-6 col-md-3">
<div class="bg-body rounded-3 p-3 text-center shadow">
<code class="small">shadow</code>
</div>
</div>
<div class="col-6 col-md-3">
<div class="bg-body rounded-3 p-3 text-center shadow-lg">
<code class="small">shadow-lg</code>
</div>
</div>
</div>2Floating card
shadow-lg and rounded-4 lift a profile card off the page.
<div class="bg-body rounded-4 shadow-lg p-4 text-center mx-auto" style="max-width:18rem">
<img src="../assets/img/avatar-11.svg" alt="Amara Okafor" width="72" height="72" class="rounded-circle mb-2">
<div class="fw-semibold">
Owen Duarte
</div>
<div class="small text-body-secondary mb-3">
Data Analyst
</div>
<button type="button" class="btn btn-sm btn-primary">Follow</button>
</div>3Subtle input shadow
shadow-sm on a search field gives it a little depth.
<div style="max-width:22rem">
<label class="visually-hidden" for="ut-find-1255">Search</label>
<input id="ut-find-1255" type="search" class="form-control form-control-lg shadow-sm rounded-pill" placeholder="Search Social">
</div>4Remove a component shadow
shadow-none removes the default focus or component shadow when you need a flat look.
<div class="d-flex flex-wrap gap-2">
<button type="button" class="btn btn-primary shadow">With shadow</button>
<button type="button" class="btn btn-primary shadow-none">shadow-none</button>
</div>5Sticky header shadow
A header bar with shadow-sm separates itself from scrolling content.
<div class="border rounded-3 overflow-hidden">
<div class="bg-body shadow-sm px-3 py-2 d-flex justify-content-between align-items-center position-relative">
<span class="fw-semibold">Nova Flow</span><span><i class="bi bi-list" aria-hidden="true"></i></span>
</div>
<div class="bg-body-tertiary p-3 small">
Start in minutes and get help from a real person whenever you need it. We measure success in sign-ups, sales and brand recall, not just awards.
</div>
</div>6Pricing card emphasis
The featured plan has shadow-lg, its neighbours shadow-sm.
<div class="row g-3 align-items-center p-2">
<div class="col-sm-4">
<div class="bg-body rounded-4 shadow-sm p-3 text-center">
<div class="small">
Starter
</div>
<div class="fs-4 fw-bold">
$13.39
</div>
</div>
</div>
<div class="col-sm-4">
<div class="bg-body rounded-4 shadow-lg p-4 text-center border border-primary">
<div class="small text-primary fw-semibold">
Popular
</div>
<div class="fs-3 fw-bold">
$38.76
</div>
</div>
</div>
<div class="col-sm-4">
<div class="bg-body rounded-4 shadow-sm p-3 text-center">
<div class="small">
Business
</div>
<div class="fs-4 fw-bold">
$63.76
</div>
</div>
</div>
</div>7Dropdown-like panel
A static menu with shadow and rounded-3, as a dropdown would look when open.
<div class="bg-body border rounded-3 shadow py-2" style="max-width:14rem">
<a href="#" class="d-block px-3 py-1 link-body-emphasis text-decoration-none"><i class="bi bi-person" aria-hidden="true"></i> Profile</a> <a href="#" class="d-block px-3 py-1 link-body-emphasis text-decoration-none"><i class="bi bi-gear" aria-hidden="true"></i> Settings</a>
<hr class="my-2">
<a href="#" class="d-block px-3 py-1 link-danger text-decoration-none"><i class="bi bi-box-arrow-right" aria-hidden="true"></i> Sign out</a>
</div>8Toast-like notification
A small notice with shadow-lg and a coloured side border.
<div class="bg-body rounded-3 shadow-lg border-start border-4 border-success p-3 d-flex gap-2" style="max-width:22rem" role="status">
<span class="text-success fs-5"><i class="bi bi-check-circle-fill" aria-hidden="true"></i></span>
<div>
<div class="fw-semibold">
Saved
</div>
<div class="small text-body-secondary">
We measure success by how many clients come back and tell their friends.
</div>
</div>
</div>9Image with shadow
Photos with rounded-4 and shadow look like printed cards.
<div class="d-flex flex-wrap gap-4 p-2">
<img src="https://images.unsplash.com/photo-1777923311853-d14b7beb9fec?auto=format&fit=crop&w=1200&h=800&q=70" alt="The small habits that make a big difference" width="160" class="rounded-4 shadow"> <img src="https://images.unsplash.com/photo-1787647559705-d2ad3322020e?auto=format&fit=crop&w=1200&h=800&q=70" alt="How we ran a rebrand in eight weeks" width="160" class="rounded-4 shadow-lg">
</div>10Floating action button
A round button with shadow-lg in a corner of a panel.
Our motion team turns complex ideas into short films people actually watch.
<div class="position-relative bg-body-tertiary border rounded-4" style="height:160px">
<p class="small text-body-secondary p-3 mb-0">Our motion team turns complex ideas into short films people actually watch.</p>
<button type="button" class="btn btn-primary rounded-circle shadow-lg position-absolute bottom-0 end-0 m-3 d-flex align-items-center justify-content-center" style="width:52px;height:52px" aria-label="Add"><i class="bi bi-plus-lg" aria-hidden="true"></i></button>
</div>11Elevation levels
Stacked layers with increasing shadows show elevation order.
<div class="bg-body-tertiary rounded-4 p-4">
<div class="bg-body rounded-3 shadow-sm p-3">
<div class="small mb-2">
Level 1 - shadow-sm
</div>
<div class="bg-body rounded-3 shadow p-3">
<div class="small mb-2">
Level 2 - shadow
</div>
<div class="bg-body rounded-3 shadow-lg p-3 small">
Level 3 - shadow-lg
</div>
</div>
</div>
</div>12Stat cards
shadow-sm with no border for soft dashboard tiles.
<div class="row g-3 p-1">
<div class="col-6">
<div class="bg-body rounded-4 shadow-sm p-3">
<div class="small text-body-secondary">
Orders
</div>
<div class="fs-4 fw-bold">
817
</div>
</div>
</div>
<div class="col-6">
<div class="bg-body rounded-4 shadow-sm p-3">
<div class="small text-body-secondary">
Revenue
</div>
<div class="fs-4 fw-bold">
$18,479.12
</div>
</div>
</div>
</div>13Modal-like dialog
A static dialog box with shadow-lg over a dimmed area.
Delete launch?
This cannot be undone.
<div class="bg-dark bg-opacity-25 rounded-4 p-4 d-flex justify-content-center">
<div class="bg-body rounded-4 shadow-lg p-4" style="max-width:20rem" role="dialog" aria-label="Confirm">
<h3 class="h6 fw-semibold">Delete launch?</h3>
<p class="small text-body-secondary">This cannot be undone.</p>
<div class="d-flex gap-2 justify-content-end">
<button type="button" class="btn btn-sm btn-light">Cancel</button>
<button type="button" class="btn btn-sm btn-danger">Delete</button>
</div>
</div>
</div>14Product tile
shadow-sm on the product card and shadow on the price chip.
<div class="bg-body rounded-4 shadow-sm overflow-hidden position-relative" style="max-width:16rem">
<img src="../assets/img/product-5.svg" alt="Design retainer" class="w-100 d-block"> <span class="position-absolute top-0 end-0 m-2 bg-body rounded-pill px-2 py-1 small fw-bold shadow">$15.75</span>
<div class="p-3">
<div class="fw-medium">
Design retainer
</div>
<div class="small text-body-secondary">
Branding
</div>
</div>
</div>15Callout box
A tip box with shadow-sm and a tinted background.
Clear prices, honest advice and no surprises along the way.
<div class="bg-info-subtle text-info-emphasis rounded-4 shadow-sm p-3 d-flex gap-3">
<span class="fs-4"><i class="bi bi-lightbulb" aria-hidden="true"></i></span>
<p class="mb-0 small">Clear prices, honest advice and no surprises along the way.</p>
</div>16Tooltip-like label
A tiny dark label with shadow pointing at a chart value.
<div class="d-flex align-items-end gap-2" style="height:120px">
<div class="bg-primary-subtle rounded-top w-25 h-50">
</div>
<div class="bg-primary rounded-top w-25 h-100 position-relative">
<span class="position-absolute top-0 start-50 translate-middle text-bg-dark rounded-2 px-2 py-1 small shadow text-nowrap">232</span>
</div>
<div class="bg-primary-subtle rounded-top w-25 h-75">
</div>
<div class="bg-primary-subtle rounded-top w-25 h-25">
</div>
</div>17Navigation bar shadow
A light navbar with shadow instead of a border.
<nav class="bg-body rounded-3 shadow px-3 py-2 d-flex flex-wrap align-items-center gap-3" aria-label="Main">
<span class="fw-bold me-auto">Nova Flow</span> <a href="#" class="link-body-emphasis text-decoration-none small">Home</a> <a href="#" class="link-body-emphasis text-decoration-none small">Shop</a> <a href="#" class="btn btn-sm btn-primary">Sign up</a>
</nav>18Upload drop area
A large area with shadow-sm and rounded-4, waiting for files.
<div class="bg-body rounded-4 shadow-sm p-4 text-center border">
<div class="fs-2 text-primary">
<i class="bi bi-cloud-arrow-up" aria-hidden="true"></i>
</div>
<div class="fw-semibold">
Drop files here
</div>
<div class="small text-body-secondary">
PNG, JPG or PDF up to 22 MB
</div>
</div>19Shadow on dark
Shadows are stronger on light surfaces; on dark ones add a border-opacity border for definition.
<div class="bg-dark rounded-4 p-4 d-flex flex-wrap gap-3">
<div class="bg-dark text-white rounded-3 shadow-lg p-3 border border-white border-opacity-10 small">
shadow-lg + border-opacity-10
</div>
<div class="bg-dark text-white rounded-3 shadow p-3 small">
shadow only
</div>
</div>20Testimonial card
A quote card with shadow and a large quote icon.
Every project starts with a workshop, so we understand your audience before we design.
<figure class="bg-body rounded-4 shadow p-4 mb-0" style="max-width:28rem">
<div class="fs-2 text-primary lh-1">
<i class="bi bi-quote" aria-hidden="true"></i>
</div>
<blockquote class="mb-3"><p class="mb-0">Every project starts with a workshop, so we understand your audience before we design.</p></blockquote>
<figcaption class="small text-body-secondary">Ethan Morgan, Denver</figcaption>
</figure>