I am creating a plugin that checks whether all the tokens used in my design file are sourced from the added library or entered manually. I am accessing the node object of each selected frame, and based on the data within it, I want to retrieve the following information:
-
Is there any function or node in the object that indicates token usage for horizontal/vertical padding, horizontal/vertical gaps between objects, and corner radius? (Currently, it only provides numerical values instead of showing the token—I've attached an image for reference.)
-
Can I determine whether a component is sourced from the library? If so, where is the library's name stored in the object?
-
Is there any function or node in the object that indicates the fill and stroke colors applied using tokens from the added library?
-
Does Figma provide documentation on this object, including descriptions of its nodes and functions?
Thanks