Primitive

Badge

Inline status pill used for tone-tagged values (positive / negative / neutral). Tone is selected via data-tone.

Preview

+12%

Class

ClassWhen applied
.asset-badgeAlways.

CSS variables

Override these on any ancestor scope (or globally) to restyle this primitive. See the CSS Variables reference for the full token list and Theming for override patterns.

VariableAffects
--asset-radiusCorner radius (halved from the base value).
--asset-font-monoNumeric font family.
--asset-surfaceBackground of the neutral and default tones.
--asset-muted-foregroundText color of the neutral and default tones.
--asset-successBackground when data-tone="positive".
--asset-success-foregroundText when data-tone="positive".
--asset-destructiveBackground when data-tone="negative".
--asset-destructive-foregroundText when data-tone="negative".