// HTML text background and text color
<span class="badge bg-success text-primary"> text </span>
.text-muted or .bg-muted
Indicates the text color in light grey. Used to mute the text.
.text-primary
Indicates the text color in blue. Used to indicate the importance of a text
.text-success
Indicates the text color in green. Used to indicate success
.text-info
Indicates the text color in light blue. Used to indicate some information
.text-warning
Indicates the text color in yellow. Used to indicate a warning
.text-danger
Indicates the text color in red. Used to indicate danger
.text-secondary
Indicates the text color in grey. Used to indicate secondary text
.text-white
Indicates the text color in white
.text-dark
Indicates the text color in dark grey
.text-body
Indicates the text color in black. This is the default text color
.text-light
Indicates the text color in light grey on the white background
// Some code
<div class="alert alert-success">
<strong>Success!</strong> Indicates a successful or positive action.
</div>
<div class="alert alert-info">
<strong>Info!</strong> Indicates a neutral informative change or action.
</div>
<div class="alert alert-warning">
<strong>Warning!</strong> Indicates a warning that might need attention.
</div>
<div class="alert alert-danger">
<strong>Danger!</strong> Indicates a dangerous or potentially negative action.
</div>