DESIGN.md: Pure-Text Design Systems That Let AI Agents Generate Pixel-Matched UI

DESIGN.md: Pure-Text Design Systems That Let AI Agents Generate Pixel-Matched UI

You tell your AI agent “build a login page” and it spits out a blue-button Bootstrap default. You ask it to add a modal to your existing project and the buttons are three shades off your design spec. The agent isn’t dumb — it just doesn’t know what your project is supposed to look like.

Figma exports, CSS variable JSON files, Storybook component libraries… the standard ways of stuffing design context into an agent’s prompt are either slow, expensive, or just don’t register. The Google Stitch team proposed something simpler: DESIGN.md.

What DESIGN.md Is

DESIGN.md is a plain-text design system document. No JSON schema. No Figma plugin. No special tooling. Just a markdown file. Drop it in your project root and any AI coding agent or Google Stitch instantly understands how your UI should look.

FileWho reads itWhat it defines
AGENTS.mdCoding agentsHow to build the project
DESIGN.mdDesign agentsHow the project should look and feel

Markdown is the format LLMs read best — nothing to parse, nothing to configure. Copy, paste, done. The agent just gets it.

awesome-design-md is the public resource library for this format: 73 DESIGN.md files extracted from real websites, covering Claude, Stripe, Vercel, Notion, Figma, Apple, Nike, SpaceX, and more. 79.6k stars, 9.6k forks on GitHub.

What’s Inside Each DESIGN.md

Every file follows the Google Stitch DESIGN.md format with 9 sections:

#SectionWhat it captures
1Visual Theme & AtmosphereMood, density, design philosophy
2Color Palette & RolesSemantic name + hex + functional role
3Typography RulesFont families, full hierarchy table
4Component StylingsButtons, cards, inputs, navigation with states
5Layout PrinciplesSpacing scale, grid, whitespace philosophy
6Depth & ElevationShadow system, surface hierarchy
7Do’s and Don’tsDesign guardrails and anti-patterns
8Responsive BehaviorBreakpoints, touch targets, collapsing strategy
9Agent Prompt GuideQuick color reference, ready-to-use prompts

Each brand also comes with two visual preview files: preview.html (light) and preview-dark.html (dark). They render the actual color swatches, type scale, buttons, and cards so you know what the agent will generate.

This isn’t a Figma replacement. It’s something agents can actually read. LLMs don’t open Figma files. They read markdown, line by line.

When to Use It

DESIGN.md solves a very specific problem: AI agent-generated UI that doesn’t match your brand.

  • Vibe coding prototypes: Tell the agent “build a dashboard in the style of DESIGN.md” and get something that looks intentional, not like a default component library
  • Multi-agent workflows: Different agents writing code in the same project stay visually consistent
  • Cold-starting a new project: Pick a brand style from awesome-design-md (say, Stripe’s signature purple gradients or Linear’s ultra-minimal purple accent), copy the DESIGN.md, and your agent generates UI in that style from day one
  • Team alignment: Developers don’t need to memorize hex codes, font sizes, or border radii — the agent handles it

What It’s Not Good At

DESIGN.md is a design reference for agents, not a complete design spec for humans.

  • Doesn’t replace Figma: It doesn’t capture complex interaction states like multi-step animations or gesture feedback. It covers static visual rules.
  • Edge cases fall through: Nine sections cover common components well. Heavily custom interfaces still need manual calibration.
  • Complex brands degrade quality: Clean, modern brands (Stripe, Vercel, Linear) translate well. Brands with dense, illustration-heavy visual languages confuse agents more.
  • Dependent on agent design capability: The underlying LLM’s grasp of CSS and visual presentation directly determines output quality. Claude Code, Gemini CLI, Cursor — results vary across agents.

If your project already has a mature design system and component library, DESIGN.md won’t move the needle much. If you’re building new interfaces with AI agents, prototyping, or operating without a dedicated designer, this saves you an entire day.

How to Use It

awesome-design-md is a GitHub repository. No installation required. Browse and pick.

  1. Browse getdesign.md or the design-md/ directory in the GitHub repo
  2. Find the brand style you want, copy its DESIGN.md
  3. Drop the file into your project root
  4. Tell your AI agent: “Generate UI using the DESIGN.md in this project”

Quick start from the repo:

# Clone the repository
git clone https://github.com/VoltAgent/awesome-design-md.git

# Copy the DESIGN.md you want into your project
cp awesome-design-md/design-md/stripe/DESIGN.md ./DESIGN.md

Practical Example

Say you want an AI agent to build a SaaS admin dashboard. You pick Linear’s minimalist aesthetic.

Copy Linear’s DESIGN.md into your project root, then tell the agent:

“Using the DESIGN.md in this project, generate a project dashboard. Include a sidebar navigation, a top status bar, and a main area with cards for project progress, team members, and a task list.”

The agent reads DESIGN.md and applies Linear’s visual rules automatically: Inter Display font, purple accent (#5E6AD2), strict 4px spacing system, zero border radius, dark background with semi-transparent cards…

Without DESIGN.md, the agent defaults to whatever generic style it was trained on. The result might look nothing like what you wanted. With DESIGN.md, you land close to the target on the first pass.

/* Agent-generated button from DESIGN.md rules */
.btn-primary {
  background: var(--color-accent, #5E6AD2);
  color: #fff;
  border-radius: 0;
  font-family: 'Inter Display', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  letter-spacing: -0.05em;
}

Writing Your Own DESIGN.md

The files in awesome-design-md are extracted from other people’s sites. To write one for your own project, follow the Google Stitch format.

A minimal, usable DESIGN.md:

# Project Design System

## Visual Theme & Atmosphere
Clean, minimal, developer-first. High contrast, generous whitespace.

## Color Palette & Roles
| Name | Hex | Role |
|---|---|---|
| Primary | #3B82F6 | CTAs, links, active states |
| Surface | #FFFFFF | Cards, modals, elevated containers |
| Background | #F8FAFC | Page background |
| Text Primary | #0F172A | Body copy, headings |

## Typography Rules
| Level | Family | Size | Weight |
|---|---|---|---|
| Display | Inter | 48px / 1.1 | 700 |
| H1 | Inter | 32px / 1.25 | 600 |
| H2 | Inter | 24px / 1.3 | 600 |
| Body | Inter | 16px / 1.6 | 400 |
| Caption | Inter | 13px / 1.5 | 400 |

## Layout Principles
Spacing scale: 4px system (4, 8, 12, 16, 24, 32, 48, 64)
Max content width: 1200px
Grid: 12-column, 24px gutter

Save this as DESIGN.md and any agent reading it has enough to generate a coherent baseline UI.

The Bottom Line

DESIGN.md isn’t a design tool revolution. It’s an engineering convention for the agent era. It collapses “how do I tell the AI what the UI should look like” into a markdown file anyone can edit.

Next time you tell your agent “make it look good” and get default-styled slop in return, consider: the problem isn’t the agent. It’s that the agent didn’t have a DESIGN.md.

GitHub: https://github.com/VoltAgent/awesome-design-md | Website: https://getdesign.md | Google Stitch: https://stitch.withgoogle.com/docs/design-md/overview/

Related Posts

22 Claude Code Skills for End-to-End Content Creation: From Generation to Publish in One Workflow

22 Claude Code Skills for End-to-End Content Creation: From Generation to Publish in One Workflow

You finish a technical blog post. Now comes the headache: generate a cover image, create illustratio ...

AI Agent Skill: Caveman Mode Cuts 75% Output Tokens Without Losing Accuracy

AI Agent Skill: Caveman Mode Cuts 75% Output Tokens Without Losing Accuracy

Your AI agent talks too much. Every "Sure! I'd be happy to help you with that" is a wasted token tha ...

Why Claude's Team Is Ditching Markdown as AI Output Explodes from 10 to 1,000 Lines

Why Claude's Team Is Ditching Markdown as AI Output Explodes from 10 to 1,000 Lines

Your AI can now generate 1,000-line plans, complex flowcharts, and full code reviews in one shot. An ...

Tell Claude to Draw: Diagrams with /drawio in Claude Code

Tell Claude to Draw: Diagrams with /drawio in Claude Code

You're describing an architecture to Claude Code. The response includes detailed ASCII art that almo ...

How to Turn Real-World Capabilities Into an Agent Skill

General-purpose AI agents are powerful, but they lack the one thing every team has: **procedural kno ...

Image Blaster: Blast Any Image Into a Meshed 3D World in Under 5 Minutes

Image Blaster: Blast Any Image Into a Meshed 3D World in Under 5 Minutes

You have a concept sketch, a photo, or a film storyboard reference. Turning it into an explorable 3D ...