Skip to main content
ivan_guidea
Nov 6, 2023 7:34 AM UTC

Preferred values and libraries

There is an issue with “Preferred values” in components part of library files.
When copies of such a library are created, the components preferred values keep pointing to the source library file.

For example, say we have a “Source Library” with an “Icon” component in it. We set the component with preferred values for icons in that same library.
If we create a duplicate of that source library, rename it to say “Instance Library” - then the preferred values in the “Icon” component from that instance library will still point to the “Source Library”.

There is no indication that the paths to the preferred values are absolute and this might cause a lot of confusion.

Here for examples is the " Preferred values" documentation

Figma Learn - Help Center

I would say the paths to the “Preferred values” should be relative, when set to local components.

3 replies

Gayani_S
Figmate
Community Support
Nov 7, 2023 5:01 PM UTC

Hey Ivan, thank you for your post. Please don’t forget to upvote this.

Hardi_N
New Member
Dec 4, 2023 1:43 PM UTC

I just ran into the same issue.
I also tried the following

  • un-published the whole library
  • duplicate the library file
  • Open the duplicate file and find the component with preferred values

Now the preferred values list is empty in the duplicate file. It is not pointing anywhere.

bogdanovjn
New Member
Apr 27, 2024 6:12 PM UTC

Same issue… 🥲