# Design decisions

> The choices behind Sypnia Design, and why each one was made.

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

For agents: Sypnia Design decisions: 1 Design comes before screens; 2 customer apps never start from @sypnia/ui; 3 three layers: shared unstyled @sypnia/base (React on React Aria) + generated components in the customer's repo + private gallery; 4 the repository is the source of truth, Cloud writes by pull request; 5 W3C Design Tokens for values, Markdown for reasons; 6 roles not colours, dark designed not inverted, WCAG 2.2 AA; 7 icons drawn per project with shared construction rules + brand signature, never stock; 8 only licensed fonts, self-hosted; 9 screens per case with every ending and failure, approved before built; 10 design check blocks merges; waivers expire; 11 only people approve; 12 React first, tokens.css anywhere; 13 licences MIT for tools/base/skills, AGPL-3.0 for the engine; 14 no colour matching to printing ink catalogues.

| #  | Decision                                | What Sypnia Design does, and why                                                                                                                                                             |
| -- | --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1  | **Design comes first**                  | Screens are designed before they are built, and redesigned before their code changes. Fixing a look in code costs more than fixing it in a picture.                                          |
| 2  | **Not from @sypnia/ui**                 | Customer apps never start from Sypnia's own library, so no app made with Sypnia looks like Sypnia ([Design and @sypnia/ui](https://design.docs.sypnia.com/components/design-and-sypnia-ui)). |
| 3  | **Three layers**                        | A shared unstyled base for behaviour, each customer's own pieces for the look, and each project's gallery. Behaviour should be the same everywhere; looks should not.                        |
| 4  | **The repository holds the truth**      | Your design lives with your code and changes in the same pull requests; Sypnia Cloud keeps no second copy that could drift.                                                                  |
| 5  | **Values and reasons apart**            | Values in the W3C Design Tokens format, which other tools read; reasons in Markdown, which people read. The check keeps them in agreement.                                                   |
| 6  | **Roles, designed themes, AA contrast** | Colours are named by what they are for; the dark theme is designed, not inverted; every pair meets WCAG 2.2 AA.                                                                              |
| 7  | **Icons drawn for each project**        | Shared construction rules make a set look drawn by one hand; the brand's signature makes it its own. Stock icon sets make every app look alike.                                              |
| 8  | **Licensed fonts, served by the app**   | Only fonts licensed for the web, served from your domain, so no third party sees your visitors.                                                                                              |
| 9  | **Every ending, every failure**         | A screen is not designed until its outcomes and its failures are, with the messages from the case.                                                                                           |
| 10 | **The check blocks merges**             | A design rule that does not stop a merge is a suggestion. Waivers exist, with a reason and an end date.                                                                                      |
| 11 | **Only people approve**                 | Agents propose; a person approves. The proposer is never the approver.                                                                                                                       |
| 12 | **React first, tokens everywhere**      | Generated pieces are React; `tokens.css` works in any framework.                                                                                                                             |
| 13 | **Licences**                            | MIT for `@sypnia/design`, `@sypnia/base` and the skills; AGPL-3.0 for the engine, like Sypnia's other engines.                                                                               |
| 14 | **Print values, not ink matching**      | The PDF gives HEX, RGB and approximate CMYK; matching to printing ink catalogues is left to your printer.                                                                                    |
