Skip to main content
Question

Swap variables in library level

  • January 17, 2025
  • 1 reply
  • 90 views

Petry Oliveira

I need help with swapping variables for a new library on Figma
I’m creating a design system that needs to swap the associated branding: colors, fonts, corner-radius, and border-stroke to be switched out. And the way that we do it on the component level is by switching the libraries (to the new ones), but Figma’s feature “swap libraries” doesn’t work with variables, only with styles and components.
I tried to find a plugin that could do it properly, but the plugins that I found only change the variables available on the page, and don’t change directly the variables pointed on the variables panel.
Has anyone faced the same issue? How did you fix it?

1 reply

Gustavo_Borges1

Hey,

I've been using this plugin:

https://www.figma.com/community/plugin/1334258818515407420

There are other plugins that do the same.

It is not a fully reliable solution as you have noticed. There is no workaround for the fact that the variables will change back when you swap a variant, for instance. 

This is a shortcoming that Figma is aware of since they released Variables and has announced a feature that will address these needs (video from Config 2023). I'm hoping that they release this feature in Config '25.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings