PluginBench
Skill
Review
Audit score 70

extract-design

manavarya09/design-extract

Extract complete design systems from any website into 8 ready-to-use formats.

What is extract-design?

Analyzes a website URL to automatically extract its full design language—colors, typography, spacing, shadows, and components—then generates 8 output files (markdown, HTML preview, Tailwind config, React theme, shadcn/ui theme, Figma variables, W3C tokens, and CSS variables) plus WCAG accessibility scoring. Use this when you need to replicate or understand a site's design system.

  • Extracts color palettes, typography, spacing systems, shadows, and component patterns from live websites
  • Generates 8 output formats: AI-optimized markdown, visual HTML preview, Tailwind config, React theme, shadcn/ui theme, Figma variables, W3C design tokens, and CSS variables
  • Runs WCAG accessibility scoring on extracted design
  • Supports multi-page crawling, dark mode extraction, and component screenshots
  • Offers comparison and history tracking for design evolution
  • Provides ready-to-use theme files for immediate project integration

How to install extract-design

npx skills add https://github.com/manavarya09/design-extract --skill extract-design
Prerequisites
  • Node.js and npm installed
  • designlang CLI (installed globally or used via npx)
Claude Code
Cursor
Windsurf
Cline

How to use extract-design

  1. 1.Run the extraction on your target URL: npx designlang <url> --screenshots
  2. 2.Read the generated markdown file to review the design system: cat design-extract-output/*-design-language.md
  3. 3.Review the visual HTML preview by opening *-preview.html in a browser
  4. 4.Choose which output files to use: copy Tailwind config, import CSS variables, paste shadcn theme, or import Figma variables into your project
  5. 5.Use the markdown file as context for AI-assisted development or as documentation

Use cases

Good for
  • Quickly replicate a competitor's or inspiration site's design system into your project
  • Generate a Figma design system from a live website for designer handoff
  • Extract design tokens from an existing site to bootstrap a new project's theme
  • Compare design systems across multiple websites to identify trends
  • Create AI-optimized design documentation for LLM-assisted development
Who it's for
  • Frontend developers building new projects and needing design system reference
  • Designers extracting live design systems for Figma collaboration
  • Product teams analyzing competitor or inspiration site design patterns
  • AI-assisted development workflows requiring structured design context

extract-design FAQ

What if the website uses JavaScript/SPA rendering?

Use the --wait <ms> flag to allow time for JavaScript to render before extraction. For example: npx designlang <url> --wait 3000

Can I extract dark mode designs?

Yes, use the --dark flag to also extract dark mode color schemes: npx designlang <url> --dark --screenshots

How do I crawl multiple pages of a site?

Use the --depth flag to crawl N internal pages: npx designlang <url> --depth 3 --screenshots

Can I compare two websites' design systems?

Yes, use the compare command: npx designlang diff <urlA> <urlB>

Which output file should I use for my project?

Use *-tailwind.config.js for Tailwind projects, *-variables.css for vanilla CSS, *-theme.js for React/CSS-in-JS, *-shadcn-theme.css for shadcn/ui, and *-figma-variables.json for Figma handoff

Full instructions (SKILL.md)

Source of truth, from manavarya09/design-extract.


name: extract-design description: "Extract the full design language from any website URL. Produces 8 output files including AI-optimized markdown, visual HTML preview, Tailwind config, React theme, shadcn/ui theme, Figma variables, W3C design tokens, and CSS variables. Also runs WCAG accessibility scoring. Use when user says 'extract design', 'get design system', 'design language', 'design tokens', 'what colors/fonts does this site use', or '/extract-design'." allowed-tools: Bash, Read, Write, Glob

Extract Design Language

Extract the complete design language from any website URL. Generates 8 output files covering colors, typography, spacing, shadows, components, breakpoints, animations, and accessibility.

Prerequisites

Ensure designlang is available. Install if needed:

npm install -g designlang

Or use npx (no install required):

npx designlang <url>

Process

  1. Run the extraction on the provided URL:
npx designlang <url> --screenshots

For multi-page crawling: npx designlang <url> --depth 3 --screenshots For dark mode: npx designlang <url> --dark --screenshots

  1. Read the generated markdown file to understand the design:
cat design-extract-output/*-design-language.md
  1. Present key findings to the user:

    • Primary color palette with hex codes
    • Font families in use
    • Spacing system (base unit if detected)
    • WCAG accessibility score
    • Component patterns found
    • Notable design decisions (shadows, radii, etc.)
  2. Offer next steps:

    • Copy *-tailwind.config.js into their project
    • Import *-variables.css into their stylesheet
    • Paste *-shadcn-theme.css into globals.css for shadcn/ui users
    • Import *-theme.js for React/CSS-in-JS projects
    • Import *-figma-variables.json into Figma for designer handoff
    • Open *-preview.html in a browser for a visual overview
    • Use the markdown file as context for AI-assisted development

Output Files (8)

FilePurpose
*-design-language.mdAI-optimized markdown — the full design system for LLMs
*-preview.htmlVisual HTML report with swatches, type scale, shadows, a11y
*-design-tokens.jsonW3C Design Tokens format
*-tailwind.config.jsReady-to-use Tailwind CSS theme
*-variables.cssCSS custom properties
*-figma-variables.jsonFigma Variables import format
*-theme.jsReact/CSS-in-JS theme object
*-shadcn-theme.cssshadcn/ui theme CSS variables

Additional Commands

  • Compare two sites: npx designlang diff <urlA> <urlB>
  • View history: npx designlang history <url>

Options

FlagDescription
--out <dir>Output directory (default: ./design-extract-output)
--darkAlso extract dark mode color scheme
--depth <n>Crawl N internal pages for site-wide extraction
--screenshotsCapture component screenshots (buttons, cards, nav)
--wait <ms>Wait time after page load for SPAs
--framework <type>Generate only specific theme (react or shadcn)