Skip to main content
Question

How to swap libraries via local variants


rodlouzada

Hello all, I’m trying to set some variants to swap between libraries when I drag a frame into another section, but when I try to reach all libraries , it does’t list my libs. Is it a bug or something?

This topic has been closed for comments

4 replies

Emmanuel8
  • 20 replies
  • October 20, 2023

Hey, there. Is your library published?


Hey @rodlouzada ! In order to use the same library between different files, you need to publish your library and import it to the file you want the library to be at.

You can check out how to publish your library here.

You can import the library going to the file, assets, library icon, and select the published library.

Hope this helps!


rodlouzada
  • Author
  • 1 reply
  • October 20, 2023

Yup! All published. I’m using both libraries in other files, they are showing in assets an all. But when I go to the variants, it doesn’t show nothing.


Celine_D
Figmate
  • Community Support
  • 3418 replies
  • October 25, 2023

Hi Rodrigo! Can you also make sure that the variants for each set have the same names so the swap can work? (more information here: https://help.figma.com/hc/en-us/articles/4404856784663-Swap-style-and-component-libraries#swap)

If this still doesn’t work, would you mind reaching out to our team and, please provide a link to your file and share it with support-share@figma.com (so they can try to replicate it to check if it is a bug) here: https://help.figma.com/hc/en-us/requests/new Thank you!


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