manavarya09/design-extract

extract-design

Extract the full design language from any website URL.

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/manavarya09/design-extract --skill extract-design

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

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:

bash
npm install -g designlang

Or use npx (no install required):

bash
npx designlang <url>

Process

  1. Run the extraction on the provided URL:
bash
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:
bash
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.)
  1. 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)

Related by task