extract-design

Extract a design system from a site: colors, type, spacing, components and tokens.

extract-design pulls colors, type, spacing and components from a site.

Design & slidesagents 2MIT downloadable Scan upstream repo ↗

Upstream:Manavarya09/design-extract · ★ 5228 · last commit 2026-11-25 (3d)

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

StageContent
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
InputA site URL plus optional flags: --depth, --dark, --screenshots, --wait, --out, --framework
StepsMake 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
OutputEight files: markdown, preview.html, design-tokens.json, tailwind.config.js, variables.css, figma-variables.json, theme.js, shadcn-theme.css
BoundaryNo 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 diff and designlang history.

Who it is for and who it is not for

Good fitPoor fit
Moving a reference site’s palette and type scale into your projectDesigning a new interface from scratch
Handing a token set to Figma or frontendDesigns that exist only locally with no URL
Comparing the design of two sitesRequests that only want a screenshot, not tokens

How it differs

NeedUse
One sitenpx designlang <url> --screenshots
Dark scheme or one framework’s themeadd --dark, or --framework react / shadcn
Compare two sitesnpx designlang diff <urlA> <urlB>

Source-level risks

RiskSourceImpact
Depends on a third-party CLI and network“Ensure designlang is available”, npm install -g designlangThe run cannot start if install fails or the package changes
Results depend on render timing--wait <ms> exists for SPAsSlow pages can yield incomplete styles
Writes eight files to diskdefault output directory ./design-extract-outputOutput location and overwrites need checking
Crawling and screenshots cost time--depth for internal pages, --screenshots for componentsLarge sites take longer and depend on target-site access

Example: input and output

Input

Extract the design system from example.com.

Output

Outputs color, type, spacing and component tokens.

适合参考或接手项目。

FAQ

FAQ

Infringement? Reference, don't clone.

Limits

Code? Token tables.

CategoryDesign & slides
Version2026-10-28
Agent supportClaude Code, Generic (reads SKILL.md)
OSmacOS / Linux / Windows
Dependenciesnone
Environmentnone
Scriptsnone
LicenseMIT
SourceManavarya09/design-extract ↗
Verification✓ verified
Get itDownload zip
SHA256: 353977b5cac27faa33fe66223352686926c42e1fab0d549515c8dd1b271daf65 · 0.0 MB

"Generic (agents that read SKILL.md)" means any agent that discovers and loads SKILL.md; support level (auto-discovery, manual config, script execution) varies by agent.

Install
unzip manavarya09-design-extract-extract-design-2026-10-28.zip -d ~/.claude/skills/

Skills directory example: ~/.claude/skills/ for Claude Code; other agents use wherever SKILL.md is discovered.