Install
openclaw skills install design-md-validatorValidate, diff, and export DESIGN.md files to ensure consistent design tokens, WCAG compliance, and design system integrity across projects.
openclaw skills install design-md-validatorValidate, 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
Before making UI changes:
lint to understand current design stateAfter UI changes:
diff to detect regressionslint to validate WCAG complianceFor new components:
{colors.primary}) over hardcoded values