/figma-to-flutter:figma-to-flutterfrom figma-to-flutter
Converts Figma designs to Flutter code with pixel-perfect accuracy by extracting exact values via Figma MCP and translating them 1-to-1 into Flutter widgets.
Ships in figma-to-flutter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Implement the Flutter screen or widget from $ARGUMENTS.
Every value, every color, every font weight — extracted from Figma, not guessed. This skill's entire purpose is eliminating the gap between design and implementation.
Before touching any code:
node-id=1-2 to 1:2. Confirm the target variant/state.This is the critical phase. All implementation decisions flow from data collected here.
get_design_context — structure, dimensions, styles, spacing, typography, colorsget_screenshot — visual ground truthget_metadata — when context is truncated or insufficient, drill into child nodesget_variable_defs — when design tokens or variables are referencedget_code_connect_map — when existing component mappings existFollow refs/design-spec-extraction.md. Every section gets a written spec with exact values. This spec becomes the contract — code must match it exactly.
Section: ProfileHeader (node-id: 42:891)
Layout: Column, padding: EdgeInsets.fromLTRB(16, 24, 16, 20), gap: 12
Title: fontSize: 18, fontWeight: w600, height: 1.33, letterSpacing: -0.27, color: 0xFF1A1A1A
Subtitle: fontSize: 14, fontWeight: w400, height: 1.43, color: 0xFF6B7280
Background: 0xFFF9FAFB, borderRadius: 12
If a value is missing or unclear — re-fetch from Figma MCP. Never fill in a gap with a guess.
Work section by section. Never implement the full screen at once.
For each section:
Layout:
Auto Layout horizontal → Row · vertical → Column · Fixed frame → SizedBox · Padding → EdgeInsets.fromLTRB with exact LTRB · Gap → SizedBox(height: N) or SizedBox(width: N) · Wrap → Wrap(spacing: N, runSpacing: N)
Color:
#RRGGBB → Color(0xFFRRGGBB) · with opacity → compute exact alpha byte · Project color constant → use only when it matches exactly
Typography: fontSize, fontWeight, height (= lineHeight / fontSize), letterSpacing — all from Figma. Project TextStyle → use only when every property matches. If you'd override more than one property, don't use the theme style.
Decoration: borderRadius exact values · BoxShadow with exact offset, blur, spread, color · Gradient with exact stops and colors
Assets: Download from Figma, verify format, register in pubspec.yaml. Never reference Figma temporary URLs. Use project's existing image/icon patterns.
Text content: Character-for-character match. Full-width/half-width, punctuation, spaces, line breaks — all exact.
Run flutter analyze and dart format --set-exit-if-changed . to verify zero errors and consistent formatting.
Use mcp__gemini__gemini-analyze-code to verify the implementation. Pass the recorded spec from Phase 2 alongside the code and ask Gemini to use extended thinking:
Review prompt:
Compare the following Figma design spec against the Flutter implementation code. Use extended thinking to thoroughly verify every numerical value (colors, font sizes, font weights, line heights, letter spacing, padding, gap, border radius, shadow values) matches exactly. Flag any value that differs, any value that appears to be guessed or approximated, and any Figma structure that was incorrectly simplified. Also check that the code follows Flutter/Dart best practices and project conventions.
Fix every discrepancy found.
Use mcp__gemini__gemini-analyze-code for a second pass focused on code quality:
Review this Flutter code for: widget tree efficiency, unnecessary rebuilds, proper const usage, correct widget lifecycle, accessibility basics (semantics labels on interactive elements), and adherence to the project's existing patterns. Use extended thinking.
flutter analyze reports zero errorsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kzytateishi/spikeee-plugins-marketplace --plugin figma-to-flutter