Skip to main content

Agents, Meet the Figma Canvas: Codex + Figma MCP

With Codex (OpenAI) + Figma MCP, I built a complete SaaS landing page directly inside Figma using just a prompt — with auto layout, components, and variables.

Shantanu Nautiyal

Shantanu Nautiyal

Product & UI/UX Designer

March 2026Design Tools

View on LinkedIn

Agents, meet the Figma canvas. We’re moving from designing screens to executing systems. With Codex (OpenAI) + Figma MCP, I built a complete SaaS landing page directly inside Figma using just a prompt — with auto layout, components, and variables. A structured, editable design file.

What changed? Agents can now create real Figma files using components, variables, and styles, convert code → canvas, and sync canvas → code. The new loop is: Prompt → System → UI → Figma → Refine → Code.

How it works: (1) Connect Figma to Codex by enabling MCP and authorizing access so Codex can read/write Figma. (2) Write a structured prompt — for example: “Design a SaaS ecommerce landing page in Figma canvas with auto layout, components, variables, dark mode. Include hero, features, pricing, testimonials, CTA.”

(3) Codex builds a design system first: colors (variables), typography styles, and a component set (buttons, cards, etc.) — this is why output feels production-ready. (4) It generates UI in sections inside a 1440px wrapper frame (Hero → Features → Pricing → CTA) with auto layout and constraints applied using components, not rectangles.

(5) Code → Canvas converts UI into editable Figma layers — not screenshots, structured layouts. (6) Iterate in Figma, send the frame back, and Codex updates the implementation. Instead of one-way Design → Dev handoff, we get true Design ↔ Code sync. The canvas isn’t just for designing anymore — it’s where products start getting built.

Key takeaways

  • ◆Prompt like a design brief — always ask for Auto layout, Components, Variables, and Clean naming for better iteration.
  • ◆Building the design system first (variables, typography styles, component sets) makes generated UI production-ready.
  • ◆Design ↔ Code bidirectional sync delivers faster iteration, no pixel mismatch, stronger design systems, and better designer–dev collaboration.
#Figma#Codex#AIinDesign#ProductDesign#DesignSystems#Frontend#Automation

Related stories