首页/UI/UX 设计/extract-design
E

extract-design

by @manavarya09v
4.3(77)

自动从网站 URL 提取完整设计语言,生成颜色、字体、间距、阴影等 8 个设计系统文件

design-systemsui-designprototypingweb-scrapingautomationGitHub
安装方式
npx skills add manavarya09/design-extract --skill extract-design
compare_arrows

Before / After 效果对比

1
使用前

手动检查网站 CSS,逐个复制颜色值、字体样式和间距规则到设计文档,一个完整的设计系统需要 2-3 小时整理

使用后

输入网站 URL,自动解析并生成 8 个结构化设计文件,包含完整的颜色调色板、字体规范、间距系统和组件样式,5 分钟完成

description SKILL.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:

npm install -g designlang

Or use npx (no install required):

npx designlang <url>

Process

  • Run the extraction on the provided URL:
npx designlang <url> --screenshots

For multi-page crawling: npx designlang <url> --depth 3 --screenshots For dark mode: npx designlang <url> --dark --screenshots

  • Read the generated markdown file to understand the design:
cat design-extract-output/*-design-language.md

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.)

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)

Weekly Installs702Repositorymanavarya09/des…-extractGitHub Stars1.7KFirst SeenTodaySecurity AuditsGen Agent Trust HubWarnSocketWarnSnykWarn

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量1.6K
评分4.3 / 5.0
版本
更新日期2026年4月29日
对比案例1 组

用户评分

4.3(77)
5
31%
4
34%
3
17%
2
12%
1
6%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年4月29日
最后更新2026年4月29日
🎁 Agent 知识卡片