0.0.9 • Published 2 years ago

gu-ds-base v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Base

Design tokens

⚔ Quick how to: update tokens

  1. Export json from Figma
  2. Replace json in tokens-from-figma.json
  3. Run yarn build
  4. Commit changes

🧱 Token folder structure

/
ā”œā”€ā”€ output/
│   ā”œā”€ā”€ tokens.css
│   ā”œā”€ā”€ tokens.scss
│   └── token.json
ā”œā”€ā”€ build-tokens.ts
ā”œā”€ā”€ config.ts
└── tokens-from-figma.json

We use style-dictionary to transform and format the tokens in ./tokens-from-figma.json.

In ./config.ts we decide which formats we want (css, scss, js and more), and in ./build-tokens.ts we can create formatters and use other utilities to change the output how we want.

The files in ./output are auto generated and should never be edited manually.

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago