Skip to main content
Question

Code Connect variant matching stopped working

  • February 9, 2026
  • 5 replies
  • 126 views

Valentina Lopez

We’re running into an issue with Code Connect that started last Friday.

We’re currently rebuilding our Design System, and up until last week we were using Code Connect successfully to map Figma components to code in our GitHub repo. Since last Friday, variant restrictions no longer match as expected, so the intended use cases/examples don’t appear even though the file still publishes without errors.

What we observe

  • Publishing the .figma.tsx file succeeds.

  • Repo access/permissions appear unchanged (Figma still has access to the repo).

  • The Code Connect example that should match a specific variant combination never shows.

  • This exact setup was working correctly before last Friday.

Example:

In our .figma.tsx file for the component (Checkbox), we restrict the example using variant values:

 

figma.connect( Checkbox, "FIGMA_NODE_URL", { variant: { "Text": "true", "Description Text": "false" }, imports: [ "import { Checkbox } from 'OUR_IMPORT_ROUTE'", "import { Label } from 'OUR_IMPORT_ROUTE'", ], props: { label: figma.string("↳ Label"), }, example: ({ label }) => ( <div className="am-flex am-items-center am-gap-2"> <Checkbox id="checkbox1" /> <Label htmlFor="checkbox1">{label}</Label> </div> ), }, );

The intention is: when the component variant values are Text = true and Description Text = false, Figma should display this example snippet. However, the example never appears, as if the variants are not being matched.

Question
Has anything changed recently in how Code Connect matches variants (Figma properties), or is there a known issue/regression affecting variant restriction mapping?

Happy to provide more details (component screenshot, node structure, variant property names/values, repo structure) if needed.

5 replies

Warren Shea
  • New Member
  • February 10, 2026

I can confirm the exact same behaviour on my end, which seemed to have started last Friday, as well. I notice it also fails when Booleans are involved. Also, if there are, for example 8 variants on the .figma.tsx file, it seems to consistently pick up the first variant.

Side note: While I can’t intentionally recreate it, when viewing Code Connect code in Figma, I’ve seen the proper variant code show up for a split second before being overridden by the incorrect code variant code. Again, I can’t recreate it, so I can’t really describe the circumstances that this occurs.


Celyn_L
Figmate
  • Figmate
  • February 11, 2026

Hi ​@Valentina Lopez — Celyn from Figma Community Support here.

Thanks for flagging this and for sharing the additional context. I’m sorry you’re running into issues with Code Connect and that the variant restrictions are no longer matching as expected.

I can see that you’ve already reached out via Ticket #1737352, and our Technical Quality team is currently investigating this.

Please keep an eye out for their response — we’ll continue working with you there to get everything back on track as quickly as possible.

Thanks again for your patience!


Celyn_L
Figmate
  • Figmate
  • February 11, 2026

Hi ​@Warren Shea — Celyn from Figma Community Support here.

Thanks for flagging this and for sharing your observations so clearly. I’m sorry to hear that you’re experiencing issues with Code Connect as well.

We’d like to take a closer look to better understand what’s happening on the back end. I’ve created a support ticket on your behalf so our Technical Quality team can investigate further and assist you directly.

Please check the inbox associated with your Figma account for a message related to case #1740626, and reply directly to that email with the following:

  • A screen recording showing the behavior end to end, with the full Figma window visible

Additionally, please share the impacted file with support-share@figma.com and grant “Can View” access. This will not impact your billing and will allow us to reproduce the issue and investigate with Engineering.

Thanks for your patience, we appreciate you working with us as we get this resolved.

 


Erica Pramer
  • New Member
  • February 11, 2026

I am also experiencing this issue and have ticket ID #1739900


djv
Figmate
  • Community Support
  • February 11, 2026

Hi ​@Erica Pramer, thanks for chiming in here! 

I’ve confirmed that our team has received your ticket #1739900 and escalated it on your behalf. The team will review and be in touch as soon as they can. 

As Celyn mentioned above, if you could also provide the team with a screen recording showing the behavior end to end, with the full Figma window visible. And share the impacted file URL with support-share@figma.com and with view access. This will allow our team to try and reproduce the issue and investigate further.