Badge

An inline way to show a status or count.

Class Result
.badgethe base badge class to setup structure
.badge-primaryprimary theme color
.badge-secondarysecondary theme color
.badge-successsuccess theme color
.badge-infoinfo theme color
.badge-warningwarning theme color
.badge-dangerdanger theme color
.badge-lightlight theme color
.badge-darkdark theme color

Usage

Use the Background Color, Text Color, and Border Radius classes to style badges.

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

Primary Secondary Success Danger Warning Info Light Dark


Compiled Example

Input

<span class="badge badge-primary">Badge</span>

Output

<table class="badge badge-primary" align="left" role="presentation" border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td style="line-height: 1; font-size: 75%; display: inline-block; font-weight: 700; white-space: nowrap; border-radius: 4px; margin: 0; padding: 4px 6.4px;" align="center" valign="baseline">
        <span>Badge</span>
      </td>
    </tr>
  </tbody>
</table>