Skip to main content
Question

Getting multiple local styles with the same name

  • June 17, 2024
  • 1 reply
  • 98 views

I request to get a file using https://api.figma.com/v1/files/${fileId}. I then request to get the styles: https://api.figma.com/v1/files/${fileId}/nodes/?ids=${styleNodes}.

However, in response to the nodes API request, I noticed multiple styles returned with the same name. In my case, I get many text styles with the same name. If I look at the Figma file, I only see the text style in question listed once. Although the names are duplicated, the details, such as line-height, are different.

Any ideas on why I would get multiple local styles with the same name?

This topic has been closed for replies.

1 reply

I know what’s going on. The “duplicate” styles are coming from other files. I see one of the styles with the remote attribute set to false and all the other ones set to true.

Is there a way to determine how/where the duplicate styles are referenced?


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