# How it works

> From your logo to a guide, from the guide to your pieces, from the pieces to the screens of every case.

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

For agents: Design flow: 1 brand input (logo SVG/PNG, colours, fonts, words, examples) → 2 proposals (palettes, type pairs, shape and voice; the person picks) → 3 guide written (design/guide.md, design/tokens.json → tokens.css light/dark, icons, assets) → 4 pieces generated into src/design/ over @sypnia/base, gallery.yaml with uses, combinations and patterns → 5 screens per case (design/screens/<case-id>.screen.yaml: where, pattern, regions, every ending and failure, phone and desktop), approved by a person → 6 the agent builds with the pieces, design check in CI. Repository is the source of truth; Cloud writes through pull requests.

### 1. You bring your brand

A logo (SVG or PNG), colours you already use, fonts you like, a few words about your business, pictures of places you love. Nothing is required: with only a name, Design starts from questions.

### 2. Design proposes, you choose

Design reads your logo and your words and proposes a few palettes, type pairings, shapes and a voice. You pick, mix or ask for others. Every proposal is shown on real screens of your app, in light and dark.

### 3. The guide is written

Your choices become `design/guide.md` (the guide in words), `design/tokens.json` (every value, with `design/tokens.css` generated from it), your icons in `design/icons/`, and your logo and assets in `design/brand/`. The guide also exports as a PDF.

### 4. Your pieces and your gallery

Design generates your components into `src/design/`, styled with your tokens on top of the accessible base `@sypnia/base`. `design/gallery.yaml` says what each piece is for, how pieces combine, and which screen pattern fits each kind of use case. The gallery shows all of it live.

### 5. Every case gets its screens

For each use case with a `where`, Design writes `design/screens/<case-id>.screen.yaml`: the pattern, what is on the screen, and what the person sees at every ending and every failure, on a phone and on a desktop. A person approves it.

### 6. The agent builds, the check keeps it honest

The agent builds the screen with your pieces only. `design check` runs before every change is proposed and in your pipeline, and reports anything outside the guide.

## Where things live

| Thing                                                            | Where                                                                                   |
| ---------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| The guide, tokens, icons, brand assets, gallery and screen files | your repository, under `design/` (the source of truth)                                  |
| Your components                                                  | your repository, under `src/design/` (configurable)                                     |
| The accessible base                                              | the npm package `@sypnia/base`                                                          |
| The console, the online gallery, proposals                       | `design.app.sypnia.com` **\[Cloud]**                                                    |
| The API                                                          | `https://design.api.sypnia.com/v1` **\[Cloud]**, or your engine's address **\[Engine]** |
| The MCP server                                                   | `https://mcp.design.sypnia.com` **\[Cloud]**                                            |

Sypnia Cloud never keeps a second copy that can drift: every approved change is a commit in a pull request to your repository, in [Sypnia Git](https://git.docs.sypnia.com/) or GitHub.
