# Badge

A status chip. The word carries the meaning; the colour never does alone.

Group: Status and waiting. Code: `components/software/badge.tsx`. From the old system: Badge in @id-identity-as/ui (ten coloured variants, now three). Live: https://design.id-hub.dk/software/badge

```tsx
import { Badge } from '@/components/software/badge';

<Badge>Kladde</Badge>
<Badge variant="tint">I gang</Badge>
<Badge variant="solid">Afventer godkendelse</Badge>
```

| 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 image. That is a Pill, which is drawn in 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

---

Not drawn in Figma. Kasper decided on 20 November 2026 that internal software gets this set now, built only from the tokens. The look is ours until Peter draws it, and every open choice is a question in docs/SPOERGSMAAL-TIL-PETER.md. The public site, campaigns and brand surfaces use only the components drawn in Figma.

The rules for this set and all 33 components: https://design.id-hub.dk/software.md. Token values: https://design.id-hub.dk/tokens.md.

Index of everything, as text: https://design.id-hub.dk/llms.txt. Never invent a colour, a size, a component or a product fact: if it is not here, it does not exist yet.
