Skip to main content
Question

Support extensions in the Variable API


Torleif

The Figma Variables API, while powerful, has its limitations. For instance, it does not support create, read, update delete of custom $extensions. The properties defined in the token under the “com.Figma” namespace are available directly in the API. These properties, such as “hiddenFromPublishing”, “scopes”, and “codeSyntax”, are specified directly in the “VariableChange” payload. I couldn’t find a way to specify extra extensions under a custom namespace in the current API specification.

It would be great if storing and updating custom extensions on tokens worked with Figma Variables. Adding support to edit extensions in the Figma Variables UI would also be great.

The specific use-case we have now is that we want to add a boolean property to Figma only variables (isFigmaOnly). This way, we can ignore the variable when generating style definitions across all platforms.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings