Prose Sections
YAML tokens give AI agents exact measurements, while Markdown prose supplies design judgment: hierarchy, color roles, copy tone, and explicit guardrails.
The ten ordered sections
Markdown body sections use ## headings. Any section may be omitted, but sections present in the file must appear in this order:
| # | Section | Accepted aliases | What to document |
|---|---|---|---|
| 1 | Overview | Brand & Style | Visual personality, target audience, core aesthetic direction |
| 2 | Colors | — | Role of each color token, semantic restraint, dark-mode pairing rules |
| 3 | Typography | — | Font pairings, scale hierarchy, tabular numbers, max measure |
| 4 | Layout | Layout & Spacing | Container widths, grid columns, spacing cadence, breakpoint behavior |
| 5 | Elevation & Depth | Elevation | Hairline borders vs shadows, surface layering, modal z-index hierarchy |
| 6 | Shapes | — | Border-radius conventions across buttons, inputs, badges, and cards |
| 7 | Motion & Micro-interaction | Motion & Micro-interactions, Motion | Transition timing philosophy, reduced-motion behavior, state feedback |
| 8 | Voice & Content Strategy | — | UI copy tone, capitalization style, CTA phrasing, empty-state copy rules |
| 9 | Components | — | Component composition rules, borders/gaps, variant selection guidance |
| 10 | Do's and Don'ts | — | Concrete observable rules and anti-patterns agents must avoid |
Do not restate YAML values verbatim in prose. Use prose to explain constraints and usage boundaries — for example, “Reserve primary #4338ca exclusively for the primary page CTA and active navigation state; never use it for decorative icons.”
Declaring omitted sections
If a section does not apply to your product (for example, a static documentation site with no custom animations), list it in frontmatter under omitted so @google/design.md lint and human reviewers know the omission is intentional:
omitted:
- section: Motion & Micro-interaction
reason: Relies on instant state transitions and honors prefers-reduced-motion.Section ordering and linting
The official @google/design.md lint CLI emits a section-order warning if headings appear out of order or a duplicate-section error if the same heading appears twice. Keeping the canonical 1–10 order prevents agent confusion when sections cross-reference earlier tokens.
Partial section loading via MCP
When coding agents read large DESIGN.md files through the DesignMD Pro MCP server, get_design_md accepts an optional sections array (["Colors", "Typography"]) and performs a case-insensitive partial match on ## headings while always returning availableSections in metadata.
Consistent ## headings let agents fetch only the typography or component guidance needed for the current task without wasting prompt context.
Next steps
- Complete Example — all ten prose sections paired with full YAML frontmatter
- Writing for AI Agents — turning design critiques into enforceable prose rules