FROM FIGMA TO CODE
Reinvented by AI
THE PROBLEM
Design-to-code is still slow, manual, and painfully repetitive
Bottom line:�Today, converting Figma into real code is expensive, tedious, and far from automated — even in 2025
GOAL
Turn a Figma layout into real, working WP admin code — automatically
STARTING POINT
CHOOSING A FIGMA SOURCE
FIGMA MCP
{� "mcpServers": {� "Framelink_MCP_for_Figma": {� "command": "cmd",� "args": [� "/c",� "npx",� "-y",� "figma-developer-mcp",� "--figma-api-key=my-secret-key",� "--stdio"� ]� }� }
MCP PROBLEM AND SWITCHING STRATEGY
Problem
Solution
FROM JSON TO CODE
Then I asked Junie: ��“Make the PHP + CSS from this JSON as admin page content.”
�Junie generated:
HELPING JUNIE
Manual CSS tuning
Manual SCSS tuning
RESULT
A fully working admin UI page inside WordPress —�generated end-to-end from a Figma design, using only JSON + AI
CONCLUSION
RESOURCES
Resources
Prompts
1. duo_render_admin_page() contains dummy admin page content. The attached JSON is the Figma design for this page. Replace the dummy content with the provided FIgma design. Create PHP and CSS code by WordPress standards. Read this design thoroughly and implement each element on the page.��2. Change the order of <aside and <main��3. Check width of <aside and <main and correct. Then, check their internal content and make it exactly as in Figma��4. Update the content of the duo-panel__row duo-panel__row--picture with the attached Figma JSON��5. Update `duo-toggle__ui` styles in accordance with Figma attached��6. Add Navigation as the leftmost column to the `duo-layout`. The Figma design is attached.