Skip to content

What the guide contains

The parts of design/guide.md and design/tokens.json, and how they stay in agreement.

Applies to EngineCloud
View as Markdown
On this page
  1. The parts
  2. Two files that always agree
  3. Versions
  4. The PDF

The parts

PartWhat it decidesRead more
Brandthe name, what the business is, who it is for, three words that describe itthis page
Colourcolour roles (surface, text, accent, success, warning, danger…) in light and darkColour and themes
Typographyone or two families, the type roles, sizes and weightsTypography
Space and shapespacing scale, corners, borders, shadows, layout, touch targetsSpace and shape
Motionwhat moves, how fast, and what happens with reduced motionMotion
Voicehow the app talks: words, buttons, messages when something failsVoice
Iconsthe construction rules and your brand’s signatureIcons
Logo and assetslogo versions, clear space, favicon, images, the printed guideLogo and assets
Pieces and gallerywhich piece is for what, how they combine, screen patternsThe gallery
Do and don’tpictures of what keeps the brand and what breaks itthis page

Two files that always agree

design/guide.md is written for people. Each decision comes with its reason and an example: «The accent is wheat yellow, used only for the one action that matters on a screen.»

design/tokens.json is written for code, in the W3C Design Tokens format: every value has a name, a type and, for colours, a light and a dark value.

design/tokens.json (part)
{
  "color": {
    "accent": { "$type": "color", "$value": "#E0A526", "$extensions": { "sypnia.dark": "#F2C14E" } },
    "ink": { "$type": "color", "$value": "#3B2A1E", "$extensions": { "sypnia.dark": "#F5EBDD" } }
  },
  "radius": { "control": { "$type": "dimension", "$value": "10px" } }
}

design tokens build turns it into design/tokens.css, with variables named after your project:

design/tokens.css (generated)
:root { --espiga-color-accent: #E0A526; --espiga-color-ink: #3B2A1E; --espiga-radius-control: 10px; }
:root[data-theme="dark"] { --espiga-color-accent: #F2C14E; --espiga-color-ink: #F5EBDD; }

The guide never repeats a raw value: it names the token (color.accent). design check reports a guide that names a token that does not exist, or a token that no part of the guide explains.

Versions

Every approved change makes a new guide version (1, 2, 3…), written in the [design] table of sypnia.toml and in the commit. Screens and components record the version they were made with, so you always know what is up to date. Changing the guide shows how a change travels.

The PDF

design export --pdf writes design/guide.pdf: the same guide laid out for reading and printing, with the logo pages, the palette with print values and the do-and-don’t pictures. Logo and assets explains the print part.

  1. The parts
  2. Two files that always agree
  3. Versions
  4. The PDF

    Search pages, sections and terms