Components · Status

Badge Basic

A basic badge is a read-only status or label. It is never clickable.

Tokens, sizes, measurements and requirements. Values come from the live token package and from Figma: Basic.

Design Tokens

Resolved from the live token package.

State · emphasisPartTokenValue

Open point: Alert warning uses text-primary at every emphasis: there is no warning text token with enough contrast.


Sizes

Three sizes. Large and Medium look different on mobile and desktop. Small is the same size as Medium on mobile. Padding is under Measurements.

SizeHeight desktop · mobileType desktopType mobileAvailability
Large26px · 24px14/14, 0.56px14/14, 0.48pxDesktop and mobile
Medium (default)22px · 18px14/14, 0.56px12/12, 0.48pxDesktop and mobile
Small18px · 18px12/12, 0.48px12/12, 0.48pxDesktop and mobile

Weight is 500 (sentence case) or 600 (upper case: Figma 700 minus 100). The icon is 14px, the gap 4px (space-4). Figma Badge/Basic: node 3912:157194.


Measurements

Dimensions

Padding of the three sizes, at true size. Window follows the window width; Desktop (769px and up) and Mobile force the breakpoint. The shaded areas are the padding; the numbers are read from the component.

Breakpoint
Padding of the three sizes at true size (1:1). Switch the breakpoint to see the mobile values.
SizePadding desktopPadding mobile
Large6px 8px5px 6px
Medium4px 5px3px 4px
Small3px 5px3px 4px

With an icon the height grows by the icon (14px) only when the icon is taller than the line: Medium 22px, Small 20px on desktop, Medium and Small 20px on mobile. The gap between icon and text is 4px (space-4).

Spacing

Vertical and horizontal padding as spacing tokens.

SizeVertical desktop · mobileHorizontal desktop · mobile
Large6px · space-4 + 1pxspace-8 · 6px
Mediumspace-4 · 3px5px · space-4
Small3px · 3px5px · space-4

6px, 5px, 3px and 1px have no spacing token; they are the values Figma uses.


Typography

PropertyValue
FamilyBreuer Condensed
Weight500 sentence case · 600 upper case (Figma 700 minus 100)
CaseSentence case by default; badge-basic--uppercase for categories
Feature settings'ss02' 1, 'ss03' 1 (Medium also 'ss06' 1)

States

A badge has no interaction states: no hover, no focus, no pressed, no disabled.


Behavior

TopicRule
InteractionNone. A badge is never a link or a button, has no focus and no hover state.
WidthHugs the text. No maximum: keep labels to one or two words.
WrappingNever wraps (white-space: nowrap).

Accessibility Requirements

TopicRequirement
NameThe text of the badge. The icon is decorative: aria-hidden="true".
ColorNot the only carrier of meaning (WCAG 1.4.1): pair an alert color with its icon or clear text.
ContrastText and background meet 4.5:1. Alert warning uses black text for that reason.
Interactive contentNone.