DESIGN.md is a design brief written for an AI coding agent. It sits in the project folder next to the code and explains, in plain text, how the product should look: which colors to use and for what, which fonts, how much spacing, what the layout should feel like and what to avoid.
AI agents are good at building interfaces but have no idea what your brand looks like. Without guidance they fall back on the safest, most common choices. A DESIGN.md file gives them your choices instead, every time they work on the interface.
Where does the name come from?
DESIGN.md follows the pattern of other Markdown files agents read, such as README.md and CLAUDE.md. Google Labs has published an open DESIGN.md format described as a specification for describing a visual identity to coding agents. It combines structured tokens with written explanation. Many teams also use the name informally for any Markdown file of design rules.
What goes in a DESIGN.md file?
A useful file is short and specific. A typical outline:
- Colors: each color with its exact value and its job, for example primary #E92A24 for buttons and links only.
- Typography: heading and body fonts, sizes and weights.
- Spacing and shape: the spacing scale, corner radius, shadows.
- Layout rules: for example a hero with the headline on the left, image on the right and one call to action.
- Never list: purple-to-blue gradients, emoji used as icons, glassmorphism, stock illustrations.
- References: paths to the logo, mascot and a mockup image the agent should match.
DESIGN.md vs brand.md vs CLAUDE.md
- DESIGN.md covers how things look: tokens, layout and components.
- brand.md covers the brand as a whole: audience, personality, voice and words to avoid, as well as visual rules. Some teams keep both, some merge them into one file.
- CLAUDE.md is the standing instruction file Claude Code reads at the start of every session. Rather than holding the full design guide, it should point the agent to DESIGN.md or brand.md.
The file name matters less than the habit: the rules are written down once, in the repo, where the agent can find them. Our guide on how to give Claude Code a brand walks through the full setup.
Why DESIGN.md matters
- It fights generic output. Most AI-built sites look alike because the agent had nothing else to go on. See why Claude Code websites look the same.
- It survives new sessions. You stop repeating the same styling instructions in every prompt.
- It works across tools. Any agent that can read a file can follow it.
How to write a DESIGN.md
- Start from a real brand: palette, fonts, logo and ideally a mascot. If you have none, the Monstric brand studio generates a full brand kit to work from.
- Write each color with its value and its job.
- Add fonts, the spacing scale and two or three layout rules.
- Add a short never list of things you do not want to see.
- Link a mockup or screenshot. One picture removes a lot of guessing.
- Reference the file from CLAUDE.md or your agent's instruction file, and keep it under a page or two.
Common mistakes
- Adjectives instead of rules. "Modern and clean" gives the agent nothing to check. "Max one gradient per page" does.
- Values that disagree with the code. If DESIGN.md says one red and the CSS says another, the agent will follow the code.
- Too long. A twenty-page file costs attention on every task. Keep only what the agent cannot work out from the code.
