This project converts Figma design tokens to Flutter code.
Note: This parser supports only folders of JSON design token files. Multi-file support assumes that the input folder contains the following files:
- JSON token files
- $metadata file
- $themes file
To install the dependencies, run:
npm install
To run the script, use the following command:
node index.js [options]
--input=<path>
: Path to the input themes file (e.g. : 'path/to/input/$themes.json')--output=<path>
: Path to the output folder (default: generated/)--theme=<name>
: Filter themes by group name--help
: Display this help message
To convert Figma design tokens to Flutter code, you can use the following command:
node index.js --input='path/to/input/$themes.json' --output=path/to/output --theme=themeName
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.