Internal ID software / Status and waiting
Badge
A status chip. The word carries the meaning; the colour never does alone.
Not drawn in Figma: built only from the tokens, for internal ID software. In code: components/software/badge.tsx. From the old system: Badge in @id-identity-as/ui (ten coloured variants, now three).
Example
KladdeI gangLeadAccent
KladdeI gangLeadAccent
import { Badge } from '@/components/software/badge';
<Badge>Kladde</Badge>
<Badge variant="tint">I gang</Badge>
<Badge variant="solid">Afventer godkendelse</Badge>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
variant | 'outline' | 'solid' | 'tint' | 'outline' | Outline is the quiet default. Solid is for the one status that needs to be seen. Tint is a light ground with Ink text. |
family | ColourFamily | The colour family of a tint: 'red', 'brown', 'tan', 'khaki', 'green', 'teal', 'blue' or 'purple'. Without it the tint is Mist. |
Do
- Write the status as a word: "Godkendt", "Afvist".
- Keep a family tint to the lead and the accent of the page, by the colour pair rule.
- Use solid for one kind of status per view, the one that asks for action.
Do not
- Do not use Flare, and do not use red for errors or green for approved. The system has no status colours.
- Do not let two tints from families that do not go together sit side by side.
- Do not put a badge on a product tile here. Commerce flags wait for Figma.
Accessibility
- The meaning is in the text, so it survives greyscale and a screen reader.
- A tint is a 200 shade with Ink text: at least 11.9:1.
Tokens it uses
- color.border.default
- color.text.default
- color.button.solid.fill
- color.button.solid.text
- color.neutral.200
- color.neutral.900
- radius.sm
- type.heading.sm
- space.inline.1
- space.inline.2