The DESIGN.md CLI: lint, diff, export and spec
The DESIGN.md CLI has four commands, run through npx with no install: lint, diff, export and spec. Together they turn the file from a passive document into something you can validate, compare and convert. $ npx @google/design.md lint DESIGN.md $ npx @google/design.md lint --format json DESIGN.md Lint catches broken token references, flags a missing primary color, and verifies WCAG contrast. It returns structured JSON and exits non-zero on errors, so it works in CI: { "findings": [{ "severity": "warning", "path": "components.button-primary", "message": "contrast 15.42:1 - passes WCAG AA" }], "s
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in