
Extract Design
Pull colors, type, spacing, and component patterns from any live URL into Tailwind, React, shadcn, Figma, and token files for faster UI rebuilds.
Install
npx skills add https://github.com/manavarya09/design-extract --skill extract-designWhat is this skill?
- Produces 8 output files: AI markdown, HTML preview, Tailwind, React theme, shadcn/ui, Figma variables, W3C tokens, CSS v
- Runs WCAG accessibility scoring on extracted palettes and patterns
- CLI via npx designlang with optional --screenshots, --depth 3 crawl, and --dark mode
- Presents palette hex codes, font families, spacing base unit, and component patterns after extraction
- Triggers on extract design, design tokens, or what colors/fonts does this site use
Adoption & trust: 2k installs on skills.sh; 3.1k GitHub stars; 0/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Build → Frontend is the first shelf moment when you need implementable design artifacts, though the same extraction supports validate prototypes and launch polish. Frontend subphase because outputs target implementation stacks (Tailwind config, React theme, CSS variables), not competitor research alone.
Common Questions / FAQ
Is Extract Design safe to install?
skills.sh reports 0 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Extract Design
# 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` 2. **Read the generated markdown file** to understand the design: ```bash cat design-extract-output/*-design-language.md ``` 3. **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.) 4. **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) | File | Purpose | |------|---------| | `*-design-language.md` | AI-optimized markdown — the full design system for LLMs | | `*-preview.html` | Visual HTML report with swatches, type scale, shadows, a11y | | `*-design-tokens.json` | W3C Design Tokens format | | `*-tailwind.config.js` | Ready-to-use Tailwind CSS theme | | `*-variables.css` | CSS custom properties | | `*-figma-variables.json` | Figma Variables import format | | `*-theme.js` | React/CSS-in-JS theme object | | `*-shadcn-theme.css` | shadcn/ui theme CSS variables | ## Additional Commands - **Compare two sites:** `npx designlang diff <urlA> <urlB>` - **View history:** `npx designlang history <url>` ## Options | Flag | Description | |------|-------------| | `--out <dir>` | Output directory (default: `./design-extract-output`) | | `--dark` | Also extract dark mode color scheme | | `--depth <n>` | Crawl N internal pages for site-wide extraction | | `--screenshots` | Capture component screenshots (buttons, cards, nav) | | `--wait <ms>` | Wait time after page load for SPAs | | `--framework <type>` | Generate only specific theme (`react` or `shadcn`) |