# Quickstart: your repository

> Add Design to an existing app with the open-source tools, no account needed.

Applies to: the Sypnia engine (open source, self-hosted).  
Source: https://design.docs.sypnia.com/start/quickstart-repo/

For agents: Design repo quickstart: npx @sypnia/design init (asks name, brand inputs, framework; --logo ./logo.svg, --from guide.md, --components src/design, --yes) writes the [design] table of sypnia.toml, design/guide.md, tokens.json → tokens.css, icons/, brand/, gallery.yaml, and src/design/ components over @sypnia/base; installs the Design skills into .claude/skills/; design gallery serves http://localhost:4520; design screens new place-order; design check exits 1 on findings. Proposals need a model key (SYPNIA_DESIGN_AI_URL/KEY) or are written by your agent with the skills.

At the end your app has a `design/` folder with its guide, generated components in `src/design/`, a gallery on your machine and `design check` in your scripts.

### 1. Start the guide

In your app's folder:

```bash
npx @sypnia/design init --logo ./public/logo.svg
```

It asks for the project's name, a few words about it, and your framework (React with Next.js, Vite or Astro). With a model key it proposes palettes and type pairings; without one, your agent writes them with the [Design skills](https://design.docs.sypnia.com/skills), which `init` copies into `.claude/skills/`.

**You should see:**A `[design]` table in `sypnia.toml` at the root of your repository; `design/` with `guide.md`, `tokens.json`, `tokens.css`, `icons/`, `brand/` and `gallery.yaml`, and `src/design/` with your components.

### 2. Open the gallery

```bash
npx @sypnia/design gallery
```

**You should see:**`Gallery at http://localhost:4520` with every piece, light and dark, phone and desktop.

### 3. Use your pieces

`app/order/page.tsx`

```tsx
import { Button, ProductCard, Stepper } from '@/design';
```

Import from your own `src/design/`, never from `@sypnia/base` directly: the base has no look of its own.

### 4. Design a case's screens

```bash
npx @sypnia/design screens new place-order
```

It reads `cases/orders/place-order.case.yaml` (if you use [Sypnia Cases](https://cases.docs.sypnia.com/)) and writes `design/screens/place-order.screen.yaml` with a state for every ending and failure.

### 5. Check

```bash
npx @sypnia/design check
```

**You should see:**`design check: 0 findings` — or the list of anything outside the guide, with the file and line.

Add `design check` to your pipeline so every pull request is checked. Nothing here needs a Sypnia account.
