DESIGN.md for AI coding agents
specs/design.mdWriting the preview…
The first lines, open to everyone. The full file comes with the export.
What is a DESIGN.md?
A DESIGN.md is a Markdown file in a project that tells an AI coding agent how the interface should look and behave: colours, type, spacing, layout, motion and the rules behind them. The agent reads it before it writes interface code, so every screen follows the same decisions.
The name is also used for an open format that Google Labs published in April 2026 (Apache-2.0, marked alpha): design tokens in YAML front matter, then sections such as Colors, Typography, Layout, Motion and Components, with a command-line linter. LayQ is not affiliated with Google Labs. LayQ’s specs/design.md follows the same idea but keeps its tokens in design-tokens.css instead of front matter, so where a tool requires that exact format, check the file with the format’s own tools.
Format details checked on 27 November 2026. Source: github.com/google-labs-code/design.md
What is inside LayQ’s design.md
- Colour rolesPrimary, secondary and tertiary with light and dark values and what each one is for.
- Type scaleBody, table, caption, title and figure sizes, two weights, and display sizes for public pages.
- Spacing and shapeOne spacing scale, corner radii, control heights and elevation.
- LayoutThe page frame of your kind of product, the gutters and where the one primary action goes.
- MotionThe motion personality in a sentence; specs/motion.md holds the durations, spring and stagger.
- ChartsWhich chart answers which question, series colours and how numbers are labelled.
- WritingHow buttons, errors, confirmations and empty states are worded.
- Data formatsDates, times, numbers, currency and units, written one way everywhere.
- Page patternsThe first pages of your kind of product and what each one holds.
- Landing pageHero, section rhythm and order for public pages.
It ships with specs/interaction.md (feedback, confirmation, loading, forms, keyboard), specs/motion.md, specs/tech.md and design-tokens.css.
How agents use it
- Choose the kind of product, palette and motion here, or every choice in the Blueprint.
- Export: the files go into specs/, and design-tokens.css into the project root.
- Your agent reads specs/design.md before it writes interface code and takes every value from the tokens.
- With LayQ’s MCP server and skill connected, the agent fetches the plan, installs components and checks the result itself.
DESIGN.md vs a component library
Questions
- Is a DESIGN.md the same as a design system?
- It is the written part of one: the decisions, in a file an agent can read. A full design system also has components and tooling.
- Which agents read it?
- Any agent that reads the files of a project: Claude Code, Codex, Cursor, Gemini CLI and others. Mention the file in AGENTS.md or CLAUDE.md, or connect LayQ’s MCP server.
- Is LayQ’s design.md free?
- Yes. The free plan exports 1 plan a day with 3 palettes and 2 motions; Pro unlocks all 18 palettes and 9 motions.
- Which languages are the files in?
- English or Simplified Chinese. The Spanish and Japanese pages export the English files.