Skip to main content
Dangxiaorui
New Member
February 21, 2025
Question

how to obtain all textStyles in teamLibrary?

  • February 21, 2025
  • 1 reply
  • 99 views

There is a node in the current file that uses local textStyle. I want to replace it with textStyle from teamLibrary.
At present, I can obtain all textStyles locally based on getLocalTextStylesSync(). So how can I obtain all textStyles in teamLibrary?

This topic has been closed for replies.

1 reply

tank666
February 21, 2025

getLocalTextStylesSync(). So how can I obtain all textStyles in teamLibrary?

getLocalTextStylesAsync()

Open the library file and use the above method from the Plugin API or use the REST API (GET team styles and/orĀ GET file styles endpoints).

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank