design.md is a markdown file that documents a complete design system in plain text: color tokens for light and dark mode, a typography scale, spacing and radius rules, component specs, motion, accessibility rules and brand voice. Because it is plain markdown, AI coding tools and human developers can both read it as context.
The name follows the convention of README.md and CLAUDE.md: a markdown file with a job. README.md explains a project, CLAUDE.md briefs a coding agent, and design.md carries the design system. Logofai introduced the format, and its design.md generator produces the file from a logo.
A design.md file gives AI coding tools the context they otherwise guess at. Paste one into Cursor, Claude Code, v0, Lovable or Bolt and the tool stops inventing colors and fonts and starts following yours: every button uses your exact primary hex, every heading uses your typeface, every card follows your radius and shadow rules. The file contains twelve sections: brand essence, color tokens as CSS variables for light and dark mode, a full type scale, spacing and layout rules, button, card and form specs, voice and copy guidance, motion, accessibility minimums, logo usage and a do-and-don't table. Logofai generates the entire file from a logo in about a minute, together with a live HTML style guide and matching developer exports: tokens.css, tailwind.config.js and tokens.json. The same source of truth then works pasted in a prompt, committed to a repo, or handed to a designer.
What does a design.md file contain?
Every Logofai design.md follows the same twelve-section structure. It opens with brand essence, three lines that pin down the attitude, then moves through color tokens (CSS variables with usage notes, light and dark mode), typography (a Google Fonts pairing and an 11-level type scale), spacing and layout, button specs, card specs, form specs, voice and copy, motion, accessibility, logo usage, and a closing do-and-don't table that summarizes the whole brand as decisions a builder can follow.
Here is the actual opening of the design.md generated for Strike9, a streetwear brand from our case study gallery:
# DESIGN.md · Strike9
## 1. Brand essence
- Loud discipline: high-impact, never sloppy.
- Night-market grit: built for concrete, queues, clubs, and cold sidewalks.
- Sharp confidence: graphic, direct, and cut with intent.
Tagline: Built loud. Cut for the street.design.md vs design tokens vs style guide
The three formats answer different questions and complement each other:
| design.md | Design tokens | Style guide | |
|---|---|---|---|
| What it is | A markdown document describing the whole system | Machine-readable values (JSON, CSS variables) | A visual reference page for humans |
| Who reads it | AI coding tools and developers | Build pipelines and design tools | Designers and stakeholders |
| Carries reasoning | Yes: usage notes, voice, do and don't rules | No: values only | Partly: examples without specs |
| Works in a prompt | Yes, it is plain text | Awkward: no context attached | No, it is a rendered page |
You rarely choose between them. A Logofai design system generator run produces all three at once: the design.md, the tokens as tokens.css, tailwind.config.js and tokens.json, and a live HTML style guide you can share by link.
How do you create a design.md?
You can write one by hand, and some teams do, but the point of the format is that it can be generated. In Logofai you pick or upload a logo, optionally add a brand name and art direction, and generate: the palette is extracted from the mark itself, typography is paired to match, and the complete file arrives in about a minute. A generation costs 9 credits and is available on the Pro and Business plans; failed runs refund automatically.
Generate your design.md
Pick a logo, and Logofai writes the whole file, plus a live style guide and developer exports.
Try it freeHow do AI tools use a design.md?
Drop the file in your repo root and mention it in your prompt, or paste it at the start of a session. Cursor and Claude Code treat it as project context; v0, Lovable and Bolt follow it from the first render. The practical setup, with real prompts and file placement, is covered step by step in our guide to giving Cursor your brand style with design.md.
Want to read a full example first? The complete, unedited Strike9 file lives on the design system generator page, with the style guide the app rendered from it.




