Google Stitch made “design → code” real. But there’s a gap nobody’s talking about — who writes the design spec that AI actually needs?
Table of Contents
Open Table of Contents
- The Design-to-Code Revolution Has a Blind Spot
- What Is DESIGN.md?
- Why DESIGN.md Matters for AI Coding
- The Problem: Nobody Wants to Write It
- Tools That Generate DESIGN.md for You
- What’s Inside a DESIGN.md File?
- How to Use DESIGN.md with AI Agents
- Before vs After: Real-World Comparison
- Getting Started in 5 Minutes
- Frequently Asked Questions (FAQ)
The Design-to-Code Revolution Has a Blind Spot
Google launched Stitch and the design-to-code workflow is finally becoming real. Feed an AI your design, get production-ready code back. Simple.
But here’s what nobody asks:
Who creates the design spec that AI needs in the first place?
Stitch introduced DESIGN.md — a Markdown file that captures your entire visual system. Colors, typography, spacing, tone, components. Everything an AI coding agent needs to build consistent UI.
The problem? Most teams don’t have a DESIGN.md. Most developers don’t know how to write one. And most designers don’t think in Markdown.
That’s the gap. And a new wave of tools is filling it.
What Is DESIGN.md?
DESIGN.md is a plain Markdown file that defines a project’s complete visual design system in a format that’s:
- Human-readable — any developer or designer can understand it
- AI-readable — coding agents like Claude Code, Codex, and Copilot can parse it directly
- Version-controllable — lives in your repo alongside your code
Think of it as README.md for your design system. Or agents.md for your visual identity.
A Simple Example
# Brand: Cirrus Banking
## Color Palette
- Primary: #2563eb (Blue)
- Secondary: #f9fafb (Light Gray)
- Accent: #f59e0b (Amber)
- Error: #ef4444 (Red)
## Typography
- Headline: 'Space Grotesk', Bold, 32px
- Body: 'Inter', Regular, 16px
- Caption: 'Inter', Regular, 12px
## Spacing
- Base unit: 8px
- Padding: 24px / 16px / 8px
- Grid gap: 16px
## Components
- Button: Primary, Secondary, Ghost, Icon-only
- Card: Default, Highlighted, Compact
- Input: Text, Select, Textarea
## Tone & Voice
- Professional but approachable
- Use active voice
- Keep labels under 3 words
That’s it. No proprietary format. No complex tooling. Just Markdown that any AI agent can consume.
Why DESIGN.md Matters for AI Coding
Without a design spec, AI coding agents have a critical weakness: they forget your design decisions between prompts.
Ask Claude Code to build a dashboard today, and it picks colors and fonts. Ask it to build a settings page tomorrow, and it picks different colors and fonts. Your app looks like it was designed by five different people.
DESIGN.md fixes this permanently.
| Without DESIGN.md | With DESIGN.md |
|---|---|
| AI picks random styles each session | AI follows your exact design tokens |
| Inconsistent UI across pages | Pixel-perfect brand consistency |
| Constant manual corrections | Set once, applied everywhere |
| ”Make it look like the homepage” prompts | Zero ambiguity in every generation |
The Workflow Shift
Old workflow:
Prompt → AI guesses design → You correct → Repeat
New workflow:
DESIGN.md + Prompt → AI nails it first time
The Problem: Nobody Wants to Write It
Here’s the irony: DESIGN.md is the single most impactful file you can add to your AI workflow — and almost nobody creates one.
Why?
- Designers think in visual tools, not Markdown
- Developers don’t have the design vocabulary
- Founders don’t have time
- Existing design systems are locked in Figma, Sketch, or proprietary formats
You know you need it. You just don’t want to spend 2 hours writing it from scratch.
What if a tool could generate it in one click?
Tools That Generate DESIGN.md for You
A new category of tools has emerged to solve exactly this problem. Point them at any website, and they extract the complete design system into a ready-to-use DESIGN.md.
TypeUI DESIGN.md Extractor
The standout tool in this space. TypeUI offers a Chrome extension that reads the active webpage’s styles and generates a complete DESIGN.md.
What it extracts:
- Color palette (primary, secondary, accent, semantic colors)
- Typography (font families, sizes, weights, line heights)
- Spacing system (padding, margins, gaps)
- Component patterns
- Tone and manner guidelines
- Accessibility notes
How it works:
- Install the Chrome extension
- Visit any website
- Click the extension
- Get a fully structured
DESIGN.md
The output is immediately usable with Claude Code, Codex, Cursor, Google Stitch, or any AI coding agent.
Other Notable Tools
| Tool | Approach | Best For |
|---|---|---|
| Context.dev Generator | Paste a URL, get DESIGN.md online | Quick one-off extractions |
| Design Extractor | Web-based URL analysis | Analyzing competitor design systems |
| Awesome DESIGN.md | Curated library of examples | Starting with a template |
What’s Inside a DESIGN.md File?
A well-structured DESIGN.md typically contains these sections:
1. Brand Identity
## Brand
- Name: [Project Name]
- Audience: [Target users]
- Product Surface: [Web app / Marketing site / Mobile]
2. Color System
## Colors
- Primary: #2563eb
- Secondary: #64748b
- Success: #22c55e
- Warning: #f59e0b
- Error: #ef4444
- Background: #ffffff
- Surface: #f8fafc
- Text Primary: #0f172a
- Text Secondary: #64748b
3. Typography
## Typography
- Display: 'Cal Sans', 48px, Bold
- Heading: 'Inter', 24px, Semibold
- Body: 'Inter', 16px, Regular
- Code: 'JetBrains Mono', 14px, Regular
4. Spacing & Layout
## Spacing
- Base: 4px
- Scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64
- Max content width: 1280px
- Grid: 12 columns, 24px gap
5. Component Rules
## Components
- Buttons: 8px radius, 12px 24px padding
- Cards: 12px radius, 1px border, 24px padding
- Inputs: 6px radius, 40px height, 12px padding
6. Do’s and Don’ts
## Rules
✅ Use semantic color tokens, not raw hex values
✅ Maintain 4.5:1 contrast ratio minimum
❌ Don't mix font families within a component
❌ Don't use spacing values outside the scale
How to Use DESIGN.md with AI Agents
Once you have your DESIGN.md, using it with AI is trivial.
With Claude Code
# Add to your project root
cp DESIGN.md ./
# Claude Code automatically reads project files
claude "Build a pricing page following DESIGN.md"
With Cursor
# Reference in your prompt
@DESIGN.md Build a user settings page
With OpenAI Codex
# Include in your codex configuration
codex "Create a dashboard layout. Follow the design system in DESIGN.md"
With Google Stitch
Import DESIGN.md directly into Stitch. Every screen it generates will follow your design tokens automatically.
Before vs After: Real-World Comparison
Without DESIGN.md
Prompt: "Build me a landing page for a SaaS product"
Result: Generic blue theme, system fonts, random spacing,
looks nothing like your brand
With DESIGN.md
Prompt: "Build me a landing page for a SaaS product"
Result: Your exact brand colors, your fonts, your spacing,
your component styles — looks like your designer built it
Same prompt. Completely different output. The only variable is whether DESIGN.md exists in your project.
Getting Started in 5 Minutes
Here’s the fastest path to your first DESIGN.md:
Option 1: Extract from an Existing Site
- Find a website whose design you like (or use your own)
- Use TypeUI’s Chrome extension or Context.dev’s generator
- Download the generated
DESIGN.md - Drop it in your project root
- Start prompting your AI agent
Option 2: Build from a Template
- Visit the Awesome DESIGN.md repository
- Pick a template that matches your style
- Customize the tokens to match your brand
- Save as
DESIGN.mdin your project root
Option 3: Write It Yourself
- Define your 5 core colors
- Pick 2 fonts (heading + body)
- Set a spacing scale (4px base recommended)
- List your main components
- Add 3-5 do/don’t rules
Even a minimal DESIGN.md with just colors and fonts will dramatically improve AI output consistency.
Frequently Asked Questions (FAQ)
Is DESIGN.md a Google standard?
It originated with Google Stitch, but it’s not a proprietary format. It’s plain Markdown — anyone can create and use it with any tool.
Does it only work with Google Stitch?
No. DESIGN.md works with any AI coding agent that can read project files — Claude Code, Cursor, Codex, Copilot, and more.
How often should I update DESIGN.md?
Update it whenever your design system changes. Since it’s in your repo, you can track changes with Git just like any other file.
Can I use DESIGN.md with Figma?
Yes. Several tools can extract a DESIGN.md from Figma files, and Stitch can import directly from Figma links.
What if my project doesn’t have a formal design system?
That’s exactly when DESIGN.md helps the most. Even documenting basic colors, fonts, and spacing gives AI agents enough to produce consistent output.
Is DESIGN.md replacing Figma?
No. Figma is a visual design tool. DESIGN.md is a design specification — they serve different purposes. Think of DESIGN.md as the bridge between Figma and your code.
The design-to-code pipeline finally has its missing link. Whether you extract it from an existing site or write it from scratch, DESIGN.md is the single highest-ROI file you can add to any AI-assisted project.