In this guide, you will learn how to convert Figma designs into production-ready Next.js code code in minutes using Kombai, a specialized frontend AI agent that's about to become your new best friend.
Before we jump in, here is what we will cover:
Understanding what Kombai AI agent is
Configuring your Tech stack
Generating and reviewing a code plan
Generating, running and previewing code
Analyzing output results
Here is a preview of the final results.
Understanding what is Kombai AI Agent
Kombai is a highly specialized AI agent built for frontend developme*nt,* designed to automate the conversion of Figma designs into clean, production-ready code.
It is a domain-specific agent, meaning its AI models are fine-tuned for the nuances of UI (User Interface) creation, making it more effective at this task than general-purpose coding assistants.
Here is a breakdown of Kombai key capabilities:
Multi-input support: Works with Figma designs, text instructions, images, or existing code
Tech stack aware: Supports 30+ frontend libraries including React, Next.js, Material UI, Tailwind, and more
Smart planning: Generates editable development plans before complex tasks using plan mode.
Codebase integration: Scans and reuses existing components and theme variables in your codebase.
Auto-fixing: Automatically fixes TypeScript and linting errors after generating code from Figma designs or images.
Sandbox preview: Run and test generated code in a local environment
Three modes: Plan Mode for code plan generation, Code Mode for code generation, and Ask Mode for codebase understanding.
Preview browser: Kombai browser lets you preview your app’s local deployment in the browser with built-in listeners so you can iterate fast by sending elements and errors back to Kombai as context.
You can learn more about Kombai AI agent here on Kombai docs.
Prerequisites
To fully understand this tutorial, you need to have a basic understanding of Next.js
A Kombai AI account (they have a free tier).
A Figma account with a design file you want to convert.
Visual Studio Code (or a supported IDE like Cursor).
A new or existing Next.js project.
Step 1: Setting Up Your Project and the Kombai Agent
In this section, you will learn how to set up your Next.js project and Kombai AI agent in your IDE (VS Code, Cursor, WindSurf, etc).
Let’s get started.
First, open your Next.js project in your IDE or set up one using the command below.
npx create-next-app@15.5.6 kombai-nextjs-app --yes
Then Install the Kombai AI extension from the marketplace, as shown below.
Once the Kombai extension is installed, click Sign In button in Kombai. Then you will be redirected to the Kombai website to Sign up or log in to your Kombai account.
After signing in, you will be redirected back to the IDE.
Step 2: Scan and Configure your tech stack
Once you have set up your project and the Kombai extension in your IDE, configure your tech stack.
The Kombai agent offers a wide range of tech stacks which lets you generate code that aligns with your workspace’s requirements.
In this case, our Tech stack will be Next.js, and TypeScript. To configure your tech stack, follow the steps as shown below and then save the configuration.
Step 3: Define Code Generation Rules
After scanning and configuring your tech stack, set persistent instructions for Kombai using rules and Agents.md files. The rules provide project level instructions to Kombai in order to enforce specific coding standards, architectural patterns, and output formats
To set the rules or instructions, create a AGENTS.md file in your project and add the project rules or instructions.
You can generate the project instructions by first taking screen shots of your Figma design, as shown below.
Then navigate to Google Gemini, add the screenshot to the chat and generate the instructions using the prompt below.
Give me a prompt for generating a Next.js + TypeScript + Tailwind css web app
from the provided Figma designs. Describe structure of each page section in
detail
Once the instructions have been generated, add them to your AGENTS.md file, as shown below.
After that, Kombai automatically picks up the **AGENTS.md** file stored, as shown below.
Step 4: Connect Figma and add your Figma design to Kombai
Once you have defined code generation rules, connect your Figma account with Kombai in order to access your Figma design and generate code based on them, as shown below.
Once you have connected your Figma account, copy your Figma design link, and add it to Kombai, as shown below.
Step 5: Generate, and review code plan
After connecting your Figma account and adding your Figma designs to Kombai, use Kombai plan mode to generate a detailed code plan for the given input before starting the code generation, as shown below.
You can learn more about Kombai plan mode here on Kombai docs.
Step 6: Generate, Run and Fix Code Errors
Once the coding plan is approved or updated, Kombai will generate the code based on the plan, and auto-fix any TS or linting errors found in the generated code, as shown below.
After that, Kombai will run the development server and you can fix any build errors, as shown below.
Step 7: Preview your App using Kombai Browser
After generating code and fixing errors, run the code in Kombai Browser to preview the generated code.
If you find any visual mismatches in the preview, you can tag DOM elements and suggest Kombai to make the necessary changes. Kombai will regenerate the code accordingly, as shown below.
Step 8: Analyzing Kombai Figma Design to Next.js Code Output Results
Once you have run and previewed your app, analyze the generated code and the UI to make sure it is close to what you wanted.
From the output results, Kombai gives you clean, semantic JSX that a human would write since the agent understands layout and structure, not just layers.
Kombai gets you 80-90% of the way where it builds the perfect UI scaffolding, which is the most laborious part. You, the developer, are still needed for the last 10-20% and that's the fun part.
Also, as you can see from the preview results below, Kombai was able to generate frontend UI that is pixel perfect with the Figma design. The code only requires minimal tweaks to match the desired UI design.
What Differentiates Kombai from other Figma Design to Code tools
After using general coding agents, MCPs and Kombai to convert Figma designs into Next.js Code, Kombai significantly outperforms these other AI tools in building UX & UI from Figma, images, or text based prompts as shown below in benchmarks for real-world frontend tasks.
Here are the key reasons for its high-quality output:
-
"Human-Like" UX Interpretation:
- Unlike older tools that required strict layer naming or auto-layout in Figma, Kombai uses deep learning models to understand the design visually, similar to how an experienced human developer would.
- It intelligently infers structure, component boundaries, spacing, and layout hierarchies even from messy or non-ideal design files.
-
Workflow Integration and Safety:
- Kombai integrates directly into developer IDEs (like VS Code).
- Planning: For complex tasks, it generates an editable development plan (often in Markdown) before writing code.
- Sandbox Preview: It can spin up a local development server to preview the generated UI in isolation to validate the output before it touches your main codebase.
- Error Correction: It automatically attempts to fix linting and TypeScript errors, and you can feed runtime errors back to the agent for correction.
-
Codebase Awareness:
- It can analyze your existing repository to detect your current tech stack, styling frameworks, and component libraries. This allows it to generate code that is consistent and integrates seamlessly into your project's architecture.
In essence, Kombai acts as a highly specialized AI partner for frontend teams, taking on the task of building the user interface shell so human developers can focus on complex application logic and unique user experiences.
Conclusion
In conclusion, Kombai AI agent changes the developer's role where it eliminates the most time-consuming, least creative part of frontend development.
Note that this isn't about replacing developers but upgrading their frontend developement workflow.
You are no longer a translator for a designer but a reviewer and integrator of high-quality code, which allows you to move 10x faster and focus on what actually matters: your app's logic, state, and data flow.
Stop hand-coding your UI boilerplate. Grab a free Kombai account, install the VS Code extension, and try converting one of your own Figma frames.
You won't just be surprised by how much time you get back, you will change how you approach frontend development.






Top comments (0)