Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 970 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 970 Bytes

Deployed on Chromatic

Setup

On ds-tokens:

  1. 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
  1. $ style-dictionary build generates css (variables/variables.css)

In this repo:

  1. use css variables from ds-tokens
  2. (some) css variables implemented in button, card, and bg
  3. npm start

To do

  • Import tokens json instead of copy-paste
  • Figure out shadows, border radii, and token naming
  • Automate transform & build