On ds-tokens:
- polkadot.json tokens exported from figma -> transformed by token transformer to be usable by style dictionary, export light or dark mode like this:
$ token-transformer polkadot.json polkadot-transformed.json global,space,typography,light --expandTypography
or$ token-transformer polkadot.json polkadot-transformed.json global,space,typography,dark --expandTypography
$ style-dictionary build
generates css (variables/variables.css)
In this repo:
- use css variables from ds-tokens
- (some) css variables implemented in button, card, and bg
- npm start
- Import tokens json instead of copy-paste
- Figure out shadows, border radii, and token naming
- Automate transform & build