This is a Command-Line Interface (CLI) tool to validate Design Tokens against W3C standards. It allows you to check the structure and correctness of your JSON-based design token files, ensuring they meet the expected standards.
- Validate JSON files: Check if your design tokens are structured correctly.
- W3C Compliance: Ensures your tokens meet the W3C design token standards.
- Easy-to-use CLI: Simple commands to validate design token files directly from the terminal.
To use the design-token-validator-cli
tool, you need to install it in your project. You can install it via npm.
npm install design-token-validator-cli --save-dev
Once installed, you can use the design-token-validator-cli tool in your terminal. The CLI currently supports the validate command, which checks if a design token JSON file is valid.
Command: validate
This command checks the validity of a design token JSON file.
npx design-token-validator-cli validate <file-path>
Arguments
- : The path to the design token JSON file that you want to validate.