# 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.
- The components drawn in Figma are the only ones for the public site, campaigns and brand surfaces. The set for internal ID software (software.md) is used only in the tools ID builds for itself.
- 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 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. 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.

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

## Logo

We have three logo variants. By default we always use the red one. It works on top of every colour in the colour palette. In some cases where the ID brand needs to take up less space in a publication, it makes sense to use the logo in either Ink or White.

When the logo is shown smaller than 128 px on screen, or smaller than 16 mm in print, we use a version without the ® symbol. This version has not been made yet, but is coming later.

- Red on Forest
- Red on Sage
- Red on Navy
- Ink on Ecru
- White on Petrol
- White on Ink

## Brackets

The brackets come from the corners of our logo.

Brackets are used only on the product, to mark the chosen variant in the variant selector. Never around headlines, messages or text.

- In use: the selected option in the variant selector

## Colour pairs

A sub-palette is a lead family and an accent family of opposite temperature: a warm family with a cool one. Purple goes with either. Never the same family twice, and never the pairs below: they sit too close.

Too close: red with purple, green with khaki.

| Lead | Temperature | Accents that go with it |
| --- | --- | --- |
| red | warm | green, teal, blue |
| brown | warm | green, teal, blue, purple |
| tan | warm | green, teal, blue, purple |
| khaki | warm | teal, blue, purple |
| green | cool | red, brown, tan, purple |
| teal | cool | red, brown, tan, khaki, purple |
| blue | cool | red, brown, tan, khaki, purple |
| purple | either | brown, tan, khaki, green, teal, blue |

Any other pair breaks the rule. Source: https://design.id-hub.dk/palette
