A small Rust-powered utility that converts design token in form of a YAML file. Currently has 2 mode of translations:
- YAML to JSON.
- JSON to SCSS
Still largely WIP, but so far it's usable for my daily use.
- Install Rust, instructions here
- Clone this project
- Store the design token file you want to translate in the root of the project
- Run the project with
cargo run
followed by the type of file to translate, json or yaml. For example:
- To translate YAML to JSON
cargo run yaml
- To translate JSON to SCSS
cargo run json
- Governor Figma - Generates JS file from JSON gathered from Figma API
- Governor Generator - Generates React component from JSON gathered from Figma API