extract-design-system

Solid

Extract design primitives from a public website and generate starter token files for your project.

Web & Frontend 209 stars 25 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
77
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
95
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Extract Design System Use this skill when the user wants to reverse-engineer a public website's design primitives into project-local starter token files. ## Before You Start Ask for: - the target public website URL - whether the user wants extraction only or starter files too Set expectations: - this v1 extracts tokens and starter assets, not a full component library - results are useful for initialization, not pixel-perfect reproduction - do not overwrite an existing design system or app styling without confirmation ## Workflow 1. Confirm the target URL is public and reachable. 2. Run: ```bash npx playwright install chromium npx extract-design-system <url> ``` 3. Review `.extract-design-system/normalized.json` and summarize: - likely primary/secondary/accent colors - detected fonts - spacing, radius, and shadow scales if present 4. If the user wants extraction artifacts only, use: ```bash npx extract-design-system <url> --extract-only ``` 5. If the user already has `.extract-design-system/normalized.json` and only wants to regenerate starter token files, run: ```bash npx extract-design-system init ``` 6. Explain the generated outputs: - `.extract-design-system/raw.json` - `.extract-design-system/normalized.json` - `design-system/tokens.json` - `design-system/tokens.css` 7. Ask before modifying any existing app code, styles, or config files. ## Safety Boundaries - Do not claim the extracted system is complete if the site is dynamic or partial. - Do not i...

Details

Author
arvindrk
Repository
arvindrk/extract-design-system
Created
5 months ago
Last Updated
6 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

design-system-extractor

Extract design system tokens/components/rules from live product UI.

1 Updated today
SylphxAI
Web & Frontend Listed

extract-design-md

Extract a comprehensive design system (DESIGN.md) directly from frontend source code — React, Vue, Svelte, Angular, plain HTML/CSS, or any web framework. Analyzes component files, stylesheets, Tailwind configs, theme definitions, and design tokens to produce a rich, Stitch-compatible design system document. Use this skill whenever the user wants to reverse-engineer a design system from an existing codebase, audit the visual language of a project, extract design tokens from source files, or understand the styling patterns in a frontend repo — even if they just say "what does this app look like?" or "pull out the design from this code."

0 Updated 2 weeks ago
coachpo
Web & Frontend Listed

design-system-extraction

Extracts the complete design system of an existing site (color tokens, type scale, spacing, breakpoints, radius, components, states, motion) by running scripts in the Chrome console, validates every contrast pair against WCAG, and turns it into an implementation guide ready for a coding-agent session. Use whenever the user mentions copying, cloning, replicating, taking inspiration from or matching a site visual language, asks what fonts or colors a page uses, talks about reverse-engineering a UI or a design system, or simply pastes a URL as a design reference. Works the same for prompts in Portuguese, como extrair o design system, copiar o estilo desse site, que fontes e cores esse site usa, quero um site parecido com X, engenharia reversa de UI. Do not wait for the words extract or extracao, they almost never appear.

1 Updated 1 months ago
maiconlara