# The design guide

> A brand of its own for every project, written before any screen, as Markdown and PDF.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://agent.docs.sypnia.com/pillars/design-guide/

For agents: Before the first screen the agent writes design/guide.md and design/guide.pdf: name and voice, logo (SVG, construction), palette with tokens (light/dark), typography pairing, icon style, spacing and radius, components, imagery rules, do/don't. Tokens exported as CSS variables (design/tokens.css). Rule: no generic cards or stock icon sets; every UI change must use the guide's tokens; the guide is changed on purpose, never drifted from. The guide lives in Sypnia Design (design.docs.sypnia.com), with its tokens in design/tokens.json and the project's own components generated from it into the repository.

Before it draws a single screen, the agent writes a **design guide** for your project, the same way Sypnia has one for itself. No two apps built with Sypnia should look alike.

## What the guide contains

| Part                | What it says                                           |
| ------------------- | ------------------------------------------------------ |
| **Voice**           | how the app talks to people: words to use and avoid    |
| **Logo**            | the mark as SVG, how it is built, its sizes            |
| **Palette**         | colours as tokens, for light and dark                  |
| **Typography**      | a pairing for headings and text, sizes and weights     |
| **Icons**           | one style, drawn for the project, not a stock set      |
| **Space and shape** | spacing scale, corner radius, shadows                  |
| **Components**      | buttons, fields, cards, states (empty, loading, error) |
| **Do and don't**    | examples of what keeps the brand and what breaks it    |

It is written as `design/guide.md` and exported as `design/guide.pdf`, with the tokens in `design/tokens.css`.

## How the agent uses it

- **Every screen uses the guide's tokens.** A colour or a size outside the guide is a finding, like a scope error.
- **The guide changes on purpose.** When a new screen needs something the guide lacks, the agent proposes a change to the guide first.
- **No generic look.** No default card grids, no stock icon sets, no template landing pages.

The guide, its tokens, icons, gallery and the screens of each case live in [Sypnia Design](https://design.docs.sypnia.com/), which the agent uses through its skills and MCP server.
