web-design-system-extract

Extract design tokens, state diffs, and responsive rules from live websites via Playwright.

7|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/wweggplant/web-design-system-extract --skill web-design-system-extract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-design-system-extract
Source: https://github.com/wweggplant/web-design-system-extract/tree/main
Command: npx skills add https://github.com/wweggplant/web-design-system-extract --skill web-design-system-extract

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, and includes scripts (resource) components.

What problem does it solve?

Extracts and packages a live website's visual language so designers and engineers don't have to reverse-engineer tokens, components, and interaction rules manually; produces reproducible tokens, component specs, and evidence for implementation.

Core Features & Use Cases

  • Tech Stack Fingerprint: Detects frameworks, styling systems, and UI libraries with evidence.
  • Font Forensics: Logs network font requests, @font-face rules, and computed font probes per breakpoint.
  • Design Tokens & Scales: Clusters colors, typography, spacing, radius, shadows, motion, and z-index into finite scales and semantic mappings.
  • Interaction Model & State Capture: Records hover/focus/active/disabled diffs and produces a component × state matrix.
  • Minimal Implementation: Generates Tailwind config or CSS vars + tokens.ts and example components for reproduction.

Quick Start

Use the web-design-system-extract skill to extract https://www.example.com and produce tokens, state diffs, evidence artifacts, and a minimal Tailwind or CSS implementation.

Frequently Asked Questions about web-design-system-extract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract design tokens from a live website automatically?

To extract design tokens from a live website, this skill uses Playwright to collect computed styles, CSS data, and font requests across desktop, tablet, and mobile breakpoints, then clusters visual primitives into finite color, typography, and spacing scales.

Can I capture interaction states like hover and focus from an existing site?

Yes, you can capture interaction states by recording hover, focus, active, and disabled state diffs, producing a component-by-state matrix alongside evidence-backed design tokens for accurate implementation.

Does this tool require Playwright to analyze responsive design rules?

Yes, Playwright is a required dependency for analyzing responsive design rules, as it drives multi-breakpoint screenshots and probes computed styles across desktop, tablet, and mobile viewports.

What is the best way to reverse engineer a website's font and styling system?

The best way to reverse engineer a website's styling system is to log network font requests and @font-face rules per breakpoint, detect frameworks via evidence, and cluster computed styles into semantic design tokens.

How do I generate a Tailwind config from an existing website's CSS?

You can generate a Tailwind config from existing CSS by extracting computed styles and clustering them into design tokens, which outputs as minimal implementation artifacts including a tailwind.config.js and tokens.ts file.

What limitations exist when extracting a design system from live sites?

Limitations when extracting a design system include relying on Playwright for dynamic state capture, meaning sites requiring complex authentication or blocking automated browsers may not yield complete computed styles or interaction diffs.