design-extract
Extract any website's complete design system with one command. DTCG tokens, semantic+primitive+composite, MCP server for Claude Code/Cursor/Windsurf, multi-plat
What is design-extract?
Extract any website's complete design system with one command. DTCG tokens, semantic+primitive+composite, MCP server for Claude Code/Cursor/Windsurf, multi-platform emitters (iOS SwiftUI, Android Compose, Flutter, WordPress), Tailwind v4, Figma variables, shadcn/ui, CSS health audit, WCAG remediation, Chrome extension. MIT, Playwright, Node 20+.
Overview of design-extract
What it is
design-extract is a command-line tool that extracts a complete design system from any website by pointing a headless browser at a URL and reading the live DOM. It outputs 17+ files including DTCG tokens, Tailwind config, shadcn theme, Figma variables, motion tokens, typed component anatomy, brand voice, page-intent labels, and a paste-ready prompt pack. It also analyzes layout patterns, responsive behavior across 4 breakpoints, hover/focus/active states, WCAG contrast scoring, multi-page consistency, drift checks against a live source-of-truth, visual diffs, and produces a shareable graded report card. The tool is built by Manav Arya Singh, uses Playwright and Node 20+, and is available under the MIT license.
Key features
- Extracts a complete design system from any URL with one command, generating 17+ files covering tokens, themes, motion, brand voice, and more.
- Supports whole-site extraction (
sitecommand): crawls canonical pages, deduplicates tokens based on coverage, and produces a unified system with consistency grade. - Measures clone fidelity (
fidelitycommand): compares visual (pixel-diff) and motion (extractMotion) between original and clone, outputs a 0–100 score, letter grade, and ranked correction plan. - Analyzes design DNA (
dnacommand): reduces a design to 30 deterministic features across colour, type, space, shape, motion, and ranks it against a corpus of real design systems. - Offers multi-platform emitters: iOS SwiftUI, Android Compose, Flutter, WordPress, Tailwind v4, Figma variables, shadcn/ui.
- Includes an MCP server for integration with Claude Code, Cursor, and Windsurf.
- Provides a live extraction theatre (
watch) where users can observe the extraction process in real time via a split screen.
Use cases
- Reverse-engineer a competitor's design system for inspiration or migration.
- Verify the fidelity of a cloned website by measuring visual and motion differences.
- Compare multiple design systems to understand their relative positioning in a design space.
- Generate design tokens for multi-platform development (iOS, Android, Flutter, WordPress, etc.).
- Audit a website's design consistency across pages and identify outliers.
- Create a shareable report card with a design score badge for documentation.
Getting started
Run the following command to extract a design system from any URL: bash npx designlang https://stripe.com For a full extraction with screenshots, responsive analysis, and interactions: bash npx designlang --full https://stripe.com See the repository README for all available commands and options.
License and pricing
The project is open source under the MIT license. No pricing information is stated beyond being open source.
Based on the project's public README and repository metadata.