# Text

Body text in one of the body styles, default or muted.

Group: Text. Code: `components/software/typography.tsx`. From the old system: Text in @id-identity-as/ui/layout. Live: https://design.id-hub.dk/software/text

```tsx
import { Text } from '@/components/software/typography';

<Text measure>Ordrer fra dine kolleger vises her, når de er godkendt.</Text>
<Text size="sm" tone="muted">Opdateret 14. august 2026</Text>
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| size | `'sm' \| 'md' \| 'lg'` | `'md'` | Body/sm (13 px), Body/md (16 px, the default on screen) or Body/lg (24 px). |
| tone | `'default' \| 'muted'` | `'default'` | Muted is for secondary text: a helper line, a caption, a timestamp. |
| measure | `boolean` | `false` | Caps the line length so a paragraph stays readable. |
| as | `ElementType` | `'p'` | The element to render: "p", "span" or "div". |

Do:
- Set measure on running text of more than a line or two.
- Use muted for what supports the main line, never for the main line itself.

Do not:
- Do not use Body/xs (10 px) for text that must be read. It is not offered here.
- Do not grey text with opacity or with Stone by hand. Muted is text/muted from Figma and holds contrast in light and dark.

Accessibility:
- Muted is Charcoal on light and Ash on dark: both hold 4.5:1 on the base surface. The build measures it.

Tokens it uses:
- type.body.sm
- type.body.md
- type.body.lg
- color.text.default
- color.text.muted

---

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.
