How to use a DESIGN.md
Using a DESIGN.md comes down to two steps: put the plain-text spec where your AI can read it, and tell the model to follow it strictly. Because the format started in Google Stitch and became an open Markdown spec, no single tool owns it — the same file works across coding agents and chat assistants alike.
How to use a DESIGN.md in two steps
Using a DESIGN.md takes only two steps: first put the file where your AI can read it, and second instruct the model to build strictly from that spec. Because the file is plain Markdown laying out colors, typography, spacing, shadows, and component rules in concrete terms, any assistant that reads text can apply it right away without installing plugins, exporters, or proprietary parsers.
That second step is the one people tend to skip. Dropping a DESIGN.md into a folder rarely forces an assistant to obey every rule on its own. You still need to reference it in the tool's persistent instructions or directly in your prompt, telling the AI to follow DESIGN.md and not invent extra colors, font sizes, or border radii on the side.
How coding tools read DESIGN.md
Coding agents read DESIGN.md when you place it in your project root and point the tool's persistent instruction file at it. Whether you name the file DESIGN.md or design.md, the spec works the same way across repositories. Once the instruction file tells the agent that UI changes must follow that spec, the model stops guessing layout and styling values.
For terminal and CLI agents, the setup follows one pattern with different file names. Claude Code automatically loads CLAUDE.md at the start of every session, so you can write a rule telling it to read DESIGN.md before UI work, or reference it directly with @DESIGN.md. OpenAI's Codex looks for AGENTS.md, and Gemini CLI reads GEMINI.md, where the exact same instruction applies.
Editor-based tools and design builders fit right into the same workflow. In Cursor, add a project rule inside .cursor/rules pointing to DESIGN.md, or mention it directly in chat with @. GitHub Copilot in VS Code reads .github/copilot-instructions.md for the same guidance. And if you work in Google Stitch, it already saves your system as design.md, which moves freely between Stitch and other tools.
How to use DESIGN.md in ChatGPT and other chat AI
In chat assistants, you hand over a DESIGN.md by uploading the file, pasting its full text into the thread, or sharing a link the model can fetch. Assistants such as ChatGPT, Claude, Gemini, and other web models read the plain-text tokens directly, letting them understand your palette, type scale, and component rules before generating a landing page, slide deck, or report.
Right after sharing the file, state what you want to build and add a clear instruction to follow DESIGN.md strictly without inventing extra colors, font sizes, or border radii. Unlike a repository, a chat window has no persistent project root holding the file in view, so pairing the spec and your task at the start keeps the first draft aligned.
How to make sure the AI actually follows it
Keeping an AI faithful to your DESIGN.md comes down to giving it a single source of truth and verifying output in small steps. When generated screens drift, the problem is rarely that the model could not parse the Markdown; more often the folder holds conflicting styles or a long thread has pushed the original spec out of focus.
Three habits make a noticeable difference in practice. Keep only one DESIGN.md per project so the model never blends two aesthetics together. Ask the AI to build one page or one component first, verify the look, and only then expand across the rest of the project. Also ask it to note which color role or type level from the spec it used in each part.
Two boundaries are worth keeping in mind as well. In a long session, whenever the output drifts back toward generic defaults, tell the model to re-read DESIGN.md and revise against it rather than nudging with vague adjectives. Remember too that DESIGN.md governs how things look, not content or features, so continue writing your functional requirements as usual.
Where to get a DESIGN.md if you do not have one
If you do not have a DESIGN.md yet, there are three straightforward paths: pick a ready-made file, let an AI extract a draft from an existing project, or write your own from scratch. Which route makes the most sense depends on whether you want to adopt an established aesthetic right away or lock down a look your product already uses.
Picking a ready-made spec is fastest: every style in Curio's library ships as a complete DESIGN.md you can put to work immediately. If you already have code running in production instead of starting from a Figma file, ask a coding agent to inspect your stylesheets and theme configuration and draft a DESIGN.md, or design in Google Stitch and have it output a design.md.
Any draft extracted by an AI needs a quick human pass before you rely on it. Replace subjective phrases like "clean" or "soft" with concrete values such as <hex> and <px> so the model never has to guess. If you prefer writing from scratch, follow the order of positioning, numeric tokens, component rules, and do-nots covered in our guide on writing a DESIGN.md.
How Curio gets a DESIGN.md to your AI
Once you unlock a style in the Curio gallery, you have three ways to hand that DESIGN.md to your AI: copy a share link, connect over MCP, or download the file. Copying the link is the fastest option because nothing needs to be installed — paste the URL into any assistant that can browse web pages, and it stays valid for 15 minutes.
If you prefer working inside agents that support MCP, follow the MCP setup guide on the site so your AI can search and pull styles from the library on demand. When you want the spec versioned inside your repository, download the DESIGN.md file directly and drop it into your project root. Full details for all three options are in the docs.
FAQ
Where should I put DESIGN.md in a project?
Place DESIGN.md in the root directory of your project. Keeping it at the root makes it straightforward to reference from CLAUDE.md, AGENTS.md, GEMINI.md, .cursor/rules, or .github/copilot-instructions.md without nested paths.
Does Claude Code read DESIGN.md automatically?
No. What Claude Code reads automatically at the start of every session is CLAUDE.md in your project root. Put DESIGN.md in the project and add an instruction in CLAUDE.md telling it to read DESIGN.md before any UI changes, or pull it in directly using @DESIGN.md.
Can I put more than one DESIGN.md in a project?
Stick to one DESIGN.md per project. If two different style files sit in the same codebase, the AI is likely to blend rules from both and produce inconsistent screens.
What if the AI ignores DESIGN.md or drifts?
First check that your prompt explicitly asks the model to follow DESIGN.md and not invent colors, font sizes, or border radii. In a long chat where the output starts drifting back to default styling, ask the AI to re-read DESIGN.md, revise against it, and state which spec rule it used for each element.
Is there a difference between design.md and DESIGN.md?
No, both names refer to the exact same plain-text Markdown spec. Google Stitch saves the file as lowercase design.md, code repositories more often use uppercase DESIGN.md, and AI tools read either one.