← 返回
未分类 中文

Design MD Generator

Generate DESIGN.md files from any website URL. Extracts the complete visual design system — colors, typography, spacing, components, shadows — into a structu...
从任意网站URL生成DESIGN.md文件,提取完整的视觉设计系统(颜色、字体、间距、组件、阴影)并转换为结构化格式。
wavmson wavmson 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 295
下载
💾 0
安装
1
版本
#latest

概述

Design MD Generator

Generate structured DESIGN.md files from any website URL. The output follows the Google Stitch DESIGN.md format with 9 standard sections.

Workflow

Step 1: Capture the site

Use the browser tool to load the target URL and take a screenshot:

browser action=navigate url="<TARGET_URL>"
browser action=screenshot
browser action=snapshot

Step 2: Extract CSS tokens

Run the extraction script to pull all design tokens from the page's computed styles:

# From the skill directory
node {baseDir}/scripts/extract-tokens.js "<TARGET_URL>"

The script outputs a JSON file with:

  • All unique colors (background, text, border, accent)
  • Font families, sizes, weights, line-heights, letter-spacing
  • Border radii, shadows, spacing values
  • Component patterns (buttons, cards, inputs)

Step 3: Generate DESIGN.md

Using the extracted tokens + screenshot for visual context, write a DESIGN.md with these 9 sections:

#SectionWhat to capture
----------------------------
1Visual Theme & AtmosphereMood, density, design philosophy. Write like an art director describing the aesthetic.
2Color Palette & RolesEvery color with semantic name + hex + functional role. Group by: Brand, Background, Text, Semantic, Border.
3Typography RulesFont families with fallbacks. Full hierarchy table: role, font, size, weight, line-height, letter-spacing.
4Component StylingsButtons (primary/secondary/ghost), Cards, Inputs, Navigation, Badges — with all states (default, hover, active, disabled).
5Layout PrinciplesSpacing scale table, grid system, max-width, column count, whitespace philosophy.
6Depth & ElevationShadow system table (flat → raised → floating → overlay). Surface hierarchy list.
7Do's and Don'tsDesign guardrails. What makes this design system unique and what breaks it.
8Responsive BehaviorBreakpoints table, touch targets, collapsing strategy for nav/grids/typography.
9Agent Prompt GuideQuick color reference block + 2-4 ready-to-use prompts for common page types.

Writing Guidelines

  • Be specific: Use exact hex values, px sizes, font weights — not "dark blue" or "large text"
  • Be opinionated: Describe the atmosphere like a design critic, not a spec sheet
  • Name colors semantically: "Lobster Coral" not "Red 1", "Deep Sea" not "Background Dark"
  • Include states: Every interactive component needs default + hover + active + focus states
  • Show hierarchy: List surfaces from darkest to lightest, text from brightest to dimmest
  • Agent-ready prompts: Write Section 9 prompts that another AI agent can copy-paste to build matching UI

Output

Save the generated file as DESIGN.md in the target location specified by the user.

Optionally generate:

  • preview.html — A visual catalog page showing color swatches, type scale, and component samples
  • preview-dark.html — Same catalog on dark surface

Reference

See references/format-spec.md for the complete section-by-section format specification with examples.

See references/example-linear.md for a high-quality example (Linear's DESIGN.md).

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 17:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 217 📥 47,437
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 429 📥 116,839
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 330 📥 93,698