跳到正文
cccskills
免费在 GitHub 公开

extract-design

Extract the full design language from any website URL. 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. Also runs WCAG accessibility scoring. Use when user says 'extract design', 'get design system', 'design language', 'design tokens', 'what colors/fonts does this site use', or '/extract-design'.

中文简介正在准备中。当前显示原文说明。

集成工具Figma
查看安装方法

包含的文件(1)

  • SKILL.md3.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

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

  1. Read the generated markdown file to understand the design:
cat design-extract-output/*-design-language.md
  1. 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.)
  2. 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)

FilePurpose
*-design-language.mdAI-optimized markdown — the full design system for LLMs
*-preview.htmlVisual HTML report with swatches, type scale, shadows, a11y
*-design-tokens.jsonW3C Design Tokens format
*-tailwind.config.jsReady-to-use Tailwind CSS theme
*-variables.cssCSS custom properties
*-figma-variables.jsonFigma Variables import format
*-theme.jsReact/CSS-in-JS theme object
*-shadcn-theme.cssshadcn/ui theme CSS variables

Additional Commands

  • Compare two sites: npx designlang diff <urlA> <urlB>
  • View history: npx designlang history <url>

Options

FlagDescription
--out <dir>Output directory (default: ./design-extract-output)
--darkAlso extract dark mode color scheme
--depth <n>Crawl N internal pages for site-wide extraction
--screenshotsCapture component screenshots (buttons, cards, nav)
--wait <ms>Wait time after page load for SPAs
--framework <type>Generate only specific theme (react or shadcn)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when styling UI for planetscale.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

中文简介正在准备中。当前显示原文说明。

Manavarya09/design-extract42682026年10月9日 更新

Use when styling UI for posthog.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

中文简介正在准备中。当前显示原文说明。

Manavarya09/design-extract42682026年10月9日 更新

Use when styling UI for v0.dev — references the extracted design system tokens instead of inventing colors, spacing, or typography.

中文简介正在准备中。当前显示原文说明。

Manavarya09/design-extract42682026年10月9日 更新

Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

中文简介正在准备中。当前显示原文说明。

Manavarya09/design-extract42682026年10月9日 更新

Use when styling UI for coinbase.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

中文简介正在准备中。当前显示原文说明。

Manavarya09/design-extract42682026年10月9日 更新

Use when styling UI for replit.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

中文简介正在准备中。当前显示原文说明。

Manavarya09/design-extract42682026年10月9日 更新

查看 Manavarya09 的全部技能

报告此技能的问题