Colors
Background Colors
Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Background utilities
do not set
color
, so in some cases you’ll want to use
.text-*
utilities.
Primary
Secondary
Success
Danger
Warning
Info
Light
Dark
Text Color
Color and background helpers combine the power of our
.text-* utilities
and
.bg-* utilities
in one class.
.text-primary
.text-primary-emphasis
.text-secondary
.text-secondary-emphasis
.text-success
.text-success-emphasis
.text-danger
.text-danger-emphasis
.text-warning
.text-warning-emphasis
.text-info
.text-info-emphasis
.text-light
.text-light-emphasis
.text-dark
.text-dark-emphasis
.text-body
.text-body-emphasis
.text-body-secondary
.text-body-tertiary
.text-black
.text-white
.text-black-50
.text-white-50
Lik Colors
Contextual text classes also work well on anchors with the provided hover and focus states.
Note that the
.text-white
and
.text-muted
class has no additional link styling beyond underline.