Windframe Import update is finally here!


Bootstrap 5 Badges

Bootstrap 5 Badges are used to convey and show messages. Badges can be used to display notifications such as unread messages, missed phone calls, and so on.

Default Badges

Using relative font sizing and em units, the Contrast Bootstrap 5 Badge scales to fit the size of the immediate parent element.

Bootstrap Badge

<button class="btn btn-dark">
<span class="badge bg-light text-dark ml-2">4</span>
<span class="badge bg-primary">Primary</span>
<span class="badge bg-secondary">Secondary</span>
<span class="badge bg-success">Success</span>
<span class="badge bg-danger">Danger</span>
<span class="badge bg-warning text-dark">Warning</span>
<span class="badge bg-info">Info</span>
<span class="badge bg-light text-dark">Light</span>
<span class="badge bg-dark text-light">Dark</span>

Pill Badges

The Contrast Bootstrap 5 Badge adds a class of badge-pill to your span. This gives the badges a more rounded appearance.

Bootstrap Badges Pill

<span class="badge badge-pill bg-primary">Primary</span>
<span class="badge badge-pill bg-secondary">Secondary</span>
<span class="badge badge-pill bg-success">Success</span>
<span class="badge badge-pill bg-danger">Danger</span>
<span class="badge badge-pill bg-warning text-dark">Warning</span>
<span class="badge badge-pill bg-info">Info</span>
<span class="badge badge-pill bg-light text-dark">Light</span>
<span class="badge badge-pill bg-dark text-light">Dark</span>

Contextual Variations

To define how little or how large you want your Contrast Bootstrap badge to be, give your span element a class of badge and append the size code of the badge you want (lg for a large badge, and sm for small). For example <span class="badge badge-lg ">Large</span>.

Bootstrap Badges Contextual Variations

<span class="badge badge-lg bg-primary">Large</span>
<span class="badge bg-secondary">Normal</span>
<span class="badge badge-sm bg-success">Small</span>

Flat Badges

To remove shadows from your badges, use the badge-flat class.

Bootstrap Badges Flat

<span class="badge badge-flat bg-dark">Flat Badge</span>

Badges with Icons

Pro Component

We can nest the icon element in our badge span to allowus use icons in our badges.

Bootstrap Badges with Icons

<span class="badge bg-primary"><i class="fa fa-facebook"></i></span>
<span class="badge bg-secondary"><i class="fa fa-snapchat-ghost"></i></span>
<span class="badge bg-success"><i class="fa fa-anchor"></i></span>
<span class="badge bg-danger"><i class="fa fa-twitter"></i></span>
<span class="badge bg-warning text-dark"><i class="fa fa-bomb"></i></span>
<span class="badge bg-info"><i class="fa fa-heart"></i></span>
<span class="badge bg-light text-dark">
<i class="fa fa-btc"></i>
<span class="badge bg-dark text-light"><i class="fa fa-apple"></i></span>

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template


Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast