Badges
Add contextual labels to text within your project
Default Bootstrap Badges
Primary
Secondary
Success
Danger
Warning
Info
Light
Dark
span.badge.badge-primary.mr-2 Primary
span.badge.badge-secondary.mr-2 Secondary
span.badge.badge-success.mr-2 Success
span.badge.badge-danger.mr-2 Danger
span.badge.badge-warning.mr-2 Warning
span.badge.badge-info.mr-2 Info
span.badge.badge-light.mr-2 Light
span.badge.badge-dark.mr-2 Dark
By default, Bootstrap includes the above badges. The styling for these default badges has been modified to fit the SB Admin Pro theme.
Extended Badges
Red
Orange
Yellow
Green
Teal
Cyan
Blue
Indigo
Purple
Pink
span.badge.badge-red Red
span.badge.badge-orange Orange
span.badge.badge-yellow Yellow
span.badge.badge-green Green
span.badge.badge-teal Teal
span.badge.badge-cyan Cyan
span.badge.badge-blue Blue
span.badge.badge-indigo Indigo
span.badge.badge-purple Purple
span.badge.badge-pink Pink
The above non-contextual badge styles are custom made for the SB Admin Pro theme!
Badge Sizing
Example Heading New
Example Heading New
Example Heading New
Example Heading New
Example Heading New
Example Heading New
This is an example paragraph with a badge at the end! New
h1 Example Heading
span.badge.badge-primary.ml-2 New
h2 Example Heading
span.badge.badge-primary.ml-2 New
h3 Example Heading
span.badge.badge-primary.ml-2 New
h4 Example Heading
span.badge.badge-primary.ml-2 New
h5 Example Heading
span.badge.badge-primary.ml-2 New
h6 Example Heading
span.badge.badge-primary.ml-2 New
p This is an example paragraph with a badge at the end!
span.badge.badge-primary.ml-2 New
button.btn.btn-primary.mr-2 Messages
span.badge.badge-white.ml-2 5
button.btn.btn-secondary.mr-2 Notifications
span.badge.badge-white.ml-2 3
button.btn.btn-warning Alerts
span.badge.badge-white.ml-2 7
Badge sizing is set using
em
units, which means they will adapt to the font size of their immediate parent. The above examples show the badge size adapting to the parent, including the badge used within the button element.