This repo demonstrates how does compiling tokens from .json
files to .css
or .scss
Figma tokens explanation
Figma tokens determine
https://github.com/arturuxui/rmr_tokens
- Write script for get tokens from remote repository
- Parse json tokens to css/scss
- Markup example page for demonstrate changes into tokens
- Setup Token transformer for correct parsing arrays
- Make this repo auto update. Write git hook for figma tokens auto deploy when changes is available
- Install all dependencies using
yarn
ornpm install
- Start the development server using
yarn dev
ornpm run dev
- Open up http://localhost:3000
- Run script for get and parse tokens using
yarn get-tokens
ornpm run get-tokens
- Open
src/assets/tokens
folder - Profit!
Copyright (c) 2023, Shell Vladislav