Skip to main content
A_Gussenberg
Jul 13, 2023 8:38 AM UTC

Calculation formula within variable input

Hey folks, first of all I love the new variable function. Within the setup of spacings I want to reference my base value (“8”) and do calculations, e.g. (spacing-base)*2". This works fine and the value is calculated properly within the input to add a new variable. But I expected not that the calculation string changes to the absolute value. With this behaviour I loose the connection/ reference to my base value and the calculation is some how obsolete.

Does anybody feel the same?
Will there be an update?

image

Thanks

75 replies

Tara_Price2
Active Member
Sep 16, 2024 4:49 PM UTC

I’m dealing with a token library that has values that are formulas global x 1.25 etc… This is crucial…

I can’t tell you how disappointed I was at Config this year in the lack of product updates.

Variables was such a great idea that you got 50% of the way there.

Cyr_Dylan
New Member
Sep 24, 2024 11:53 PM UTC

Just adding a request for this as well. Ideally also being able to add multiple other variables together.

Anna_Rocca1
Oct 1, 2024 4:44 PM UTC

keeping alive!!! This is definitely needed - please keep variables in mind

Simon_Erskine
New Member
Oct 1, 2024 7:16 PM UTC

Need this. Need it for default font size, rem etc.

Oct 2, 2024 11:49 AM UTC

+1 as well. Would be nice

Kolodziej_Ashley
Active Member
Oct 2, 2024 7:38 PM UTC

For annotating responsive mockups and demonstrating behavior, I’d like to be able to reference a variable minus 1. For example, to show the widest possible behavior of a component at the small breakpoint, I want to be able to set the width of a frame to medium - 1.

carlos.verdes
New Member
Oct 10, 2024 11:16 AM UTC

This feature is a must specially for dynamic space systems

Danny_Hope
New Member
Oct 17, 2024 10:09 AM UTC

This feature would be ideal for experimenting with modular typographic scales.

However, it’s a bit of a slippery slope (in a good way)…

  • Adding a formula engine could transform Figma into a powerful data visualisation tool.

  • If Figma then allowed designers to surface these values within the design itself, it could become a more flexible, visually-driven, spreadsheet-like tool.

With these possibilities in mind, it’s easy to imagine Figma assigning a team to prototyping these kind of far-reaching concepts to see what’s possible/desirable. This way they could introduce smaller features (as in the original post) incrementally, ensuring they don’t close off the path to these ambitious long-term goals.

This might also align with their apparent strategy of providing a suite of creative-focussed productivity tools.

Anna_Rocca1
Oct 30, 2024 3:52 PM UTC

This is a MUST please

James_Grubb
Nov 5, 2024 3:19 PM UTC

I’m a plus for this feature.