Skip to content

dnlklmn/tokens-linked

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published