figma / plugin-typings

Typings for the Figma Plugin API
MIT License
190 stars 44 forks source link

[Request] Add overrides for component properties #298

Open jordisala1991 opened 2 months ago

jordisala1991 commented 2 months ago

Currently if an instance of a component has a property defined with a value that is overriden from the default value of the component there is no way to know that. The overrides property do not include overrides from properties default values.

Current situation:

For an instance node you can get some of the overrides, like name, fills etc... but there could be other overrides coming from changing boolean properties or text properties that will not be on the overrides. You can get the current value for each individual node and compare with the default value of the component or component set, but you will never know if the value is overriden (you can have the same value and figma knows internally if it was overriden or not, it is just not exposed)

Desired situation:

Add on the overrides property the reference to what properties are overriden or create a new overridesProperties or something like that with that information.

elainefigma commented 2 months ago

Thanks for the feedback! We're tracking this internally.