@pinonoir/sds-tokens
v2.1.0
Published
Design tokens generated with Style Dictionary
Downloads
69
Readme
Super Design System - Global and Theme Design Tokens
This project is a Style Dictionary configuration to generate design tokens for Cadence Design System. Please visit Style Dictionary's new docs site for the latest updates.
Notice: This code has been customized to output CSS Custom Properties. To view all the possible Style Dictionary configurations visit API methods.
Initial setup
Install the project dependencies via the CLI command:
pnpm installProject structure
Project file and folder structure:
/tokenscontains the design token input JS files (IMPORTANT! Only edit these files!)/libcontains the generated output files (This version is configured to output CSS custom properties)scripts/build.jscontains the build script used to parse the js files and generate the final output files for each brand theme (BCC, CDS, TSC)
Running the project
You can build the design tokens from the /tokens/ folder by running:
pnpm buildThe generated tokens are saved in the /lib folder, and organized by target application (i.e. BCC, CDS, TSC).
License
This project is under [MIT license]
