FigmaFlet is a tool that generates Flet UI code directly from Figma designs. It streamlines the process of transforming your Figma prototypes into production-ready Python code using the Flet framework.
If this project resonate with you, consider supporting its development with a donation. Your contributions will help me maintain and enhance this project.
git clone https://github.com/Benitmulindwa/figmaflet.git
cd figmaflet
pip install -r requirements.txt
pip install figmaflet
python -m figmaflet.gui
The generated code is saved to your specified output path.
Command-Line Interface (CLI) Once installed, use the CLI to generate Flet code:
figmaflet --apitoken YOUR_API_TOKEN --fileurl YOUR_FILE_URL --output YOUR_OUTPUT_PATH
You will need your Figma API token to access design files. Generate your key by visiting your Figma account settings.
Provide the Figma file URL containing your design; This is your figma project's URL.
Contributions to FigmaFlet are highly welcomed!
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.
Benit Mulindwa - GitHub
For questions, suggestions, or feedback, feel free to open an issue or reach out to mulindwabenit@gmail.com. Connect with me on LINKEDIN.
$ claude mcp add FigmaFlet \
-- python -m otcore.mcp_server <graph>