Skip to main content

Inherit property values


Puskala_Aapo

Many designers have multiple themes, such as light and dark. These are typically implemented as component variants. Managing multi-level variant changes is tedious. I know it can be eased with plugins, but there should be a better way.

Proposal:

  • Allow variant property to get its value from its parent. So the value is either manually selected, or inherited from parent (perhaps more alternatives in the future).

So, a button has variant with property value Theme = Inherited from parent. The container, its container etc have the same property (as deep as the designer wants).

Then, the designer changes the value on one level, and it is applied to all child elements which have the same property.

This way, when creating an instance inside one design, it inherits that theme. And when creating in another design, the theme may be different. When dragging an element to a different theme, it automatically inherits this property from the parent element of the target design.

In essence, this is very similar to how CSS works.

This topic has been closed for replies.

2 replies

djv
Figmate
  • Community Support
  • 4780 replies
  • May 15, 2023

Thanks for the feedback, @Puskala_Aapo!

We’ll pass this along to the team for consideration.


  • 0 replies
  • August 13, 2023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


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