Originally inspired on: figma-tokens.
npm install @runroom/design-tokens --save-dev
Add a config file on the root directory of your project with the default name
designtokens.config.json
or design-tokens.config.json
. If you chose to call it differently,
specify a different config file while executing. You can find a template for your config file
here
Then execute:
npx design-tokens
: If you want to sync with figma.npx design-tokens platforms
: If you want to sync and compile assets.
You can specify a different config file name using the parameter --config-file=FILENAME
. For
example:
npx design-tokens --config-file=myfile.json
This project is under the MIT license.