---
name: "ID Identity Design System"
source: "https://www.figma.com/design/7enpuLoRKPmqvADi4NZCc8/"
site: "https://design.id-hub.dk"
colors:
  brand/flare: "#db052c"
  neutral/0: "#ffffff"
  neutral/50: "#f4f4f4"
  neutral/200: "#e0e0e0"
  neutral/300: "#b3b5b7"
  neutral/500: "#707071"
  neutral/600: "#575756"
  neutral/900: "#020203"
  red/200: "#ddcdc4"
  red/500: "#8c6f6d"
  red/900: "#56322b"
  brown/200: "#ede6d9"
  brown/500: "#81736f"
  brown/900: "#3b2c27"
  tan/200: "#e3d9ba"
  tan/500: "#817464"
  tan/900: "#4c3c2e"
  khaki/200: "#c8c5b1"
  khaki/500: "#787667"
  khaki/900: "#403e2c"
  green/200: "#d7decb"
  green/500: "#6a7a70"
  green/900: "#1f2e25"
  teal/200: "#c0dadb"
  teal/500: "#66797e"
  teal/900: "#213a3e"
  blue/200: "#bdcbd8"
  blue/500: "#717685"
  blue/900: "#2b3349"
  purple/200: "#dfcfd8"
  purple/500: "#81727a"
  purple/900: "#3a2732"
theme:
  surface/base:
    light: "neutral/0"
    dark: "neutral/900"
  surface/glass:
    light: "#0202030d"
    dark: "#ffffff1a"
  text/default:
    light: "neutral/900"
    dark: "neutral/0"
  button/solid/fill:
    light: "neutral/900"
    dark: "neutral/0"
  button/solid/text:
    light: "neutral/0"
    dark: "neutral/900"
  button/outline/stroke:
    light: "neutral/900"
    dark: "neutral/0"
  button/outline/text:
    light: "neutral/900"
    dark: "neutral/0"
  border/default:
    light: "neutral/200"
    dark: "neutral/600"
  packshot/fill:
    light: "neutral/50"
    dark: "neutral/50"
typography:
  Body/xs:
    fontFamily: "Momo Trust Sans"
    fontSize: "10px"
    lineHeight: "12px"
    fontWeight: 450
  Body/sm:
    fontFamily: "Momo Trust Sans"
    fontSize: "13px"
    lineHeight: "16px"
    fontWeight: 450
  Body/md:
    fontFamily: "Momo Trust Sans"
    fontSize: "16px"
    lineHeight: "20px"
    fontWeight: 450
  Body/lg:
    fontFamily: "Momo Trust Sans"
    fontSize: "24px"
    lineHeight: "28px"
    fontWeight: 450
  Heading/sm:
    fontFamily: "Momo Trust Sans"
    fontSize: "13px"
    lineHeight: "16px"
    fontWeight: 700
  Heading/md:
    fontFamily: "Momo Trust Sans"
    fontSize: "16px"
    lineHeight: "20px"
    fontWeight: 700
  Button/md:
    fontFamily: "Momo Trust Sans"
    fontSize: "16px"
    lineHeight: "20px"
    fontWeight: 600
  Display/sm:
    fontFamily: "Momo Trust Display"
    fontSize: "33px"
    lineHeight: "36px"
    fontWeight: 400
  Display/md:
    fontFamily: "Momo Trust Display"
    fontSize: "48px"
    lineHeight: "52px"
    fontWeight: 400
  Display/lg:
    fontFamily: "Momo Trust Display"
    fontSize: "72px"
    lineHeight: "72px"
    fontWeight: 400
  Display/xl:
    fontFamily: "Momo Trust Display"
    fontSize: "100px"
    lineHeight: "100px"
    fontWeight: 400
spacing:
  space/inline/1: "4px"
  space/inline/2: "8px"
  space/inline/3: "12px"
  space/inline/4: "16px"
  space/inline/5: "20px"
  space/section/1: "40px"
  space/section/2: "80px"
  space/section/3: "120px"
  space/section/4: "160px"
  space/seam: "2px"
rounded:
  radius/sm: "5px"
  radius/md: "11px"
  radius/lg: "33px"
---

# ID Identity Design System

A snapshot of the design system in one file, generated from the repository. The repository is the released truth; Figma is where a design decision is made first. Do not edit this file by hand.

## Rules

Peter's rules, word for word from Figma (https://www.figma.com/design/7enpuLoRKPmqvADi4NZCc8/), and the hard rules of the code.

### Hard rules

- Use only the tokens. Never write a hex colour, an rgb() colour, a pixel or rem size, or a font name in a page or a component.
- Tailwind's default scale does not exist here: p-4, text-lg, bg-blue-500 and rounded-xl give nothing. Use the utilities in the tables below (p-inline-4, type-body-md, bg-neutral-900, rounded-sm).
- Never use an arbitrary Tailwind value such as p-[13px] or bg-[#fff].
- Use only the components listed here. If a component is not listed, it does not exist: say so, do not invent one, and do not import one from another library.
- Check a component's props in its table before using it. Never guess a prop.
- Flare is the brand red and belongs to the logo only. Never use it for a button, a link, a badge or a ground.
- Packshots always sit on Snow (bg-packshot-fill). Never crop one, never give it a shadow.
- Never invent a product fact: a name, an article number, a price, a certificate or a customer.
- No em dash, anywhere.
- Icons are named, never drawn: <Icon name="..." /> with one of the names listed. No pasted svg.
- Text a component shows or reads aloud comes in as props, so it can be translated.

### Colours

Our brand color, Flare, stands on its own as the single color that signals the brand. It is supported by a neutral scale that carries most of our layouts, from backgrounds to text.

In print, the greys use K only, which keeps them neutral on press. Ink is the one exception: here we have a rich CMYK build that allows for a deeper color. For body text set in ink, we use a K only value (0 0 0 100).

In addition to the brand and neutral colors, we work with eight color families, ordered from warm to cool. Each family has multiple shades from dark to light.

Token names combine the family with a strength number, such as Red/900 or Red/200, and are used in code and screen design. In conversation and print, every shade, neutrals included, goes by its human name, e.g. Brick or Shell.

- Flare: Brand red. Logo only.
- 900 shades: Dark ground. White text; buttons solid/outlined in White.
- 500 shades: Mid tone, secondary use. Ink text on it; usable as text on White for headings, labels, short lines.
- 200 shades: Light ground. Ink text; buttons solid/outlined in Ink.

### Typography

Our type works in three roles. Display is our voice: large statements in Momo Trust Display for page titles, campaign messages and openers. Heading names things: short, bold labels at body size that introduce a section, a product or a group. Body carries everything else, from descriptions and prices to sizes, specs and small print. On screen, Body (md) is the default and every other size steps out from it. In print, the roles stay the same and the sizes follow the page. On dark backgrounds, text is set about 50 lighter so it keeps the same visual weight. Display has a single weight and doesn’t change. Where Momo Trust isn’t available, such as in emails and office documents, we use Arial as the fallback.

- Button/md: Buttons and calls to action. Same size as Body/md, but set in Semibold.

### Spacing

Our layouts are tight within and generous between. Spacing is built on a unit of 4, with the same numbers in px and pt. Inline spacing (4–20) keeps related elements close, section spacing (40–160) separates groups, and nothing sits between the two.

Margins are implied, and white space is part of the composition. In print, section spacing equals whole lines of the 10 pt baseline grid.

One exception: a 2 px seam (6 pt in print) separates tiles within the same block, such as product images.

- Seam: only between tiles that belong to the same block, such as product images in a grid. Separate things use inline spacing.

### Grids

We use a nine-column grid. Components and elements span column counts that divide cleanly into nine, such as thirds (three, six or nine columns), or asymmetric splits like four and five.

The grid is a guide, not a restriction: when it doesn’t serve the content or purpose, designers are free to introduce a grid that does.

### 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. An icon is 1.5 times the text size, kept on the 4 px grid, and its stroke is 1/12 of the text size: 12 px text gives a 1 px stroke, and 24 px text a 2 px stroke.

### Packshots

Packshots are always shown on a solid Snow (Neutral/50) background, on screen and in print alike. They can sit side by side with environmental shots, where the calm, neutral pack shot balances the richer context of the environmental image.

## Tokens

Every value in the system, with the Tailwind utility it gives. Generated from tokens/.

### Colours (Figma collection Color)

| Name | Figma | HEX | CMYK | Utility | Use |
| --- | --- | --- | --- | --- | --- |
| Flare | brand/flare | #DB052C | 0 97 79 6 | bg-brand-flare | Brand red. Logo only. |
| White | neutral/0 | #FFFFFF | 0 0 0 0 | bg-neutral-0 |  |
| Snow | neutral/50 | #F4F4F4 | 0 0 0 6 | bg-neutral-50 |  |
| Mist | neutral/200 | #E0E0E0 | 0 0 0 17 | bg-neutral-200 |  |
| Ash | neutral/300 | #B3B5B7 | 0 0 0 39 | bg-neutral-300 |  |
| Stone | neutral/500 | #707071 | 0 0 0 70 | bg-neutral-500 |  |
| Charcoal | neutral/600 | #575756 | 0 0 0 80 | bg-neutral-600 |  |
| Ink | neutral/900 | #020203 | 55 45 30 100 | bg-neutral-900 | Rich black; 0 0 0 100 for small text in print. |
| Shell | red/200 | #DDCDC4 | 16 20 23 0 | bg-red-200 | Light ground. Ink text; buttons solid/outlined in Ink. |
| Rust | red/500 | #8C6F6D | 43 52 46 21 | bg-red-500 | Mid tone, secondary use. Ink text on it; usable as text on White for headings, labels, short lines. |
| Brick | red/900 | #56322B | 54 79 74 54 | bg-red-900 | Dark ground. White text; buttons solid/outlined in White. |
| Ecru | brown/200 | #EDE6D9 | 9 9 16 0 | bg-brown-200 | Light ground. Ink text; buttons solid/outlined in Ink. |
| Clay | brown/500 | #81736F | 48 47 47 21 | bg-brown-500 | Mid tone, secondary use. Ink text on it; usable as text on White for headings, labels, short lines. |
| Espresso | brown/900 | #3B2C27 | 63 71 69 66 | bg-brown-900 | Dark ground. White text; buttons solid/outlined in White. |
| Straw | tan/200 | #E3D9BA | 14 13 31 0 | bg-tan-200 | Light ground. Ink text; buttons solid/outlined in Ink. |
| Camel | tan/500 | #817464 | 48 46 56 21 | bg-tan-500 | Mid tone, secondary use. Ink text on it; usable as text on White for headings, labels, short lines. |
| Tobacco | tan/900 | #4C3C2E | 63 66 76 53 | bg-tan-900 | Dark ground. White text; buttons solid/outlined in White. |
| Khaki | khaki/200 | #C8C5B1 | 27 19 33 0 | bg-khaki-200 | Light ground. Ink text; buttons solid/outlined in Ink. |
| Reed | khaki/500 | #787667 | 52 43 55 22 | bg-khaki-500 | Mid tone, secondary use. Ink text on it; usable as text on White for headings, labels, short lines. |
| Olive | khaki/900 | #403E2C | 71 60 80 55 | bg-khaki-900 | Dark ground. White text; buttons solid/outlined in White. |
| Sage | green/200 | #D7DECB | 19 9 24 0 | bg-green-200 | Light ground. Ink text; buttons solid/outlined in Ink. |
| Moss | green/500 | #6A7A70 | 57 36 49 24 | bg-green-500 | Mid tone, secondary use. Ink text on it; usable as text on White for headings, labels, short lines. |
| Forest | green/900 | #1F2E25 | 80 55 73 71 | bg-green-900 | Dark ground. White text; buttons solid/outlined in White. |
| Seafoam | teal/200 | #C0DADB | 29 7 15 0 | bg-teal-200 | Light ground. Ink text; buttons solid/outlined in Ink. |
| Teal | teal/500 | #66797E | 59 37 38 24 | bg-teal-500 | Mid tone, secondary use. Ink text on it; usable as text on White for headings, labels, short lines. |
| Petrol | teal/900 | #213A3E | 85 54 53 60 | bg-teal-900 | Dark ground. White text; buttons solid/outlined in White. |
| Sky | blue/200 | #BDCBD8 | 31 15 12 0 | bg-blue-200 | Light ground. Ink text; buttons solid/outlined in Ink. |
| Denim | blue/500 | #717685 | 55 44 31 22 | bg-blue-500 | Mid tone, secondary use. Ink text on it; usable as text on White for headings, labels, short lines. |
| Navy | blue/900 | #2B3349 | 79 61 27 63 | bg-blue-900 | Dark ground. White text; buttons solid/outlined in White. |
| Lilac | purple/200 | #DFCFD8 | 14 21 11 0 | bg-purple-200 | Light ground. Ink text; buttons solid/outlined in Ink. |
| Heather | purple/500 | #81727A | 48 49 38 21 | bg-purple-500 | Mid tone, secondary use. Ink text on it; usable as text on White for headings, labels, short lines. |
| Aubergine | purple/900 | #3A2732 | 62 76 45 69 | bg-purple-900 | Dark ground. White text; buttons solid/outlined in White. |

### Theme (Figma collection Theme, modes Light and Dark)

Components use these. Set data-theme="dark" on a container to switch everything inside it.

| Figma | Light | Dark | Utility | Note |
| --- | --- | --- | --- | --- |
| surface/base | neutral/0 | neutral/900 | bg-surface-base |  |
| surface/glass | #0202030d | #ffffff1a | bg-surface-glass | Glass behind a utility button, with a 10 px background blur. Light: Ink at 5 %. Dark: White at 10 %. |
| text/default | neutral/900 | neutral/0 | bg-text-default |  |
| button/solid/fill | neutral/900 | neutral/0 | bg-button-solid-fill |  |
| button/solid/text | neutral/0 | neutral/900 | bg-button-solid-text |  |
| button/outline/stroke | neutral/900 | neutral/0 | bg-button-outline-stroke |  |
| button/outline/text | neutral/900 | neutral/0 | bg-button-outline-text |  |
| border/default | neutral/200 | neutral/600 | bg-border-default |  |
| packshot/fill | neutral/50 | neutral/50 | bg-packshot-fill | Packshots always sit on Snow, in both modes. |
| type/weight/body | 450px | 400px | font-body | Font weight. Light 450, Dark 400: text is set about 50 lighter on dark backgrounds to keep the same visual weight. |
| type/weight/button | 600px | 550px | font-button | Font weight. Light 600, Dark 550: text is set about 50 lighter on dark backgrounds to keep the same visual weight. |
| type/weight/heading | 700px | 650px | font-heading | Font weight. Light 700, Dark 650: text is set about 50 lighter on dark backgrounds to keep the same visual weight. |

### Text styles

One utility per style. It sets family, weight, size and line height together.

| Figma | Utility | Size/line | Weight | Family | Use |
| --- | --- | --- | --- | --- | --- |
| Body/xs | type-body-xs | 10px/12px | 450 | Momo Trust Sans |  |
| Body/sm | type-body-sm | 13px/16px | 450 | Momo Trust Sans |  |
| Body/md | type-body-md | 16px/20px | 450 | Momo Trust Sans | The default on screen. Every other size steps out from it. |
| Body/lg | type-body-lg | 24px/28px | 450 | Momo Trust Sans |  |
| Heading/sm | type-heading-sm | 13px/16px | 700 | Momo Trust Sans |  |
| Heading/md | type-heading-md | 16px/20px | 700 | Momo Trust Sans | Heading names things: short, bold labels at body size that introduce a section, a product or a group. |
| Button/md | type-button-md | 16px/20px | 600 | Momo Trust Sans | Buttons and calls to action. Same size as Body/md, but set in Semibold. |
| Display/sm | type-display-sm | 33px/36px | 400 | Momo Trust Display |  |
| Display/md | type-display-md | 48px/52px | 400 | Momo Trust Display |  |
| Display/lg | type-display-lg | 72px/72px | 400 | Momo Trust Display |  |
| Display/xl | type-display-xl | 100px/100px | 400 | Momo Trust Display |  |

### Spacing

| Figma | Size | Utilities | Use |
| --- | --- | --- | --- |
| space/inline/1 | 4px | p-inline-1, gap-inline-1, size-inline-1 | 4 px / 4 pt. Inline: space inside a group. Not snapped to the baseline grid. |
| space/inline/2 | 8px | p-inline-2, gap-inline-2, size-inline-2 | 8 px / 8 pt. Inline: space inside a group. Not snapped to the baseline grid. |
| space/inline/3 | 12px | p-inline-3, gap-inline-3, size-inline-3 | 12 px / 12 pt. Inline: space inside a group. Not snapped to the baseline grid. |
| space/inline/4 | 16px | p-inline-4, gap-inline-4, size-inline-4 | 16 px / 16 pt. Inline: space inside a group. Not snapped to the baseline grid. |
| space/inline/5 | 20px | p-inline-5, gap-inline-5, size-inline-5 | 20 px / 20 pt. Inline: space inside a group. Not snapped to the baseline grid. |
| space/section/1 | 40px | p-section-1, gap-section-1, size-section-1 | 40 px / 40 pt (4 baseline lines). Section: space between groups and sections. |
| space/section/2 | 80px | p-section-2, gap-section-2, size-section-2 | 80 px / 80 pt (8 baseline lines). Section: space between groups and sections. |
| space/section/3 | 120px | p-section-3, gap-section-3, size-section-3 | 120 px / 120 pt (12 baseline lines). Section: space between groups and sections. |
| space/section/4 | 160px | p-section-4, gap-section-4, size-section-4 | 160 px / 160 pt (16 baseline lines). Section: space between groups and sections. |
| space/seam | 2px | p-seam, gap-seam, size-seam | Exception. 2 px on screen, 6 pt in print. Only between tiles that belong to the same block, such as product images in a grid. Separate things use inline spacing. |

### Shape

| Figma | Size | Utility |
| --- | --- | --- |
| radius/sm | 5px | rounded-sm |
| radius/md | 11px | rounded-md |
| radius/lg | 33px | rounded-lg |

### Grid

We use a nine-column grid. Components and elements span column counts that divide cleanly into nine, such as thirds (three, six or nine columns), or asymmetric splits like four and five. In code: grid grid-cols-9 with col-span-3, col-span-6, col-span-4, col-span-5.

### Measured on components

Fixed numbers on the Figma components, kept as tokens so the code has no loose numbers. Use them only in the component they belong to.

| Token | Value | Utility | Figma node |
| --- | --- | --- | --- |
| component.button.padding-top | 10px | p-button-padding-top | 25:1797 |
| component.button.padding-bottom | 11px | p-button-padding-bottom | 25:1797 |
| component.button.padding-x | 15px | p-button-padding-x | 25:1797 |
| component.button.border | 1px | p-button-border | 25:1797 |
| component.utility-button.blur | 10px | backdrop-blur-utility-button | 25:7211 |
| component.variation-option.size | 48px | p-variation-option-size | 25:2757 |
| component.variation-option.padding | 2px | p-variation-option-padding | 25:2757 |
| component.variation-option.radius | 6px | rounded-variation-option | 25:2757 |
| component.variation-option.border | 1px | p-variation-option-border | 25:2760 |
| component.product-card.swatch-size | 28px | p-product-card-swatch-size | 25:2717 |
| component.product-card.swatch-radius | 4px | rounded-product-card-swatch | 25:2717 |
| component.product-card.swatch-padding | 2px | p-product-card-swatch-padding | 25:2717 |
| component.product-card.swatch-border | 1px | p-product-card-swatch-border | 25:2717 |
| component.icon.grid | 24px | p-icon-grid | 57:629 |

### Contrast contract

Measured at every build. A pair under its minimum fails the build unless it is written down as accepted.

| Text | On | Mode | Ratio | Minimum | Result |
| --- | --- | --- | --- | --- | --- |
| color.text.default | color.surface.base | light | 20.74:1 | 4.5:1 | holds |
| color.text.default | color.surface.base | dark | 20.74:1 | 4.5:1 | holds |
| color.button.solid.text | color.button.solid.fill | light | 20.74:1 | 4.5:1 | holds |
| color.button.solid.text | color.button.solid.fill | dark | 20.74:1 | 4.5:1 | holds |
| color.button.outline.text | color.surface.base | light | 20.74:1 | 4.5:1 | holds |
| color.button.outline.text | color.surface.base | dark | 20.74:1 | 4.5:1 | holds |
| color.button.outline.stroke | color.surface.base | light | 20.74:1 | 3:1 | holds |
| color.button.outline.stroke | color.surface.base | dark | 20.74:1 | 3:1 | holds |
| color.neutral.900 | color.packshot.fill | light | 18.86:1 | 4.5:1 | holds |
| color.neutral.500 | color.neutral.0 | light | 4.95:1 | 4.5:1 | holds |
| color.neutral.500 | color.packshot.fill | light | 4.50:1 | 4.5:1 | accepted: Stone på Snow måler 4,498:1, altså 0,002 under AA. Farverne er Peters. Spørgsmål 1 i docs/SPOERGSMAAL-TIL-PETER.md. |
| color.neutral.0 | color.neutral.900 | light | 20.74:1 | 4.5:1 | holds |
| color.neutral.0 | color.red.900 | light | 11.13:1 | 4.5:1 | holds |
| color.neutral.0 | color.brown.900 | light | 13.33:1 | 4.5:1 | holds |
| color.neutral.0 | color.tan.900 | light | 10.54:1 | 4.5:1 | holds |
| color.neutral.0 | color.khaki.900 | light | 10.81:1 | 4.5:1 | holds |
| color.neutral.0 | color.green.900 | light | 14.23:1 | 4.5:1 | holds |
| color.neutral.0 | color.teal.900 | light | 12.07:1 | 4.5:1 | holds |
| color.neutral.0 | color.blue.900 | light | 12.56:1 | 4.5:1 | holds |
| color.neutral.0 | color.purple.900 | light | 13.85:1 | 4.5:1 | holds |
| color.neutral.900 | color.red.500 | light | 4.55:1 | 4.5:1 | holds |
| color.neutral.900 | color.brown.500 | light | 4.56:1 | 4.5:1 | holds |
| color.neutral.900 | color.tan.500 | light | 4.56:1 | 4.5:1 | holds |
| color.neutral.900 | color.khaki.500 | light | 4.53:1 | 4.5:1 | holds |
| color.neutral.900 | color.green.500 | light | 4.57:1 | 4.5:1 | holds |
| color.neutral.900 | color.teal.500 | light | 4.54:1 | 4.5:1 | holds |
| color.neutral.900 | color.blue.500 | light | 4.58:1 | 4.5:1 | holds |
| color.neutral.900 | color.purple.500 | light | 4.56:1 | 4.5:1 | holds |
| color.neutral.500 | color.neutral.0 | light | 4.95:1 | 4.5:1 | holds |
| color.red.500 | color.neutral.0 | light | 4.56:1 | 4.5:1 | holds |
| color.brown.500 | color.neutral.0 | light | 4.55:1 | 4.5:1 | holds |
| color.tan.500 | color.neutral.0 | light | 4.55:1 | 4.5:1 | holds |
| color.khaki.500 | color.neutral.0 | light | 4.58:1 | 4.5:1 | holds |
| color.green.500 | color.neutral.0 | light | 4.54:1 | 4.5:1 | holds |
| color.teal.500 | color.neutral.0 | light | 4.56:1 | 4.5:1 | holds |
| color.blue.500 | color.neutral.0 | light | 4.53:1 | 4.5:1 | holds |
| color.purple.500 | color.neutral.0 | light | 4.54:1 | 4.5:1 | holds |
| color.neutral.900 | color.neutral.200 | light | 15.71:1 | 4.5:1 | holds |
| color.neutral.900 | color.red.200 | light | 13.44:1 | 4.5:1 | holds |
| color.neutral.900 | color.brown.200 | light | 16.71:1 | 4.5:1 | holds |
| color.neutral.900 | color.tan.200 | light | 14.71:1 | 4.5:1 | holds |
| color.neutral.900 | color.khaki.200 | light | 11.93:1 | 4.5:1 | holds |
| color.neutral.900 | color.green.200 | light | 15.01:1 | 4.5:1 | holds |
| color.neutral.900 | color.teal.200 | light | 14.12:1 | 4.5:1 | holds |
| color.neutral.900 | color.blue.200 | light | 12.54:1 | 4.5:1 | holds |
| color.neutral.900 | color.purple.200 | light | 13.88:1 | 4.5:1 | holds |

## Components

These 5 components exist: Button, UtilityButton, VariationPicker, ProductCard, Icon. Nothing else does.
There is no Box, Stack, Container, Card, Input, Select, Dialog, Badge or Tabs yet. Lay out with Tailwind flex and grid utilities and the spacing tokens.

### Button

The call to action. Solid for the one primary action of a view, outline for the action beside it.

Code: `components/ui/button.tsx`. Figma: CTA Button, node 25:1799. Live: https://design.id-hub.dk/components/button

```tsx
import { Button, buttonClasses } from '@/components/ui/button';

<Button>Tilføj til kurv</Button>
<Button variant="outline">Find forhandler</Button>
<a className={buttonClasses({ variant: 'outline' })} href="/kontakt">Kontakt os</a>
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| variant | `'solid' \| 'outline'` | `'solid'` | Solid is filled in the button colour of the theme. Outline is a hairline in the same colour. |
| ...button | `ButtonHTMLAttributes` |  | Everything a native button takes: onClick, disabled, type (defaults to "button"). |

Do:
- One solid button per view. It is the thing the page wants done.
- Write the label as the action: "Tilføj til kurv", not "OK".
- Use buttonClasses on a link when the action navigates.

Do not:
- Do not colour a button with Flare. Flare is for the logo only.
- Do not set your own padding, radius or font on it.
- Do not put two solid buttons side by side.

Accessibility:
- A native button: keyboard and screen reader work without script.
- Focus shows a ring in the text colour. Figma has no focus state yet, so the ring is ours until Peter draws one.

### UtilityButton

A quiet control on glass, for navigation and tools on top of an image or a coloured ground.

Code: `components/ui/utility-button.tsx`. Figma: Utility Button, node 25:7211. Live: https://design.id-hub.dk/components/utility-button

```tsx
import { UtilityButton } from '@/components/ui/utility-button';

<UtilityButton dropdown aria-expanded={open} onClick={toggle}>Find forhandler</UtilityButton>
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| dropdown | `boolean` | `false` | Shows the chevron that says the button opens a list. Set aria-expanded with it. |
| ...button | `ButtonHTMLAttributes` |  | Everything a native button takes. |

Do:
- Use it on an image or a coloured ground, where the glass has something to blur.
- Set data-theme="dark" on a dark ground so the text turns white.

Do not:
- Do not use it as the call to action. That is Button.
- Do not use it on a plain white page: 5 % glass on white is nearly invisible.

Accessibility:
- With dropdown, set aria-expanded so a screen reader hears whether the list is open.

### VariationPicker

One choice among a product's colours or sizes. Image options for colours, text options for sizes.

Code: `components/ui/variation-picker.tsx`. Figma: Product Variation Option, node 25:2751. Live: https://design.id-hub.dk/components/variation-picker

```tsx
import { VariationPicker } from '@/components/ui/variation-picker';

<VariationPicker
  label="Størrelse"
  name="size"
  defaultValue="M"
  options={[{ value: 'S', label: 'S' }, { value: 'M', label: 'M' }, { value: 'L', label: 'L' }]}
/>
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| label (required) | `string` |  | What is being chosen, such as "Størrelse". Read aloud, not shown. |
| name (required) | `string` |  | The form field name. One picker is one radio group. |
| options (required) | `VariationOption[]` |  | { value, label, image?, disabled? }. With image it is a colour option, without it a text option. |
| value | `string` |  | The chosen value. With onChange the picker is controlled. |
| defaultValue | `string` |  | The value chosen from the start, uncontrolled. |
| onChange | `(value: string) => void` |  | Called with the new value. |

Do:
- Use one picker per choice: one for colour, one for size.
- Give every image option a label with the colour's name.

Do not:
- Do not use it for navigation or filters.
- Do not show a price or stock inside an option.

Accessibility:
- Each option is a native radio button in a fieldset: arrow keys move, a form posts the value.
- The Figma state Open is rendered on hover.

### ProductCard

One product in a listing: the packshot on Snow with the article number and the name, and on hover or focus the colours and the price.

Code: `components/ui/product-card.tsx`. Figma: Product Card, node 25:2701. Live: https://design.id-hub.dk/components/product-card

```tsx
import { ProductCard } from '@/components/ui/product-card';

<ProductCard
  href="/produkter/0510"
  sku="0510"
  name="T-TIME® T-shirt"
  image={packshot}
  price="kr. 99,00"
  priceNote="(kr. 79,20 ex. moms)"
  swatches={colours}
  moreColours={13}
/>
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| href (required) | `string` |  | Where the card leads. The whole card is the link. |
| sku (required) | `string` |  | The article number, such as "0510". |
| name (required) | `string` |  | The product name. |
| image (required) | `string` |  | The packshot. Shown on Snow, multiplied, never cropped. |
| price | `string` |  | Already formatted, such as "kr. 99,00". Never computed in the card. |
| priceNote | `string` |  | Already formatted, such as "(kr. 79,20 ex. moms)". |
| swatches | `ProductCardSwatch[]` |  | { label, image } for the colours shown. |
| moreColours | `number` |  | How many more colours there are, shown as +13. |
| expanded | `'hover' \| 'always'` | `'hover'` | Hover shows price and colours on pointer hover and keyboard focus, as in Figma. Always is for touch screens. |
| labels | `{ colours?: (count: number) => string }` |  | Texts read aloud. Pass translations here. |

Do:
- Lay cards out in a grid with the seam (2 px) between them: they are tiles of one block.
- Pass the price as the shop formats it. The card never calculates.
- Use expanded="always" where there is no hover, such as on a phone.

Do not:
- Do not put a packshot on any ground but Snow.
- Do not crop the packshot or give it a shadow.
- Do not invent a price, a name or an article number for a card.

Accessibility:
- The name is the link and covers the whole card.
- The price and the number of colours are read aloud once, also when the panel is closed.

### Icon

An icon from the Figma set, treated as part of the text: 1.5 times the text size, stroke 1/12 of the text size, in the text colour.

Code: `components/ui/icon.tsx`. Figma: Icon, node 57:629. Live: https://design.id-hub.dk/components/icon

```tsx
import { Icon } from '@/components/ui/icon';

<Icon name="search" />
<button aria-label="Luk"><Icon name="x" /></button>
<Icon name="check" label="På lager" />
```

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| name (required) | `IconName` |  | One of the icons in icons/icons.json. The set is closed. |
| label | `string` |  | What the icon says when it stands alone. Without it the icon is hidden from screen readers. |

Do:
- Set the size by the text size around the icon.
- Add a new icon in Figma first, then export it to icons/svg and add it to icons/icons.json.

Do not:
- Do not paste an svg into a page. Use the name.
- Do not use filled icons or icons from another set.
- Do not let an icon be the only carrier of meaning: status has text beside it.

Accessibility:
- Decorative by default. With label it is announced as an image with that name.

### Icons

<Icon name="..." /> takes one of these 21 names. The set is closed.

| 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 |
