Badge
A single 0.7em pill for statuses, labels and version tags, computed with contrast-color().
Description
.badge renders at 0.7em (the universal $scale-sm) with 0.4em/0.6em padding and the button radius. Its colors are computed with a double contrast-color() against the page background, so the badge inverts itself when the theme flips.
The size derives from --forma-scale-sm and the radius from $border-radius-button; the colors compute from --forma-color-background, so they always follow your palette.
Badges in context
One class works on headings, paragraphs and buttons alike, and the automatic inversion means a single markup for both themes: no light or dark variants to maintain.
Release 1.2 new
Batch image export beta and 14 fixes.
HTML
<h4>Release 1.2 <span class="badge">new</span></h4>
<p>Batch image export <span class="badge">beta</span> and 14 fixes.</p>