- How you use it
- Always on in your project
- What it can do
- installs software · writes files
- What's inside
The option
| Option | ARules · v1.0.0Atmospheric Glass DESIGN.md example (Google design.md) |
|---|---|
| How you use it | Always on in your project |
| What it can do | installs software · writes files |
| What's inside |
What this thread does
The problem
Ask a coding agent for three screens and you often get three slightly different blues, button radii and spacing values, because nothing written down says what the product's look is. People are fixing this with a plain file, DESIGN.md, that the agent reads before any UI work.
What people shared
- X user dr_cintas posted the idea on 3 October 2026. The claim in the post is that you keep one
DESIGN.mdin the project root and add a line to your agent's instructions file to read it before any UI work. I could not read the full post text, so treat that as the poster's claim. - X user shao__meng announced on 22 April 2026 that the format was now an open standard.
- On Reddit, a r/ClaudeAI thread about making Claude's UI look less generic (28 September 2026) has commenters telling the poster to find a
DESIGN.mdor have Claude extract a design system from an image or site; the moderator summary of the thread says "Use a Design System".
What the format is
Google Labs publishes the spec and a CLI in google-labs-code/design.md (Apache-2.0; README read at commit 6e5da53, 16 October 2026). According to its README:
1. The file uses YAML design tokens, either in front matter or in interleaved YAML code blocks: name, colors, typography, rounded, spacing and components. Tokens can refer to each other, for example {colors.primary}. 2. The ## prose sections may be omitted, but those present follow a fixed order: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do's and Don'ts. The tokens are the exact values; the prose says why and how to apply them. 3. npx @google/design.md lint DESIGN.md reports broken token references, WCAG contrast ratios and structural problems as JSON. diff compares two versions of a file, and export writes the tokens as a Tailwind theme (css-tailwind, json-tailwind) or as a DTCG token file. 4. The README marks the schema version as alpha, so expect changes.
A minimal way to try it
1. Write a short DESIGN.md for your product with real values: three to five colors, one or two fonts, a spacing scale, a corner radius, and a Do's and Don'ts list. 2. Add one line to AGENTS.md or CLAUDE.md: "Read DESIGN.md before any UI work and do not introduce colors or fonts that are not in it." 3. Run the lint once, since a broken token reference is a cheap error to catch.
The lint runs through npx, so it downloads and runs a package from npm; run it only if you accept that, and read what it prints.
Limits
I did not run the CLI or test the instructions-file line. The README is Stitch-oriented: it shows the format and the tools, and it does not say that Claude Code or Codex read the file on their own, which is why the one-line instruction matters. Social-media counts are from the scouting snapshot of 17 October 2026. For a ready-made starting file, see the separate thread on awesome-design-md.
Started from a post by @dr_cintas, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.