Skip to main content

Expressions in Variables


aparnell-intapp

The ability to make variables that are aliases of other variables is useful, but it would also be incredibly valuable to make variables that are defined via an expression relating them to other variables.

For instance much of the sizing in our design system is done in REMs, being able to create a variable in the sheet where REM=16 and then another variable BORDER RADIUS= 0.25*REM would be very powerful

This topic has been closed for comments

5 replies

Eli_Crow
  • 9 replies
  • June 22, 2023

Or create derived values for prototyping purposes, like price totals on a cart page. Right now, you have to manually sum them and assign them to a variable with an interaction, which is awesome! but not ideal.


Absolutely needed. Designing fully a scalable UI isn’t really possible so developers need to come up with their own ratios. This has lead to many implementations that aren’t exactly according to spec.
If you could just say that, e.g., an element width is 40% of the frame width, which can now thankfully be from a variable, you can just design the spec into the plan directly.


Peter_Uithoven

Duplicate of Using expression as a variable's value ?
Let’s centralize the upvotes?


Jc_Martel

I agree it is definitely a need for REM or many other simple use cases like ratios. +1


  • 0 replies
  • October 1, 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