...

Shadows

Shadows convey meaning by implying the elevation of elements on a page. According to the principles of Material Design, "shadows provide important visual cues about objects’ depth and directional movement. They are the only visual cue indicating the amount of separation between surfaces. An object’s elevation determines the appearance of its shadow."

In this adaptation of Material Design for Bootstrap, we have extended Bootstrap's shadow utilities to include all of the elevation options defined by Material Design.


Bootstrap Shadow Utilities

By default, Bootstrap uses the four following shadow utilities, which have been modified to fit the Material Design styling of this toolkit.

No shadow
.shadow-none
Small shadow
.shadow-sm
Regular shadow
.shadow
Large shadow
.shadow-lg


Material Design Shadows Utilities

In addition to the default Bootstrap shadow utilities, this toolkit has been expanded to include the complete set of Material Design elevation variations.

This expanded set of utility classes are named using the format .shadow-{elevation} where elevation is any number between 0 and 24. See all of the variations in the examples below.

0dp
.shadow-0
1dp
.shadow-1
2dp
.shadow-2
3dp
.shadow-3
4dp
.shadow-4
5dp
.shadow-5
6dp
.shadow-6
7dp
.shadow-7
8dp
.shadow-8
9dp
.shadow-9
10dp
.shadow-10
11dp
.shadow-11
12dp
.shadow-12
13d
.shadow-13
14dp
.shadow-14
15dp
.shadow-15
16dp
.shadow-16
17dp
.shadow-17
18dp
.shadow-18
19dp
.shadow-19
20dp
.shadow-20
21dp
.shadow-21
22dp
.shadow-22
23dp
.shadow-23
24dp
.shadow-24