
Title: How to reach 95%+ accuracy for Figma-to-Flutter? (Tested MCPs and custom skills, stuck at 80%)
Hi everyone,
I’m working on a pipeline to automate Figma to Flutter code generation. My goal is to hit 90-95% accuracy (specifically layout precision, theme consistency, and widget structure), but I’m currently plateauing at around 70-80%.
I’ve explored and tested several repos and MCPs (Model Context Protocol), including:
- arinspunk/claude-talk-to-figma-mcp
- vkhanhqui/figma-mcp-go
- The "Figma Implement Design" skills from OpenAI and Xiaoland.
I even built a custom skill combining the logic from Xiaoland and OpenAI, but the output still requires significant manual cleanup—especially with complex Auto Layouts and nested components.
The issues I'm seeing:
- Context Loss: The LLM sometimes misses the relationship between deep-nested frames.
- Responsiveness: It struggles to translate Figma constraints into the correct
Flexible/ExpandedorLayoutBuilderlogic. - Styling: Hardcoded values instead of referencing a
ThemeDataor design tokens.
My Questions:
- Has anyone successfully integrated Figma Code Connect or Design Tokens into their Flutter workflow to boost accuracy?
- Are there specific "system prompts" or pre-processing steps (like flattening the Figma JSON) that helped you get closer to 95%?
- Is there a better way to map Figma's Auto Layout properties directly to Flutter's
Flexproperties without the LLM hallucinating the spacing?
I'd love to hear about any best practices or libraries you're using to bridge this gap. Thanks!
u/Emergency-Stretch938 — 15 days ago