design-extract drives headless Chromium to read tokens, typography, motion, and components from any URL, emitting DTCG files, Tailwind config, Figma variables, and MCP tools for AI editors.
Overview
The designlang CLI launches Playwright-controlled browsers against production pages and harvests palettes, spacing, typography, motion, component anatomy, and accessibility signals into a multi-file pack. Outputs include DTCG tokens, Tailwind v4 config, shadcn themes, Figma variables, motion specs, brand voice notes, and prompts aimed at v0, Lovable, Cursor, or Claude Artifacts.
Beyond one-off pages, site mode crawls canonical sections such as pricing and docs to vote on site-wide tokens versus page-local outliers, merging near-duplicate colors in OKLab space. Slop and verify-ui commands score generic AI styling or brand drift across breakpoints and dark mode, exiting non-zero for CI gates.
Fidelity mode compares originals to clones with pixel diffs and motion analysis, producing graded reports and correction plans. A public gallery and watch UI replay extractions without local install, while an MCP server exposes verify and extract tools to compatible editors.
Node.js 20 or newer is required; optional smart classification can call external AI APIs when configured.
Key features
- Headless DOM token extraction
- DTCG Tailwind and Figma exports
- Multi-page site synthesis
- WCAG contrast and drift checks
- Fidelity scoring versus clones
- MCP server for AI IDEs
- Chrome extension companion
- Live extraction replay gallery
Use cases
- Design token audits
- Clone QA against live brands
- Bootstrapping Tailwind themes
- CI brand consistency gates
- Agent-driven UI verification