Plugin API: Allow access to Team Library Typography Styles


You can easily access variables via the Figma Plugin API. Meaning you can create ‘pickers’ to and populate them with team library variables for things like radius, spacing and colours.

With the advent of typography variables, you use a composite ‘style’ to group a number of variables together (i.e. to make a H1 or paragraph style). In order to create a picker for typography styles, based on my styles contained in my team library, currently I have to ask the user to select each variable individually (for font size, line height, font-family, font-weight, etc). Whereas what I’d like to be able to do is for them to simply select a single typography style.

Unless there is going to be a move towards composite variables (yes please), can the team library methods be updated to include a getStylesInLibraryAsync method?


Hey @Elliott_UX, thanks for the feedback!

We’ll pass this onto our team for consideration.

1 Like