---
name: generate-design-md
description: "Generates a DESIGN.md file from any website URL. Captures colors, typography, spacing, components, and visual atmosphere into a reusable design system document that AI agents can read. Triggers: 'generate design md', 'capture the design', 'grab the design from', 'make it look like this site', 'extract design from', 'design md from', 'copy the style of', 'steal the look', 'I like how this site looks', 'use this site as reference', 'design reference from URL'."
---
# Generate DESIGN.md
Takes a website URL and produces a complete DESIGN.md file -- a plain-text design system document that any AI coding agent can read to build UI that matches that site's look and feel.
## How It Works
1. Designer gives a URL
2. Fetch the page HTML and all linked CSS
3. Extract every visual token: colors, fonts, spacing, shadows, radii, component patterns
4. Analyze the visual atmosphere and design philosophy
5. Detect the page structure (sections, grids, layout patterns)
6. Generate three files:
- `DESIGN.md` -- the complete design system (9 sections)
- Tailwind config extension -- tokens mapped to utility classes
- CSS variables -- tokens as custom properties in globals.css
7. Drop them in the project
One command. No questions. The designer just sees the result.
## When To Use
- "I like how linear.app looks -- capture that"
- "Generate a design md from stripe.com"
- "Make my app look like this site"
- "Use vercel.com as a design reference"
- "Grab the design from notion.so"
- "Copy the style of airbnb.com"
## Extraction Process
### Step 1: Fetch (multi-pass)
Do multiple fetches to maximize what you capture:
**Pass 1: HTML**
Fetch the target URL. From the HTML, extract:
- All `` URLs
- All `