cds-design-tokens v1.1.0
CDS Design Tokens
This project is a Style Dictionary configuration to generate design tokens for Cadence Design System.
Notice: This code has been customized to work for all of Stretto's brands (AW, BCC, CP, TSC, TW) and platforms (Web), which can be exteded and built upon for additional platforms in the future. To view all the possible Style Dictionary configurations visit API methods.
Initial setup
Install the project dependencies via the CLI command:
yarn install style-dictionaryProject structure
Project file and folder structure:
/tokenscontains the design token input files (in JSON format)/distcontains the generated output files (This version is configured to output JS, CSS, & SCSS files)sd.config.jsis the script used to generate the output files
Editing the JSON files
• Install Figma Tokens plugin
Running the project
You can build the design tokens from the /tokens/ folder using the CLI command:
yarn buildYou can automatically re-build the tokens at every change using the command:
yarn watchThe generated tokens are saved in the /dist folder, and organised by target file type/format.
License
This project is under MIT license