Skip to content

This project converts Figma design tokens to Flutter code, enabling seamless integration of design assets into Flutter applications.

License

Notifications You must be signed in to change notification settings

bokri/figma-2-flutter-design-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Figma to Flutter Design Tokens

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

Table of Contents

Installation

To install the dependencies, run:

npm install

Usage

To run the script, use the following command:

node index.js [options]

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

Example

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

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

This project converts Figma design tokens to Flutter code, enabling seamless integration of design assets into Flutter applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published