Skip to main content
Question

Apply variables according to properties to styles other than visibility

  • January 22, 2026
  • 0 replies
  • 13 views

OsamaAlnaggar

We need to apply variables according to property in more styles, much like how we can assign conditional visibility to toggles on and off. 
If I’m creating a button component, I want to assign text sizes, padding and colors according to properties of size and type. Currently we’re making different instances for every size and type to link them to each property which results in multiplications for each new property.

It will probably work using some conditional logic, when the property is this, assign that, and so on ..