Introducing Visual Copilot 2.0: Make Figma designs real

Announcing Visual Copilot - Figma to production in half the time

Builder.io logo
Contact Sales
Platform
Developers
Contact Sales

Blog

Home

Resources

Blog

Forum

Github

Login

Signup

×

Visual CMS

Drag-and-drop visual editor and headless CMS for any tech stack

Theme Studio for Shopify

Build and optimize your Shopify-hosted storefront, no coding required

Resources

Blog

Get StartedLogin

‹ Back to blog

Design to Code

Figma to Code with Windsurf and Visual Copilot

February 10, 2025

Written By Vishwas Gopinath

Converting Figma designs into functional interfaces is typically a tedious process. Recreating every pixel-perfect design detail—fonts, spacing, responsive layouts, and interactions—in HTML, CSS, and JavaScript (or any other stack) is like retyping a book that's already been written.

The good news is that this level of manual work might finally be on its way out. The Windsurf and Visual Copilot integration eliminates this manual design-to-code work, freeing up time to focus on building features and delivering great products.

Windsurf

Windsurf is an AI-powered IDE developed by Codeium, built on top of Visual Studio Code. Its standout feature is the "Flow" technology, which maintains real-time sync with the workspace, enabling seamless AI collaboration across projects.

Visual Copilot is Builder.io’s AI-powered Figma to code toolchain that leverages AI models to convert Figma designs into React, Vue, Svelte, Angular, HTML, etc code in real-time. It can even reuse your existing components in the output and use any styling library or design system you need.

Getting started is straightforward:

  1. Install the Visual Copilot plugin
  2. Download Windsurf

Visual Copilot works with all popular frameworks like React, Vue, Svelte, and Angular. It also works with style tools like Tailwind CSS, Emotion and Styled Components. Whether you're building a simple landing page or a complex application, Visual Copilot can generate the code you need in your preferred tech stack. Here's how to use it:

Figma plugin search interface showing Builder.io AI-Powered Figma to Code plugin in the Plugins & widgets section.

Figma plugin search interface showing Builder.io AI-Powered Figma to Code plugin in the Plugins & widgets section.

In Figma, open the Actions menu from the toolbar, click the Plugins & widgets tab, search for "Builder.io AI-powered Figma to Code" plugin and run it.

You can also try the plugin from the Figma community page.

Select the design to convert, check the preview in the plugin, and click Export to Code. This starts the code generation process behind the scenes. Copy the generated command and paste it into the Windsurf terminal.

While you can start generating code right away, configuring AI rules helps produce code that better matches project standards:

  1. .windsurfrules: For project-specific customization in your workspace in Windsurf.
  2. .builderrules: To add custom instructions that will be automatically injected into the LLM prompt during code generation. Define anything from component naming conventions and state management patterns to error handling approaches and custom hook patterns.
  3. .builderignore: To exclude specific files or patterns from being included in the code generation process. This is especially useful for template files that shouldn't influence the generated code, legacy code that doesn't follow current standards, third-party code that might confuse the generation process, and test files or mock data.

.builderrules and .builderignore are Visual Copilot-specific and won't affect Windsurf’s code generation

Tell the AI what you're building. For example: "This is a signup form for new users."

Visual Copilot and Windsurf will then:

  • Analyze existing project files
  • Read .builderrules, .builderignore and .**windsurfrules** files to understand coding patterns
  • Generate code matching the project's framework and styling choices (React with Tailwind CSS for example)

This is where Windsurf's AI capabilities truly shine:

  • Cascade: Add more features to your code
  • Chat (⌘ + L): Ask questions about your code
  • Codeium Command (⌘ + K): Make quick changes

The real-time awareness feature means you won't need to repeatedly explain your context - Windsurf understands your actions as you make them.

  1. Use Auto Layout in Figma: When designing your components and layouts in Figma, always use Auto Layout. This helps Visual Copilot generate more accurate and responsive code that better matches your design intentions.
  2. Leverage Cascade memories: Use Windsurf's Cascade Memories to persist context across sessions. This helps maintain consistency in your code generation.
  3. Pin important context: For specific bits of code you want extra attention on, pin directories, files, repositories, or code context items as persistent context.

Integrating Visual Copilot with Windsurf saves you from copying designs into code by hand. You also won't need to switch back and forth between design and code to check measurements or fix layout problems.

Instead, your designs become working code in minutes. Visual Copilot creates the code, and Windsurf helps you fit it into your project perfectly.

It's a workflow that frees you to focus on building features that delight your users—and shipping them faster than ever.

  • What frameworks are supported? Visual Copilot supports React, Vue, Svelte, Angular, and more, while Windsurf works with any language VS Code supports.
  • Does this work with my existing codebase? Yes! Both tools are designed to integrate seamlessly with your existing projects. Windsurf keeps track of your code in real-time.
  • What AI models are available? Windsurf gives everyone access to Llama 3.1 70B. Paid users get Llama 3.1 405B, GPT-4, and Claude 3.5 Sonnet (which can understand images).

If you enjoyed this post, you might also like:

Introducing Visual Copilot: convert Figma designs to high quality code in a single click.

Try Visual CopilotGet a demo

Share

Twitter
LinkedIn
Facebook
Hand written text that says "A drag and drop headless CMS?"

Introducing Visual Copilot:

A new AI model to turn Figma designs to high quality code using your components.

Try Visual CopilotGet a demo
Newsletter

Like our content?

Join Our Newsletter

Continue Reading
Web Development12 MIN
Replace your JavaScript Animation Library with View Transitions
February 3, 2025
design to code8 MIN
Figma to Code with Cursor and Visual Copilot
February 3, 2025
Design to Code15 MIN
How to build React components with AI-powered design to code
January 30, 2025