Internal ID software / Text
Text
Body text in one of the body styles, default or muted.
Not drawn in Figma: built only from the tokens, for internal ID software. In code: components/software/typography.tsx. From the old system: Text in @id-identity-as/ui/layout.
Example
Body/lg til en indledning.
Body/md er standarden på skærm. Med measure holdes linjen kort nok til, at et afsnit er til at læse.
Body/sm i den dæmpede tone til det, der støtter hovedlinjen.
Body/lg til en indledning.
Body/md er standarden på skærm. Med measure holdes linjen kort nok til, at et afsnit er til at læse.
Body/sm i den dæmpede tone til det, der støtter hovedlinjen.
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>Props
| 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 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.software.muted