Single vs. multiple DESIGN.md files within a project, is the spec opinionated?
Hi, I've been reading the specification carefully and the doc doesn't seem to take a stance on this, so wanted to ask directly.
Is a project meant to have one DESIGN.md, or can it have multiple?
In a real-world monorepo it's common to have multiple surfaces with different design languages:
my-project/ ├── DESIGN.md ├── website/DESIGN.md ├── dashboard/DESIGN.md ├── docs/DESIGN.md └── packages/ui/DESIGN.md Each could have its own palette, typography, density, tone.
A more direct version of the question: if I have separate design rules for docs/ and dashboard/, should they live in one root DESIGN.md (e.g. as nested sections, or via metadata), or as separate DESIGN.md files in each directory? Which does the spec prefer?
- Root only, like AGENTS.md / CLAUDE.md, one canonical file describing the whole project.
- Per scope, free placement.. multiple files, agents pick the closest one to the file being edited.
So should tools look at root only or scan?
Thank you @necatiozmen. The spec is not opinionated currently and it's probably a good idea to start to ideate and evaluate what good options there are.
Firstly, we need to determine how to signal to the agent which DESIGN.md to use. Secondly, how this would potentially affect tooling and IDEs, much like tsconfig.json, tsconfig.base.json, and tsconfig.test.json do.
Let me sit with this for a bit and I'll share back some ideas soon. Everyone else is also welcome to chime in with their ideas and experiences.
Thanks, I’ve been thinking and testing some stuff about this as well. I’ll share updates here.
Adding a real-world voice from running this exact split in a multi-surface monorepo (marketing site + app dashboard + design tokens published as a separate package).
The piece I'd flag in the framing: "single vs multiple" elides the more useful split, which is what kind of design decision is in the file. Two categories of content live in a DESIGN.md, and they want different scoping behavior:
Tokens — palette, type ramp, spacing scale, motion. These should be canonical for the project. Marketing and dashboard sharing one purple-600 is a feature, not a constraint; if they diverge, the design system has already failed and DESIGN.md shouldn't make divergence cheap. Root-only.
Application — density, voice, hierarchy weight, layout vocabulary. Marketing wants generous whitespace and a sentence-case voice; dashboard wants compact rows and an imperative voice. These genuinely differ per surface. Per-scope, with root as fallback.
The cleanest way I've seen this work in practice — and the precedent the spec could lean on directly — is tsconfig's exact pattern:
- One canonical
DESIGN.mdat the root holds tokens. Always loaded. - Optional
DESIGN.mdfiles per scope (e.g.app/dashboard/DESIGN.md) hold application overrides only. Theyextends:the root, can override application keys, but cannot redefine tokens. Loaded by walking up from the file being edited until the nearest one is found, then merged with root.
This gives tooling a clean rule (single canonical token source, nearest-ancestor for application) without inviting the "every component has its own palette" anti-pattern that kills design systems. It also matches the agent-handoff mental model @davideast mentioned — an agent editing app/dashboard/InvoiceTable.tsx resolves nearest("app/dashboard/DESIGN.md") + root("DESIGN.md") the same way the TS compiler walks up looking for tsconfig. The merge semantics are the load-bearing part: making extends: explicit in the per-scope file (pointing back at root) keeps it grep-able and matches the existing precedent JS-land tooling already understands.
One concrete failure mode worth designing against: nested DESIGN.md files inside packages/ui/ where the design system itself lives. That file is NOT an override — it's the source of truth for the package consumers. The spec should probably distinguish two roles explicitly:
DESIGN.mdas system — defines tokens + canonical application. One per project, conventionally at root (or in the design-system package). Noextends:.DESIGN.mdas scope override — extends a system DESIGN.md. Zero or more, per surface. Hasextends:, restricted to application keys.
A linter rule that fires on "scope override defines a token" would catch the slippery slope toward fragmented palettes early — which is the failure mode that historically kills monorepo design systems before they kill themselves.
Happy to share concrete examples if useful — the per-surface application override pattern is exactly the gap we've been working around with custom Tailwind preset stacks for the last year, and a spec-level answer would let a lot of that scaffolding go away.