extract-design
Extract the full design language from any website URL. Produces 8 output files including AI-optimized markdown, visual HTML preview, Tailwind config, React theme, shadcn/ui theme, Figma variables, W3C design tokens, and CSS variables. Also runs WCAG accessibility scoring. Use when user says 'extract design', 'get design system', 'design language', 'design tokens', 'what colors/fonts does this site use', or '/extract-design'.
install
source · Clone the upstream repo
git clone https://github.com/Manavarya09/design-extract
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Manavarya09/design-extract "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/extract-design" ~/.claude/skills/manavarya09-design-extract-extract-design && rm -rf "$T"
manifest:
skills/extract-design/SKILL.mdsource content
Extract Design Language
Extract the complete design language from any website URL. Generates 8 output files covering colors, typography, spacing, shadows, components, breakpoints, animations, and accessibility.
Prerequisites
Ensure
designlang is available. Install if needed:
npm install -g designlang
Or use npx (no install required):
npx designlang <url>
Process
- Run the extraction on the provided URL:
npx designlang <url> --screenshots
For multi-page crawling:
npx designlang <url> --depth 3 --screenshots
For dark mode: npx designlang <url> --dark --screenshots
- Read the generated markdown file to understand the design:
cat design-extract-output/*-design-language.md
-
Present key findings to the user:
- Primary color palette with hex codes
- Font families in use
- Spacing system (base unit if detected)
- WCAG accessibility score
- Component patterns found
- Notable design decisions (shadows, radii, etc.)
-
Offer next steps:
- Copy
into their project*-tailwind.config.js - Import
into their stylesheet*-variables.css - Paste
into globals.css for shadcn/ui users*-shadcn-theme.css - Import
for React/CSS-in-JS projects*-theme.js - Import
into Figma for designer handoff*-figma-variables.json - Open
in a browser for a visual overview*-preview.html - Use the markdown file as context for AI-assisted development
- Copy
Output Files (8)
| File | Purpose |
|---|---|
| AI-optimized markdown — the full design system for LLMs |
| Visual HTML report with swatches, type scale, shadows, a11y |
| W3C Design Tokens format |
| Ready-to-use Tailwind CSS theme |
| CSS custom properties |
| Figma Variables import format |
| React/CSS-in-JS theme object |
| shadcn/ui theme CSS variables |
Additional Commands
- Compare two sites:
npx designlang diff <urlA> <urlB> - View history:
npx designlang history <url>
Options
| Flag | Description |
|---|---|
| Output directory (default: ) |
| Also extract dark mode color scheme |
| Crawl N internal pages for site-wide extraction |
| Capture component screenshots (buttons, cards, nav) |
| Wait time after page load for SPAs |
| Generate only specific theme ( or ) |