Skip to main content
Question

Get style name using figma api

  • November 3, 2022
  • 2 replies
  • 612 views

yumyumnyang

Hi guys
when I was developing figma plugin, I found this issue.

why figma plugin returns style name in different ways?
there are paint styles in the folder named “Users”,
and some of them have blank in style name, but others don’t

if I use trim method, I can fix bug in my plugin
but I just want to know why this happens

image

2 replies

Gleb
  • Power Member
  • 4708 replies
  • November 3, 2022

One name was edited manually, another one was done via a plugin or in an older version of Figma. If you edit all of them manually, they will all have the same look.


yumyumnyang

thank you for your help! I deleted that style and made the same style, I worked fine.


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