Related Confluence article here: https://unbounce.atlassian.net/wiki/x/A4Dt1g
git clone https://github.com/unbounce/design-token-transformer.git
- From within the terminal,
cd
(navigate) to this folder. - Run
npm i
to install the dependencies.
To use an exported JSON file and transform it locally on your machine, follow the 3 steps below:
- Save the
.json
file you exported using the Design Token plugin to thetokens
folder (and remove the example files). - In the terminal
cd
(navigate) to this folder. - Run
npm run transform-tokens
. - 🎉 Your converted tokens should be in the build folder.