Skip to main content
Question

Getting Typography Styles from a Library


Elliott_UX

So, with the latest Typography variables release, I was kinda hoping that they’d also update the Figma API to get access to them more easily - particularly from team libraries (design system).

I’ve checked the docs and from what I can tell you can only getLocalTextStylesAsync (https://www.figma.com/plugin-docs/api/figma/#getlocaltextstylesasync), which gets the styles local to a document, but not ones from a library (I assume).

I can see they’ve added some docs around working with Typography variables (Working with Variables | Plugin API), but these are all individual variables, whereas the Style is made up of multiple of these.

I’m looking to achieve something similar to what I’ve done with other types of variables, whereby a user can simply choose a text style from a dropdown. And then this gets applied to appropriate textNodes.

I just wanted to check that I’m not missing something obvious.

Thanks in advance.

This topic has been closed for replies.

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