Skip to main content
Question

How to swap libraries via local variants

  • October 19, 2023
  • 4 replies
  • 1025 views

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 replies.

4 replies

Emmanuel8
  • October 20, 2023

Hey, there. Is your library published?


MartinBajac
  • New Member
  • October 20, 2023

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
  • 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_
Figmate
  • Community Support
  • 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!