Basic Example
This example introduces design-lint with a single token and rule.
Steps
- Install dependencies:bash
pnpm add --save-dev @lapidist/design-lint - Start the DSR kernel and seed your token catalog:bash
design-lint kernel start --config-path designlint.config.json - Run the linter:bash
npx design-lint "src/**/*" --config designlint.config.json
Key files
designlint.config.json– enables thedesign-token/colorsrule.tokens.json– DTIF token catalog withprimaryandsecondarycolor tokens, referenced by the config.
Expected output
When a file uses a raw color not matching any token value, the linter reports an error.
Next steps
Read the Getting Started guide for more details.