A starter kit that demonstrates one way to integrate design tokens into your designer/developer pipeline.
- Clone or download this repo.
- Install style-dictionary.
- Launch Figma and install the Design Tokenizer plugin.
- Use Design Tokenizer to export your design tokens. You can use this example design libary as a starting point.
- Save the json file to
style-dictionary/properties
. - If you haven't already, navigate to
style-dictionary/
and runnpm install
to setup dependencies. - Run
npm run build
to generate css variables, which are saved tostyle-dictionary/build/tokens.css
. - Copy-paste the content of
style-dictionary/build/tokens.css
intoexample-site/css/tokens.css
. - 💰💰💰.