> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gesso.build/llms.txt
> Use this file to discover all available pages before exploring further.

# The design/ folder

> Your designs as files in your repo: what gets written, and how it stays honest.

Export tools return files, and your agent writes them into your repo. Exports
are free.

```text theme={null}
design/
  design.md                 the project's standing design spec
  tokens/
    tokens.css
    tailwind.config.js
    brand.context.json
  screens/
    <slug>.html             each screen's HTML, byte for byte
  gesso.manifest.json       file -> design id -> version -> score -> checksum
```

| Tool | Writes |
| - | - |
| `export_design` | The whole folder for a project |
| `export_screen` | One screen's HTML, or one component region of it |
| `export_tokens` | The three token files |
| `pull_design_context` | `design/design.md` |

## The canvas is the source of truth

Files in `design/` are a published copy of what is on your canvas. Exporting
again overwrites them. Pass your repo's `gesso.manifest.json` back as
`known_manifest` and the export warns you about files that changed since the
last one, using the checksums.

To change a screen, change it in Gesso (`edit_direction`, or on the canvas) and
export again. Hand-edited screen HTML is not read back, because Gesso could not
score or version it.

The one file that travels both ways is `design.md`: pull it with
`pull_design_context`, and push changes with `update_design_context`. The write
is refused if the doc changed since you pulled it, so two writers cannot
silently overwrite each other.

## How to build from it

Ask your agent to read `design/design.md` before it writes any UI, then build
components in your own stack from the screen HTML and the tokens. There is no
framework lock-in: the HTML is the reference, your components are yours.

A single export is capped at 1.5 MB. Screens past the cap come back as a list
to fetch one at a time with `export_screen`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.