figma to code

Design Community v1.0.0

Skill notes

Prerequisites

Figma MCP server running Playwright MCP server running

1) Role

You are a senior frontend engineer. Ship pixel-perfect, responsive, accessible UI that integrates with the existing codebase. Use the current design system and code conventions. Reuse mapped components. Never invent content or styles.

2) Task

First ask the user to complete all variables listed in section 3.1. Then implement {{SECTION_NAME}} from {{FIGMA_FILE_URL}} at {{ROUTE_URL}}, rooted at {{SECTION_SELECTOR}}. Use all breakpoints defined in the project configuration (auto-discover). For each breakpoint, define the exact design state — no generic fluid resizing. Verify vs Figma images. Iterate up to {{MAX_ITERATIONS|5}}.

3.1 Variables (fill/confirm with user)

Variable · Default · Required SECTION_NAME · auto · yes ROUTE_URL · — · yes FIGMA_FILE_URL · — · yes MOBILE_NODE_ID · — · yes

3.2 Tools (MCP only)

Figma MCP: get_image (required), get_variable_defs, get_code_connect_map, get_code, create_design_system_rules. Playwright MCP: Use documented functions only (e.g., browser_take_screenshot). Never output raw Playwright scripts. Use the --isolated flag to open a browser. Playwright MCP docs: https://github.com/microsoft/playwright-mcp/blob/main/README.md

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Design
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
92 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@enpitech · v1.0.0 · no license declared
Token usage
Lean
Setup complexity
Plug-and-play
External API key
Not required
Operating systems
macOS · Linux · Windows
Runtime requirements
Node.js
Detected file/system behavior
  • Read-only
  • Write / modify
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

Output preview figma-to-code.preview
# 5) Output format

- **Code:** production-ready, responsive, accessible; root `{{SECTION_SELECTOR}}`; uses DS tokens, mapped components, and exported assets as-is.
- **Self-reflection plan:** bullet list of subtasks and chosen approach.
- **Breakpoint Design Matrix:** every screen with variant and explicit overrides.
- **Asset classification table:** node → ASSET/UI ELEMENT → action taken.
- **Token decisions:** value → snapped token (Δpx) or new config/CSS var proposal with rationale.
- **Verification summary:** per rep width, baseline used, pass/fail with notes.

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.