Docs
The designlang CLI is free and open source, version 13.4.0. Three commands cover most of what people do with it; everything else is below.
Read a site
Opens the page in a real browser and writes its design system as files.
design-tokens.jsonW3C DTCG tokenstailwind.config.jsTailwind v3, and v4 @themevariables.cssCSS variablesfigma-variables.jsonFigma variablesshadcn-theme.cssshadcn/ui themeDESIGN.mdthe brand, for AI editorsmotion-tokens.jsondurations and easingpreview.htmla visual report- and 35 more commands for everything else
Score a page
How generic it looks, out of 100. Add --brand DESIGN.md to see how close it is to your brand.
Connect your editor
Claude Code, Cursor and Windsurf read your tokens and check their own screens.
Topics
Start here
Connect your tools
- Verify & FixLet Claude Code or Cursor check every screen it builds against your brand, and fix what drifted.
- MCP setupConnect Claude Code, Cursor or any MCP client to designlang, locally or hosted.
- GitHub Action (Preview Gate)Diff the design of every preview deploy and comment on the pull request.
- Figma pluginSync a saved project into Figma variables and styles.
Every command
designlang applyExtract and apply design directly to your project4 optionsdesignlang battleGenerate a head-to-head graded battle card (HTML + JSON + Markdown)4 optionsdesignlang brandGenerate a full brand-guidelines book — colour, type, spacing, motion, voice, components, accessibility, tokens, and how-to-use guidance10 optionsdesignlang brandsCompare design languages across multiple brands2 optionsdesignlang chatInteractive REPL over an extraction. <target> is either a URL or a path to an existing *-design-tokens.json file.1 optiondesignlang ciOne-shot design regression report — drift + score + PR-ready markdown. Works in any CI.6 optionsdesignlang cloneGenerate a working Next.js starter from a site's design3 optionsdesignlang diffCompare design languages of two websites1 optiondesignlang dnaPlace a design in the measured design space — nearest systems, per-axis percentiles, outliers3 optionsdesignlang dna-corpusExtract several sites and write the corpus that `designlang dna` ranks against2 optionsdesignlang doctorPrint a one-screen health check of the local designlang installno optionsdesignlang driftCompare local tokens against a live site and report drift (CI-friendly)4 optionsdesignlang exportExport raw design data in various formats2 optionsdesignlang fidelityMeasure how faithfully a clone reproduces a site — pixel-diff + motion-fidelity → one 0-100 score, letter grade, ranked correction plan, and a shareable card.5 optionsdesignlang galleryBuild a static, shareable gallery from fidelity reports — an index of score cards plus a permalink page (with OG card) per clone.3 optionsdesignlang gradeGenerate a shareable Design Report Card (HTML + JSON + Markdown)5 optionsdesignlang historyView design history for a websiteno optionsdesignlang install-browserDownload the Chromium build designlang drives (no longer done at npm install)1 optiondesignlang lintAudit a local token file (.json / .css) for color sprawl, scale drift, contrast fails1 optiondesignlang mcpLaunch designlang MCP server over stdio (exposes latest extraction as resources + tools)1 optiondesignlang packBundle every output (tokens, components, storybook, prompts, starter) into a single design-system directory3 optionsdesignlang pairFuse two extracted designs across axes (colours/typography/spacing/shape/motion/voice/components)13 optionsdesignlang remixRestyle a site in a different design vocabulary (brutalist, swiss, art-deco, cyberpunk, soft-ui, editorial)6 optionsdesignlang replayRecord a short WebM clip of a site's motion (scroll + hover). Optional MP4 if ffmpeg is on PATH.6 optionsdesignlang scoreScore a website's design system qualityno optionsdesignlang siteCrawl a whole site and synthesize one canonical design system across all pages3 optionsdesignlang slopScore how generic a page looks: the known AI-design tells, each with what was measured and where2 optionsdesignlang statsPrint a concise one-screen summary to stdout — grade, primary, fonts, spacing, voice. Accepts multiple URLs. No files written.1 optiondesignlang studioLaunch a live design studio over the latest extraction — edit tokens, watch components restyle, export DTCG/CSS/Tailwind, share via URL.4 optionsdesignlang syncSync local design tokens with a live website1 optiondesignlang theme-swapRecolour the extracted design around a new brand primary (preserves type, spacing, neutrals)6 optionsdesignlang verifyRebuild components from the extracted tokens and pixel-diff them against the live page — a 0-100 fidelity score + loss heatmaps.4 optionsdesignlang verify-uiCheck a UI against your brand at 390, 768 and 1280px (and dark mode): pass/fail, on-brand score, generic-AI-look score, and every drift with expected and actual values. localhost works.3 optionsdesignlang visual-diffSide-by-side HTML diff of two URLs with screenshots + token changes1 optiondesignlang watchMonitor a site for design changes1 optiondesignlang widgetsPrint the curated widget-ignore selector list used by --ignore-widgetsno options
Guides
- How to extract design tokens from any websiteTurn any live URL into W3C DTCG design tokens, CSS variables and a Tailwind config with one free command. Real output from stripe.com included.
- How to make Cursor and Claude Code follow your design system with MCPStop AI editors inventing colours. Connect Cursor or Claude Code to your real design tokens over MCP, add rules files, and lint the result in CI.
- How to convert a website into a Tailwind themeGenerate a Tailwind v3 config or a Tailwind v4 @theme block from any live site’s real colours, type scale, spacing and radii, with real stripe.com output.
- How to make a shadcn/ui theme from any websiteCreate shadcn/ui CSS variables from a live site’s brand colours and radius in one command, then apply them to every component. Real stripe.com theme shown.
- How to run a design system audit on any websiteAudit a site’s design system for colour sprawl, off-scale spacing, contrast failures and design debt, with a scored report and a ranked fix plan.
Still stuck?
Open an issue with the command you ran and what it printed, or write to manav@designlang.app.
Open an issue on GitHub