AI tools are powerful, but they need context. Without clear design rules, they can generate UI that looks good in isolation but does not match your product.
A DESIGN.md file gives AI tools a shared source of truth for how the UI of your site should look and feel. It documents the small decisions that often live only in people’s heads: spacing, typography, button styles, card patterns, colours, tone of voice, responsive behaviour, and interaction states.
DESIGN.md file?Google Stitch helped popularise the DESIGN.md convention and has open-sourced a format specification for describing visual identity to AI coding agents.
Similar to a SKILL.md, SOUL.md or an AGENTS.md file, the DESIGN.md file acts as a single source of truth for the brand identity of your project. It is to act as the foundation for design decisions made when creating new content for a site.
DESIGN.md matter?When there is either too little context; or too specific instructions when creating new UI/UX elements, AI agents often end up with too much flexibility which will lead to differing results over a site. This creates "design debt”.
Design debt often starts when developers (or agents) make reasonable one-off decisions:
Each decision might be fine on its own, but over time they create inconsistency. Do you use AI to reduce design debt?
A DESIGN.md helps stop this by making your UI rules explicit.
DESIGN.md file?A good DESIGN.md should include:
The goal is to add the necessary context; but not bloat the file.
DESIGN.md file?Put the product’s design rules in DESIGN.md, then make each agent’s instruction file point back to it. This gives Claude, Codex, Copilot, Cursor, and other agents the same design context before they touch the UI.
An example of this for CLAUDE.md file:
# Claude instructionsBefore making UI changes, read DESIGN.md.Use DESIGN.md as the design source of truth for:- Layout- Spacing- Typography- Components- Colour usageDo not introduce new visual patterns if an existing component or token can be reused.
DESIGN.md file?Creating a DESIGN.md file can be done either manually; or with AI assistance (recommended).
You can work with any agent to create one, however you may get better results with tools designed to craft them:
/impeccable documentDESIGN.md catalogue (e.g. designmd.ai)As AI tools become part of more workflows, your DESIGN.md should not only help with frontend code. It can also help keep your brand consistent across anything AI generates, such as: