@shanepadgett/design.md
v0.4.0
Published
CLI and library for design documents with structured tokens.
Downloads
619
Maintainers
Readme
Run with npx
npx --yes @shanepadgett/design.md --helpValidate a design file
npx --yes @shanepadgett/design.md lint DESIGN.mdTreat warnings as failures:
npx --yes @shanepadgett/design.md lint --strict DESIGN.mdExport tokens
Export CSS custom properties:
npx --yes @shanepadgett/design.md export --format css --out design-tokens.css DESIGN.mdExport Tailwind-friendly CSS:
npx --yes @shanepadgett/design.md export --format css-tailwind --out theme.css DESIGN.mdUse --force to overwrite an existing output file.
Migrate legacy files
Preview migration output:
npx --yes @shanepadgett/design.md migrate DESIGN.mdUpdate the file in place:
npx --yes @shanepadgett/design.md migrate --write DESIGN.mdPrint the spec
Print the full human-readable spec:
npx --yes @shanepadgett/design.md specPrint the compact agent-oriented spec:
npx --yes @shanepadgett/design.md spec --agentLibrary API
import { exportDesignMd, lintDesignMd, parseDesignMd } from "@shanepadgett/design.md";Contributing
See CONTRIBUTING.md.
