> Validate, diff, and export DESIGN.md files for consistent design systems across projects.
DESIGN.md is a format specification (by Google Labs) for describing a visual identity to coding agents. It combines:
The skill uses @google/design.md npm package:
npm install -g @google/design.md
npx @google/design.md lint DESIGN.md
Checks:
broken-ref → error)contrast-ratio → warning)missing-primary → warning)section-order → warning)Output: JSON with findings
npx @google/design.md diff DESIGN.md DESIGN-v2.md
Detects:
npx @google/design.md export --format tailwind DESIGN.md > tailwind.theme.json
npx @google/design.md export --format dtcg DESIGN.md > tokens.json
npx @google/design.md spec
npx @google/design.md spec --rules
When working on UI components:
# Before editing a component, lint current state
npx @google/design.md lint design-md/markiosi/DESIGN.md
# After changes, diff to check for regressions
npx @google/design.md diff design-md/markiosi/DESIGN.md design-md/markiosi/DESIGN.md.new
# Export updated tokens
npx @google/design.md export --format tailwind design-md/markiosi/DESIGN.md > tailwind.tokens.json
lint to understand current design statediff to detect regressionslint to validate WCAG compliance{colors.primary}) over hardcoded values共 1 个版本
暂无安全检测报告