Skip to main content

Hello,

I am currently developing a Figma plugin to extract local variables. However, I am facing difficulty in extracting the mode name (which I intend to use for segregating variables based on different modes, such as dark mode and light mode). Could you please advise if there is a method to retrieve the mode name?

Get the VariableCollection object that stores the variables you need and check the value of the modes property.

VariableCollection.modes[i].name

 


Reply