I’m trying to build a Figma plugin to swap text styles from a library to another. Old styles and new styles have 1:1 mapping. My plugin knows all the mapping and was able to identify all the old styles in a file, but couldn’t swap with the new styles from another library. Cursor told me it’s because:
“Figma’s public Plugin API currently only exposes methods to read “local” resources—things that already exist inside the file the plugin is running in. For text styles, the only available getter is figma.getLocalTextStyles(), which returns styles that are part of the document itself.”
Is this true? Has anyone built anything that can apply text styles from another library?
Question
How to use Plugin API to apply text styles from another library?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
