Skip to main content

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?

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).