Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Figma Design – Figma Learn
  • Dev Mode
  • Turn designs to code

Code Connect

Written by Figma Man

Updated at June 19th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Administration – Figma Learn
    Manage files and projects Manage a team Manage your account Manage a Figma organization Manage Enterprise plan settings and permissions Billing Manage Figma in a school
  • Figma Design – Figma Learn
    Create prototypes Import and export Create designs Tour the interface Dev Mode Work together in files Build design systems Figma Draw
  • Get started – Figma Learn
    Set up your account Layers 101
  • FigJam – Figma Learn
    Import and export Run meetings Work on boards Tour the interface
  • Community – Figma Learn
    Explore the Community Creator tools and resources
  • Help – Figma Learn
    Troubleshoot Common questions Work with support
  • Work across Figma – Figma Learn
    Figma AI Work across Figma
  • Courses, tutorials, projects – Figma Learn
    Courses Projects
  • Figma Slides – Figma Learn
    Create and edit slides Present slide decks Tour the interface Import and export
  • Figma Buzz – Figma Learn
    Templates in Figma Buzz Create and edit assets in Figma Buzz Overview
  • Figma Make – Figma Learn
    Tour the interface Work with Figma Make
  • Figma Sites – Figma Learn
    Design a site Create webpages and breakpoints Make your site interactive Preview and publish a site Tour the interface
+ More

Table of Contents

Overview What's available? Privacy and Code Connect

Who can use this feature

Available on the Organization and Enterprise plans

Requires a Full or Dev seat

Code Connect is the developer bridge from your component codebase to Figma. With Code Connect, bring your design system component code directly into Figma's Dev Mode. Preview example components that mirror the framework of your production code.

Note: This is a general overview for approaching Code Connect as an organization. For implementation details and code samples, see the Code Connect developer documentation.

When using Code Connect, Dev Mode displays real world code snippets defined by your design system instead of the autogenerated code snippets that Dev Mode provides by default. In addition to connecting component definitions, Code Connect can also map properties from code to Figma, enabling dynamic and correct snippets.

Code Connect is especially useful when you have an existing design system and want to drive consistent and correct adoption of that design system across design and engineering.

Overview

The exact steps you take to set up Code Connect depend on the architecture of your design system and codebase. For example, if you use SwiftUI, you'll plan your approach to use the SwiftUI resources we provide.

Generally, your organization will follow these steps to get started:

  1. Plan the implementation. Usually this includes:
    • Identifying the requirements of your front-end developers, such as whether you need support for React or SwiftUI.
    • Identifying the components in your codebase that you want to integrate with Dev Mode.
    • Planning the configuration of Code Connect and the mappings of your components.
  2. Get the Code Connect repository. Code Connect supports:
    • React (or React Native)
    • HTML (Web Components, Angular, Vue, etc.)
    • SwiftUI
    • Jetpack Compose
  3. Implement the component mappings. The exact way you build the mappings will depend on your codebase and design system, but broadly the process involves mapping properties from your design system components to properties in Figma. This allows Code Connect to generate snippets of code that map the values in Figma to the architecture of your components, and then surface those snippets inside Dev Mode.
  4. Review in Dev Mode. In Dev Mode, review the Code Connect output with your developers and designers to ensure the practical usability of the component examples and that the representations are accurate.

To take full advantage of Code Connect, the developers responsible for your design system components should work with your designers to implement the mappings from your production codebase to Figma.

What's available?

To get started with Code Connect, check out the detailed steps we provide in the Code Connect developer documentation.

Code Connect supports:

  • React (or React Native)
  • HTML (Web Components, Angular, Vue, etc.)
  • SwiftUI
  • Jetpack Compose

Additionally, Code Connect provides some advanced features:

  • Integration with Storybook
  • Custom parsers
  • Template API

The Code Connect repository is available on GitHub.

Privacy and Code Connect

Figma only collects the minimum data needed to enable Code Connect in the interface. When you run figma connect using the Code Connect command-line interface, Figma gets the following data: 

  • The paths for components that are added
  • The repository URL where the Code Connect components are implemented
  • The properties and code in the .figma files

Figma logs only basic events for understanding Code Connect usage: when components are published or unpublished, and calls to get Figma data when using the command-line interface.

For more information about Figma's approach to privacy, see Figma's Privacy Policy.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Figma for VS Code
  • Use code snippets in Dev Mode
  • Link Dev resources to layers in Dev Mode
  • Guide to the Dev Mode MCP Server
  • Blog
  • Best practices
  • QR code generator
  • Color wheel
  • Colors
  • Color picker
  • Color palettes
  • Color palette generator
  • Color contrast checker
  • Font Library
  • Templates
  • Developers
  • Integrations
  • Affiliate program
  • Resource library
  • Reports and insights
  • Support
  • Status
  • Legal and privacy
  • Modern slavery statement
  • Climate disclosure statement
  • COMPARE
  • Sketch
  • Adobe XD
  • Framer
  • Miro
  • COMPANY
  • Events
  • Customers
  • Careers
  • Newsroom
Expand