Background

Convey meaning through background-color and add decoration with gradients.

Color & Background
Class name Preview
.text-bg-primary
Primary with contrasting color
.text-bg-secondary
Secondary with contrasting color
.text-bg-success
Success with contrasting color
.text-bg-info
Info with contrasting color
.text-bg-warning
Warning with contrasting color
.text-bg-danger
Danger with contrasting color
.text-bg-light
Light with contrasting color
.text-bg-dark
Dark with contrasting color
Background colors
Class name Preview
.bg-primary .bg-primary-subtle
Primary
Primary Subtle
.bg-secondary .bg-secondary-subtle
Secondary
Secondary Subtle
.bg-success .bg-success-subtle
Success
Success Subtle
.bg-info .bg-info-subtle
Info
Info Subtle
.bg-warning .bg-warning-subtle
Warning
Warning Subtle
.bg-danger .bg-danger-subtle
Danger
Danger Subtle
.bg-light .bg-light-subtle
Light
Light Subtle
.bg-dark .bg-dark-subtle
Dark
Dark Subtle
.bg-body .bg-body-secondary .bg-body-tertiary
Body
Body Secondary
Body Tertiary
.bg-white
White
.bg-black
Black
.bg-transparent
Transparent
Background gradient
Class name Preview
.bg-primary.bg-gradient
Primary with contrasting color
.bg-secondary.bg-gradient
Secondary with contrasting color
.bg-success.bg-gradient
Success with contrasting color
.bg-info.bg-gradient
Info with contrasting color
.bg-warning.bg-gradient
Warning with contrasting color
.bg-danger.bg-gradient
Danger with contrasting color
.bg-light.bg-gradient
Light with contrasting color
.bg-dark.bg-gradient
Dark with contrasting color
.bg-black.bg-gradient
Black with contrasting color
Background Opacity

Preview

This is default primary background
This is 75% opacity primary background
This is 50% opacity primary background
This is 25% opacity primary background
This is 10% opacity primary background

Avalable Classes

.bg-opacity-90 .bg-opacity-80
.bg-opacity-75 .bg-opacity-70
.bg-opacity-60 .bg-opacity-50
.bg-opacity-40 .bg-opacity-30
.bg-opacity-25 .bg-opacity-20
.bg-opacity-10
Gray colors
Class name Preview
.bg-gray-100
Gray 100
.bg-gray-200
Gray 200
.bg-gray-300
Gray 300
.bg-gray-400
Gray 400
.bg-gray
.bg-gray-500
Gray 500
.bg-gray-600
Gray 600
.bg-gray-700
Gray 700
.bg-gray-800
Gray 800
.bg-gray-900
Gray 900
All Colors

The classes are named using the format {color}-{darkness level}. Here are some representative examples of these classes:

.bg-blue-300 .bg-indigo-700 .bg-green-900

This can also be combined with the background opacity class.

.bg-blue-300.bg-opacity-50 .bg-indigo-700.bg-opacity-30 .bg-green-900.bg-opacity-70
Blue Indigo Purple Red Orange Yellow Green Teal Cyan
100
200
300
400
500
600
700
800
900
100
200
300
400
500
600
700
800
900
100
200
300
400
500
600
700
800
900
100
200
300
400
500
600
700
800
900
100
200
300
400
500
600
700
800
900
100
200
300
400
500
600
700
800
900
100
200
300
400
500
600
700
800
900
100
200
300
400
500
600
700
800
900
100
200
300
400
500
600
700
800
900
Nifty

Background Images

Add an image to replace the solid background color

Layouts

Layouts
Transitions
Header
Additional Offcanvas

Select the offcanvas placement.

Sidebars

Navigation
Sidebar

Colors

Modes
Color Schemes
Expanded Header
Fair Header
Full Header
Primary Nav
Brand
Tall Header
Miscellaneous
Scrollbars

Hides native scrollbars and creates custom styleable overlay scrollbars.

Offcanvas Header
Content Here

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente eos nihil earum aliquam quod in dolor, aspernatur obcaecati et at. Dicta, ipsum aut, fugit nam dolore porro non est totam sapiente animi recusandae obcaecati dolorum, rem ullam cumque. Illum quidem reiciendis autem neque excepturi odit est accusantium, facilis provident molestias, dicta obcaecati itaque ducimus fuga iure in distinctio voluptate nesciunt dignissimos rem error a. Expedita officiis nam dolore dolores ea. Soluta repellendus delectus culpa quo. Ea tenetur impedit error quod exercitationem ut ad provident quisquam omnis! Nostrum quasi ex delectus vero, facilis aut recusandae deleniti beatae. Qui velit commodi inventore.