Badge
Short label for status, plan, environment, or role. Sits next to the thing it describes.
Variants
Color plus contrast. high is the solid fill. low is the subtle chip for dense rows.
gray
gray-subtle
blue
blue-subtle
purple
purple-subtle
amber
amber-subtle
red
red-subtle
pink
pink-subtle
green
green-subtle
teal
teal-subtle
inverted
Trial
Turborepo
Sizes
Hesoyam sizes are sm, md, and lg. small and large are aliases for sm and lg.
With icons
One icon via the icon slot, then the label. Do not stack two icons.
gray
gray
gray
gray
blue
blue
blue
blue
purple
purple
purple
purple
amber
amber
amber
amber
red
red
red
red
pink
pink
pink
pink
green
green
green
green
teal
teal
teal
teal
Pill
Link-shaped chip. Less loud than a Button. Render as an anchor with as set to a.
Best practices
- Badge is static metadata. One per row. A clickable filter is
pillor a small Button — do not hang a click handler on a status chip. - Map meaning to color:
greenhealthy,rederror,amberwarning,blueinformational,grayneutral. Low contrast tones any of them down. - Title Case, one word when you can, two max:
Active,Pending,Enterprise Trial. The row supplies the sentence. - Skip a check icon for success or an X for errors — the variant already carries that. Pair Alpha / Beta with a Tooltip that names the limit.
- Set
titlewhen the badge is icon-only or ambiguous. Do not rely on color alone. - Aliases
default,secondary,destructive,outline,ghost, andlinkremain for older screens. New code should use Hesoyam color names.