DESIGN.md prompt
A DESIGN.md prompt asks the AI to write your design rules into one plain-text file: colours, type, spacing, layout and a never list. Every later prompt points to that file, so screens stay consistent.
The prompt
Write a DESIGN.md file for [business] from the brief above.
Sections: Brand, Colour, Type, Layout, Components, Never.
Use exact values: hex codes, font names, pixel sizes,
a spacing scale and a maximum content width.
Body text contrast at least 4.5:1. Buttons at least 44px tall.
Keep it under 60 lines.
Ask me before you choose any colour or font I didn't give you.When to use it
After the brief and before the first screen. Update the file whenever you make a design decision you want to keep.
Why it works
Google's Stitch made the DESIGN.md file a named practice in March 2026.1 It works in any tool that reads a file or a paste. Exact values are what make it useful. "Clean and modern" can't be checked. "#111111 on #FFFFFF" can. WCAG 2.2 sets 24 by 24 CSS pixels as the minimum target size,2 so 44px buttons leave room to spare.
How to adapt it
- Add a Components section once you have buttons, cards and forms you like.
- Add your own spacing scale, such as 4, 8, 16, 24, 40, 64.
- Keep one DESIGN.md per brand if you run more than one site.
Mistakes to avoid
- Adjectives instead of values. "Warm" means something different every time.
- Letting the file grow past a page. The tool starts skipping rules.
Go deeper
The AI website design prompts guide has a full DESIGN.md template. A DESIGN.md is a small design system. The UI sizing guide has more values worth adding. This prompt is part of the plan stage. It follows the AI website design prompts guide and the six steps in how to use AI to design a website.