Open-source project
figma/code-connect avatar
figma/code-connect

Code Connect swaps Dev Mode snippets for your real component imports

A tool for connecting your design system components in code with your design system in Figma

1,595 stars127 forksTypeScriptMIT

At a glance

What is it?
Code Connect is Figma's MIT licensed CLI that replaces autogenerated code examples in Dev Mode with snippets pulled from your actual design system source, with a mapping from code properties back to Figma props. Framework-specific parsers are deprecated and template files are now the only maintained path.
Who is it for?
Use Code Connect if your design system already exists as code in a repository and your engineers keep pasting wrong examples into Figma, because the value is entirely in pointing Dev Mode at your real imports. Do not start a new Code Connect setup on parsers, since the README states framework-specific parsers will no longer receive updates or support and points at the templates migration guide.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 9 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on October 23, 2026, and from our analysis. They are not legal advice.

Editorial analysis

Parsers are dead, template files are the only maintained path

The most important line in this README is a warning, and it sits at the very top. Framework-specific parsers will no longer receive updates or support, and template files are now the only actively maintained way of using Code Connect. A migration guide is provided at the Figma developers site under code-connect/templates-migration-guide.

This matters if you have encountered Code Connect before. The parser approach read a component's source to work out its props, which was convenient and which produced good results for well typed React components. It is now on its way out. Anything you evaluate today should be built on template files, or you will write a parser configuration and then migrate it.

A template file is described as framework-agnostic, representing any code snippet with full control over how components appear in Dev Mode. The trade is direct: you stop inferring props from source and start declaring them. That is more typing up front and considerably less magic, and it is the reason the tool can claim to be type-safe and extensible across five different target frameworks.

The problem is wrong snippets in Dev Mode, not a missing design system

Read the description carefully and you will see the scope is narrower than it first appears. Code Connect connects design system components in code with the design system in Figma, and its stated effect is that Figma's Dev Mode displays true-to-production code snippets from your design system instead of autogenerated code examples.

The pain being solved is therefore a documentation defect, not a design process defect. A designer opens a button in Dev Mode and gets a snippet approximating the props, which someone then pastes into a pull request and gets wrong. The README frames the intended use as driving consistent and correct adoption of an existing design system across design and engineering.

If your problem is that your design system components are not implemented yet, or that your design tokens are not systematic, Code Connect does nothing for you. It has nothing to say about naming, structure or coverage of the design system itself. It is a bridge for a design system that already exists in both places.

The second capability is the reverse mapping: Code Connect also supports mapping properties from code to Figma, enabling dynamic and correct examples. So the mapping is bidirectional in intent, from Figma props to code and from code back to Figma.

Five framework integrations, and where their guides live

The README lists framework-specific integrations for React and React Native, Storybook, HTML covering Web Components, Angular and Vue, SwiftUI, and Jetpack Compose. Five targets, and the repository layout matches them: `react/`, `swiftui/`, `compose/`, `cli/`, `docs/` and `scripts/` at the root.

The presence of `Package.swift` and `Package.resolved` alongside a TypeScript project is worth noting. The repository is primarily TypeScript, but it is also a Swift package, which points at the CLI having a native component alongside the JavaScript one. Whether you build from source or consume the published CLI is not stated in the README.

For prop mapping and variant support, the README directs you to separate integration guides rather than documenting them inline: React at figma.com/code-connect-docs/react, HTML at figma.com/code-connect-docs/html, SwiftUI at figma.com/code-connect-docs/swiftui, and Jetpack Compose at figma.com/code-connect-docs/compose. The React guide covers React Native as well. The general entry point for setup is the Code Connect documentation at developers.figma.com/docs/code-connect/.

The repository also carries CHANGELOG.md, CONTRIBUTING.md, LICENSE and a `.github/` directory. Releases follow a plain semver line: 2.0.2 on 2026-10-14, 2.0.1 on 2026-09-10, and the 2.0.0 major on 2026-08-18.

It is MIT licensed, but the seat requirement is the real constraint

Two constraints sit next to each other and get confused. The licence is MIT, which permits use, modification and redistribution of the licensed code subject to its notice requirements. The availability constraint is separate: the README states Code Connect is available on Organization and Enterprise plans and requires a full Design or Dev Mode seat to use.

That is a procurement question before it is a technical one. On a free or individual plan the tool cannot be used regardless of what you can build from the repository. On an Organization plan you need a full seat, which is a broader requirement than a person who merely opens Dev Mode occasionally might meet.

For an engineering team, this is the filter to apply first. Check each user's plan and seat eligibility before anyone writes a template file.

The MIT licence also applies to the code only. Connecting to Figma's servers is a service interaction governed by your Figma agreement, which is a separate document from LICENSE and is not covered here.

Where Code Connect falls short

The clearest limitation is the one the README already admits: the parser path is abandoned. Any team that started on parsers has a migration ahead, and the cost of that migration is not quantified anywhere in the repository. Template files also shift work to you. A parser inferred prop mapping from an existing typed component; a template requires you to declare the mapping, which means keeping it current as the component evolves. Nothing in the documentation describes how staleness is detected.

The second limitation is scope. Code Connect changes what appears in Dev Mode. It does not validate that the component a designer is looking at matches what engineering shipped, does not check props at build time, and does not appear to run in CI. If your drift problem is that a component was deleted two quarters ago and Figma still shows it, Code Connect will not surface that.

A third is the framework list itself. React, React Native, Storybook, HTML with Web Components, Angular and Vue, SwiftUI, Jetpack Compose. If your UI is Svelte, Solid, or a native platform outside Apple and Android, there is no named integration, and the framework-agnostic template route becomes your only path with no documented prop mapping help.

How to evaluate it on one component

A reasonable trial is deliberately narrow, and the README's structure suggests it. Start with the Getting Started guide at developers.figma.com/docs/code-connect/, which the README says walks through setting up Code Connect and publishing your first components using template files. Publish one component, the one developers paste most often.

From there, use the React integration guide if you are on React, since React is both the best documented target and the one the parser era optimised for. Add variant support, which the guides cover separately from basic prop mapping, because a component with variants is where a naive snippet fails visibly.

Then check the two things the tool does not do. Verify that the Dev Mode snippet actually compiles when pasted into your repository, using your real import paths rather than the placeholder ones a default template produces. And verify the reverse mapping by changing a Figma prop and confirming the snippet updates, which is the half of the feature that is easy to leave untested.

If the snippet still drifts after that, the problem is upstream of Code Connect and the tool is not the answer.

Editorial conclusion

Use Code Connect if your design system already exists as code in a repository and your engineers keep pasting wrong examples into Figma, because the value is entirely in pointing Dev Mode at your real imports. Do not start a new Code Connect setup on parsers, since the README states framework-specific parsers will no longer receive updates or support and points at the templates migration guide. Before adopting it, confirm the plan requirement, since it is limited to Organization and Enterprise plans and needs a full Design or Dev Mode seat, and check that your component props can be expressed as a mapping rather than only as template interpolation.

Frequently asked questions

What is Figma Code Connect used for?

It makes Dev Mode show true-to-production code snippets from your design system instead of autogenerated examples. It also maps properties from code to Figma so examples are dynamic rather than static.

Are Code Connect parsers still supported?

No. The README carries a warning that framework-specific parsers will no longer receive updates or support, and that template files are now the only actively maintained way of using Code Connect. A migration guide is linked for parser-based setups.

Which Figma plans include Code Connect?

Code Connect is available on Organization and Enterprise plans and requires a full Design or Dev Mode seat to use, according to the README.

Official sources

  1. figma/code-connect on GitHub
  2. Issues
  3. License: MIT
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/figma-code-connect.svg)](https://hysenlabs.com/projects/figma-code-connect)

Was this useful?