Skip to content

Badge

A small pill for counts and labels. Its size follows the text around it.

Inbox 12

Status: Paid

Colors

Badges are secondary by default. A color class changes the color.

Primary Secondary Contrast Accent Info Success Warning Danger Link

Outlined

Primary Info Danger

Variables

VariableDefault
--i-badge-font-sizeRelative to the surrounding text, so a badge fits headings and buttons0.75em
--i-badge-padding-block0.125em
--i-badge-trimmed-padding-blockUsed where text-box trims the line to the cap height, for the same height0.4em
--i-badge-padding-inline0.5em