Google Stitch最近推出了一个简单的方法:DESIGN.md。一个Markdown文件,放在项目根目录,Claude、Cursor、Copilot这些AI助手都能直接读取。
DESIGN.md是Google Stitch引入的新概念,一个纯文本的设计系统文档。AI助手读取后能生成一致的UI。

这个文件里面有颜色调色板、字体规则、间距尺度、按钮样式、网格系统等基础设计规范。不需要Figma导出,也不需要JSON配置文件。
DESIGN.md文件遵循Stitch格式,包含9个核心部分:
Markdown是大模型最擅长读取的格式,所以AI助手能直接理解你的UI应该长什么样。
---
name: DevFocus Dark
colors:
primary: "#2665fd"
secondary: "#475569"
surface: "#0b1326"
on-surface: "#dae2fd"
error: "#ffb4ab"
typography:
body-md:
fontFamily: Inter
fontSize: 16px
fontWeight: 400
rounded:
md: 8px
---
# Design System
## Overview
A focused, minimal dark interface for a developer productivity tool.
Clean lines, low visual noise, high information density.
## Colors
- **Primary** (#2665fd): CTAs, active states, key interactive elements
- **Secondary** (#475569): Supporting UI, chips, secondary actions
- **Surface** (#0b1326): Page backgrounds
- **On-surface** (#dae2fd): Primary text on dark backgrounds
- **Error** (#ffb4ab): Validation errors, destructive actions
## Typography
- **Headlines**: Inter, semi-bold
- **Body**: Inter, regular, 14–16px
- **Labels**: Inter, medium, 12px, uppercase for section headers
## Components
- **Buttons**: Rounded (8px), primary uses brand blue fill
- **Inputs**: 1px border, subtle surface-variant background
- **Cards**: No elevation, relies on border and background contrast
## Do's and Don'ts
- Do use the primary color sparingly, only for the most important action
- Don't mix rounded and sharp corners in the same view
- Do maintain 4:1 contrast ratio for all textAwesome DESIGN.md 项目里已经有54个现成的设计系统,都是从真实产品中提取出来的。

Stripe、Vercel、Linear、Notion、Claude、Cursor、Warp等知名产品的设计都在里面。每个设计系统都包含DESIGN.md文件和两个预览文件,一个亮色主题一个暗色主题,方便查看实际效果。
HyperDesign工具可以自动生成DESIGN.md文件。把Anthropic官网扔进去,16秒输出颜色、字体、间距规范,9秒生成结构化的DESIGN.md文件。
它不是简单的取色器,而是会分析设计语言。比如判断Anthropic的风格是克制的、学术的、借鉴印刷传统的。每个字号对应的行高字重都列得清清楚楚。
工具是开源的,以前大公司花几百万做的设计系统,现在25秒就能复制。
一位开发者分享:"把DESIGN.md放在Cursor项目根目录,Claude立刻开始尊重我的品牌token。终于,AI助手不再自己发明Tailwind样式了。"
另一位用户说:"这对小团队和个人项目太重要了。设计一致性过去需要全职设计师或没人读的品牌指南。现在一个Markdown文件在仓库里,每个接触你代码的AI工具都知道你的品牌长什么样。"
DESIGN.md文件一般在几KB到20KB之间,可以直接喂给Claude等大模型。这个方法的优点是把设计当作大模型能原生解析的文本格式,而不是强迫AI去解释Figma导出文件。
Awesome DESIGN.md:https://github.com/VoltAgent/awesome-design-md
hyperbrowser:https://github.com/hyperbrowserai/hyperbrowser-app-examples