# Icons

We use the Tabler icon set, a library of more than 5000 outline icons, plus a few custom icons for things the set doesn’t cover. Custom icons are drawn to the same rules, so the two sit together without notice.

Icons are treated as part of the text. Next to running text, an icon is 1.5 times the text size, kept on the 4 px grid. Inside a control, such as a button, the icon matches the line height of its text instead. There are four sizes: 16, 20, 24 and 36 px.

The stroke grows at half the pace of the icon: stroke = (icon size + 16) / 24. That gives 1.33 px at 16, 1.5 px at 20, 1.67 px at 24 and 2.17 px at 36, so small icons stay clear and large ones never turn heavy. Pick the size with the Size property on the Icon component, and never scale an icon with K.

## In code: the ID set

<Icon name="..." /> takes one of these 21 names and nothing else. Its props and rules: https://design.id-hub.dk/components/icon.md

| Name | Means |
| --- | --- |
| composition | Materialets sammensætning, fx 100 % bomuld |
| fit | Pasform |
| weight | Stofvægt, fx 175 g/m² |
| search | Søg |
| user | Konto, log ind |
| heart | Favorit |
| size | Størrelse, størrelsesguide |
| filter | Filtrér en liste |
| menu | Åbn menuen |
| arrow-right | Videre, gå til |
| arrow-left | Tilbage |
| arrow-up | Op, til toppen |
| arrow-down | Ned, hent |
| chevron-left | Forrige |
| chevron-right | Næste, fold ud til siden |
| chevron-up | Fold sammen |
| chevron-down | Fold ud, åbn en liste |
| refresh | Opdatér, prøv igen |
| check | Valgt, gennemført |
| plus | Tilføj, flere |
| x | Luk, fjern |

## For a slide, a document or print: the whole library

Every icon ID may use, the ID set first and then the Tabler outline set, is in https://design.id-hub.dk/icons/library.json: name, set, category, tags and meaning. Search that file by name or tag, in Danish or English. Each drawing is an SVG at https://design.id-hub.dk/icons/svg/{name}.svg, drawn at 24 px with ID's stroke in Ink. Never a filled icon, and never an icon from another set.

## Sizes and stroke

| Size | Icon | Stroke | Use |
| --- | --- | --- | --- |
| sm | 16px | 1.333px | For Body xs. |
| md | 20px | 1.5px | For Body sm, Heading sm, and inside a control with Body md or Button md. |
| lg | 24px | 1.667px | For Body md, Button. |
| xl | 36px | 2.167px | For Body lg. |

---

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.
