Skip to content

feat: add extract-design skill — reverse-engineer any website's design system#949

Open
Manavarya09 wants to merge 1 commit intoanthropics:mainfrom
Manavarya09:feat/extract-design-skill
Open

feat: add extract-design skill — reverse-engineer any website's design system#949
Manavarya09 wants to merge 1 commit intoanthropics:mainfrom
Manavarya09:feat/extract-design-skill

Conversation

@Manavarya09
Copy link
Copy Markdown

Summary

Adds a new extract-design skill that extracts the complete design language from any website URL.

What it does

npx designlang https://stripe.com

One command → 8 output files:

File Purpose
*-design-language.md AI-optimized markdown — feed it to Claude to recreate the design
*-preview.html Visual HTML report with swatches, type scale, shadows
*-design-tokens.json W3C Design Tokens format
*-tailwind.config.js Tailwind CSS theme extension
*-variables.css CSS custom properties
*-figma-variables.json Figma Variables import
*-theme.js React/CSS-in-JS theme
*-shadcn-theme.css shadcn/ui theme variables

Key features

  • WCAG accessibility scoring — contrast ratio analysis for all color pairs
  • Multi-page crawling--depth flag for site-wide extraction
  • Component screenshots — captures buttons, cards, inputs, nav, hero
  • Design comparisondesignlang diff <A> <B>
  • Historical trackingdesignlang history <url>
  • AI-first output — the markdown file is specifically structured for LLM consumption

Why this fits the repo

This complements the existing frontend-design skill — where frontend-design helps build UIs, extract-design helps understand existing ones. Together they enable a workflow: extract a site's design system, then use it as context for building new interfaces.

Links

🤖 Generated with Claude Code

Adds a skill to extract the complete design language from any website
URL using Playwright. 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.

Includes WCAG accessibility scoring, multi-page crawling, component
screenshots, design comparison, and historical tracking.

npm: https://www.npmjs.com/package/designlang
GitHub: https://github.com/Manavarya09/design-extract

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant