Style once, use everywhere.
"A Style Dictionary uses design tokens to define styles once and use those styles on any platform or language. It provides a single place to create and edit your styles, and exports these tokens to all the places you need." - Amazon
Run:
npm run build
npm run test
npm run ci
Using Tokens Studio to update tokens directly from Figma is welcomed. Sometimes, Tokens Studio may change or add $metadata and $theme tokens that had already been defined. In case this happens, we've added *.original to assist you in reverting back to how build-tokens is expecting these files to be configured.
https://github.com/amzn/style-dictionary
https://github.com/tokens-studio/sd-transforms
There is two publish subsystems, one is to npmjs and the other is to github repo package
Still work in progress:
- currently missing cleanup prior to publishing latest tag
- needs to publish when a version is cut (including incrementing package.json version if not same)