8/21 demo: Building component libraries from Figma with AI

Announcing Visual Copilot - Figma to production in half the time

Builder logo
builder.io
Contact sales

8/21 demo: Building component libraries from Figma with AI

Announcing Visual Copilot - Figma to production in half the time

Builder logo
builder.io

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

Generate code from your Figma designs by importing designs to your Fusion Space with the Builder Figma plugin.

Go from Figma to code in just three steps:

  1. Export your Figma designs with the Builder Figma plugin.
  2. Import your Figma design to a Fusion Space or your codebase with Builder CLI.
  3. Customize your code according to your framework and code styles.
Diagram demonstrating that with Figma and Builder you can generate code to put within your codebase.

To install the plugin:

  1. Within Figma, select Plugins from your toolbar and then Manage plugins.
  2. Search for Builder.io within the Plugins & widgets tab.
  3. Choose the Builder.io plugin and then click the Save button.

Alternatively, visit the Builder Figma plugin page and install from there.

Builder Figma Plugin installation page in Figma, with the text "Click Save" and an arrow pointing towards the Save button.

When exporting your design, there are two options: Smart Export and Classic Export.

Tip: For best results, use Figma's auto layout feature whenever providing a Figma design to Builder.

If you haven't already, connect to your Fusion Space from within the Builder Figma plugin. With the plugin open:

  1. Click the Login button in the bottom-left corner of the plugin's window. This brings you to a authentication page within Builder.
  2. Select the Fusion Space you wish to connect to the Builder Figma plugin.

Once complete, you should see the name of your Fusion Space in the bottom-left corner of the Builder Figma plugin.

Builder Figma plugin authentication portal, which requires the selection of a Fusion space.

To export your Figma design to your Fusion Space, click the View Code in Builder button. This will create a new content entry for you within your Fusion Space.

Once you have your design within a Develop Space, click the Develop toggle and then click Generate Code. This will generate code based on your design.

There are many ways to customize the code output from Builder. For example:

  • Update the Generated Code settings, such as shifting the framework, styling, language, or testing framework.
  • Provide general instructions or examples of your own code within the Instructions section.
  • After code generation, prompt Builder's AI to make whatever changes you desire through the text input at the bottom of the page.

After generating code, you can copy the files directly into your codebase manually.

If you prefer to let Builder integrate your code for you, click the Sync Code button. This will provide you with a script for the add command from the Builder CLI.

Copy the command and then:

  1. Navigate to your project's directory on the command line.
  2. Paste the command provided from the Sync Code button.
  3. Choose where the files should be generated.

The Builder CLI will create new files within the chosen directory.

There are several ways to customize your code output. See Code Generation for a deep dive into the customization options available to you from within Develop tab.

Was this article helpful?

Product

Visual CMS

Theme Studio for Shopify

Sign up

Login

Featured Integrations

React

Angular

Next.js

Gatsby

Get In Touch

Chat With Us

Twitter

Linkedin

Careers

© 2020 Builder.io, Inc.

Security

Privacy Policy

Terms of Service

Get the latest from Builder.io

By submitting, you agree to our Privacy Policy

  • Fusion

  • Publish

  • Product Updates

  • Figma to Code Guide

  • Headless CMS Guide

  • Headless Commerce Guide

  • Composable DXP Guide

Security

Privacy Policy

SaaS Terms

Compliance

Cookie Preferences

Gartner Cool Vendor 2024