What it is
A wrapper that extracts a website’s design language into usable artifacts: colors, fonts, spacing, shadows, components, breakpoints, animation and a WCAG score, in eight output files. It is for people who want to mirror an existing site’s theme or hand design tokens to frontend and design; it does not design a new UI from scratch. It assumes a reachable URL and an environment that can run designlang.
Core workflow
| Stage | Content |
|---|---|
| Trigger | “extract design”, “get design system”, “design language”, “design tokens”, “what colors/fonts does this site use”, “turn this URL into design tokens”, /extract-design |
| Input | A site URL plus optional flags: --depth, --dark, --screenshots, --wait, --out, --framework |
| Steps | Make designlang available (global install or npx), run the extraction, read the generated *-design-language.md, report palette, fonts, spacing base, WCAG score, component patterns and notable decisions, then offer integration steps |
| Output | Eight files: markdown, preview.html, design-tokens.json, tailwind.config.js, variables.css, figma-variables.json, theme.js, shadcn-theme.css |
| Boundary | No new UI design; nothing is declared an official spec, only what the site uses; multi-page and dark mode happen only when flagged |
Getting started: Run once with no flags to see the single-page result, then decide whether --depth is worth it.
Traits
- Outputs cover the common integration paths: Tailwind, CSS variables, React/CSS-in-JS, shadcn/ui, Figma Variables and W3C Design Tokens.
- The markdown file is written for LLMs, as context for AI-assisted development.
- Ships a WCAG accessibility score alongside the palette and type scale, and supports comparison and history via
designlang diffanddesignlang history.
Who it is for and who it is not for
| Good fit | Poor fit |
|---|---|
| Moving a reference site’s palette and type scale into your project | Designing a new interface from scratch |
| Handing a token set to Figma or frontend | Designs that exist only locally with no URL |
| Comparing the design of two sites | Requests that only want a screenshot, not tokens |
How it differs
| Need | Use |
|---|---|
| One site | npx designlang <url> --screenshots |
| Dark scheme or one framework’s theme | add --dark, or --framework react / shadcn |
| Compare two sites | npx designlang diff <urlA> <urlB> |
Source-level risks
| Risk | Source | Impact |
|---|---|---|
| Depends on a third-party CLI and network | “Ensure designlang is available”, npm install -g designlang | The run cannot start if install fails or the package changes |
| Results depend on render timing | --wait <ms> exists for SPAs | Slow pages can yield incomplete styles |
| Writes eight files to disk | default output directory ./design-extract-output | Output location and overwrites need checking |
| Crawling and screenshots cost time | --depth for internal pages, --screenshots for components | Large sites take longer and depend on target-site access |