Bootstrap Shadows

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

Free

Examples

While shadows on components are disabled by default in Bootstrap and can be enabled via $enable-shadows, you can also quickly add or remove a shadow with our box-shadow utility classes. Includes support for .shadow-none and three default sizes (which have associated variables to match).

No shadow
Small shadow
Regular shadow
Large shadow
Extra Large shadow
Pop shadow
Risen shadow
<div class="shadow-none p-3 mb-6 bg-white rounded">No shadow</div>
<div class="shadow-sm p-3 mb-6 bg-white rounded">Small shadow</div>
<div class="shadow p-3 mb-6 bg-white rounded">Regular shadow</div>
<div class="shadow-lg p-3 mb-7 bg-white rounded">Large shadow</div>
<div class="shadow-xl p-3 mb-7 bg-white rounded">Extra Large shadow</div>
<div class="shadow-pop p-3 mb-7 bg-white rounded">Pop shadow</div>
<div class="shadow-risen p-3 mb-7 bg-white rounded">Risen shadow</div>
Pro

Hover effect

Create shadow hover effect using data-fx="h:{shadow}" attribute that is part of Torus Kit powerful Effects & Animations component.

Small shadow
Regular shadow
Large shadow
Extra Large shadow
Pop shadow
Risen shadow
<div class="p-3 mb-6 bg-white rounded" data-fx="h:shadow-sm">Small shadow</div>
<div class="p-3 mb-6 bg-white rounded" data-fx="h:shadow">Regular shadow</div>
<div class="p-3 mb-7 bg-white rounded" data-fx="h:shadow-lg">Large shadow</div>
<div class="p-3 mb-7 bg-white rounded" data-fx="h:shadow-xl">Extra Large shadow</div>
<div class="p-3 mb-7 bg-white rounded" data-fx="h:shadow-pop">Pop shadow</div>
<div class="p-3 mb-7 bg-white rounded" data-fx="h:shadow-risen">Risen shadow</div>