Exporting tokens references to figma layers #507
-
Hi, is there a way to export token references to Figma layers? I am trying to use your plugin's data to generate some code and this feature would be useful. Something like:
Is it possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The plugin currently stores all applied data on the sharedPluginData space Can you tell me a bit more about your use case? Would you like to find these via Figma's REST API? |
Beta Was this translation helpful? Give feedback.
The plugin currently stores all applied data on the sharedPluginData space
tokens
. If you were using the API you could extract these. There's quite a few properties you'd need to iterate on, but you can usegetSharedPluginDataKeys("tokens")
to find out which keys are set on this layer, and then find the value usinggetSharedPluginData("tokens", key)
Can you tell me a bit more about your use case? Would you like to find these via Figma's REST API?