Reference03/09
The files it writes
OpenDesigner writes your design system into your own project as plain files. DESIGN.md and PRODUCT.md go at the root, and everything else goes in an opendesigner/ folder. The token files there are the source of truth, and every other file is made from them.
- 1At the root. For people and AI tools. Commit both.
- 2The source of truth. DTCG 2025.10 tokens. Every other file is made from these.
- 3Made from the tokens. Exports and pages. Every build rewrites them, so don't edit them by hand.
- 4The record. Append-only decisions, the locked standards, the project protocol, and the state a later session continues from.
- +Only when you ask. RATIONALE.md, feedback.md, RULES.md, references/, research/ and the private journey/ log, which stays out of git.
A web-only sketch and build writes 50 files with no errors, and each extra platform adds its own export (51 with iOS).
At the root of your project
DESIGN.md: your design rules in plain words, for people and AI tools. It refreshes after every decision, and each section shows its zoom level.PRODUCT.md: what the product is, who it's for and where it runs, so later sessions don't have to guess.
The tokens
opendesigner/ holds 11 files in the open DTCG 2025.10 format: your palette and scales, the roles built on them, and a file for each color, density and motion mode. See Design tokens and DTCG.
For developers
primitives.tokens.json: the raw palette and scales;semantic.tokens.json: roles that don't change by mode;semantic.andcolor. light. tokens.json semantic.;color.dark. tokens.json - three density files: spacious, comfortable and compact;
motion.andstandard. tokens.json motion.;reduced. tokens.json opendesigner., which ties the modes together;resolver.json - a small metadata file.
The exports
Every build rewrites the files in opendesigner/, so don't edit them by hand. The code files follow the platforms you chose, and engine.py export --format all writes every one.
Change the decision
Record it with set, then build. Every export changes together, and the log says why.
$ engine.py set dials.roundness 60 --why "softer corners for a friendlier feel" $ engine.py buildRewritten together
css/tokens.css --ds-radius-control: var(--ds-radius-8); swift/DesignTokens.swift public static let radiusControl: CGFloat = 8 compose/DesignTokens.kt val radiusControl = 8.dp decisions.md ## D-0009 · dials.roundness = 60
Edit an export by hand
The next build rewrites it from the tokens. Swift, Compose and Tailwind never changed, and the log knows nothing.
opendesigner/After the next buildbuild/ - --ds-radius-control: var(--ds-radius-6); + --ds-radius-control: 8px; typed in by handcss/ tokens.css
$ engine.py build css/tokens.css --ds-radius-control: var(--ds-radius-6); back to the tokens swift/DesignTokens.swift radiusControl: CGFloat = 6 never changed decisions.md (no entry)
In build/ | What it is |
|---|---|
css/ | CSS variables you can use in any web project |
tailwind/ | A Tailwind CSS v4 theme, so utility classes use your tokens |
figma/ | Figma variables: one import file per collection and mode in figma/, and variables.json for Tokens Studio |
paper/ | Tokens for the Paper design tool, in light and dark |
swift/ | The same values for iOS apps |
compose/ | The same values for Android apps built with Jetpack Compose |
dtcg/ | One DTCG resolver file for token tools that take a single entry point |
artifact/ | The system as files for a Claude Design System artifact: tokens, a brand book, a cover and a button preview |
brand/ | A brand and press page you can host as it is, with your logo and icon files in brand/ |
See Export for how to use each one.
Pages you open in a browser
opendesigner/: your whole system on one page, including what is still missing. It works offline and loads nothing from the web.overview.html opendesigner/: every token on one page.preview.html opendesigner/: seven visual templates, such as the palette and the type scale, filled with your own values.preview/
For developers
The seven templates are palette, type scale, spacing ruler, radius, elevation, motion and component sheet. The option gallery is filled per question with engine.py show, and the taste poll is built by taste.py build into opendesigner/.
The record
opendesigner/: every decision, how it was set and why. It's append-only, so a later session doesn't quietly undo a choice.decisions.md opendesigner/: the house and project standards this project follows, locked, with their sources.standards.md opendesigner/: where you left off, so you or another AI tool can continue later.state.json opendesigner/: a copy of each standard as this system follows it. Keep it next tostandards- state.json state.json.opendesigner/: how work runs in this project: six steps, each ending at a gate where you say yes, and the checks every round runs. It's written once; edit it to fit. Its Now line says which step you're on, what waits for you and what comes next. The engine keeps that one line current, andPROTOCOL.md engine.py statusprints it.
See Decisions, DESIGN.md and the overview page.
Written by the skill, or only when you ask
opendesigner/: one page for the team on what was chosen, why, and what is still open, written by the skill from a template.RATIONALE.md - A short note in your
AGENTS.md, and aCLAUDE.mdthat imports it, added only after you say yes. You're asked once, and a no is remembered. The note tells later AI agents to readDESIGN.mdandRULES.mdfirst, use the tokens, and runengine.py reviewbefore every draft and commit. opendesigner/, written only if you report something withfeedback.md engine.py feedback.opendesigner/, written when you give a note on the work. A note you give twice becomes a rule that later sessions follow.RULES.md opendesigner/, written only if you say yes to research: the findings with their sources, the positioning and the direction board. It also holdsresearch/ stakeholders.json(who has a say, and what each person said, with their name or role on it),interviews.md(at most five questions per role, to send) andsummary.html, one page to share with your team. PRODUCT.md links to that page.opendesigner/, written only when you share a reference with the extract skill: the measurements taken from it.references/ opendesigner/, written only if you said yes to the private log.journey/
What to commit
Commit DESIGN.md, PRODUCT.md and the opendesigner/ folder, so your team and your next AI session work from the same rules. The private log in opendesigner/ stays out of git.
You can commit the exports so your apps import them directly, or rebuild them with engine.py build whenever you need them.
How the files relate
The decision log records why each value is what it is.
To change anything, record a decision with engine.py set, then run engine.py build. See Engine commands.