Get style name using figma api

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


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.

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

1 Like