Skip to main content
Sophie26
New Member
Feb 12, 2024 2:08 AM UTC

Allow variables to be partially based off other variables

Enhancing variables to have extra logic in place so that variables can be partially based off other variables

e.g.
Number
new_variable = “{other_number_variable} + 4”

String
new_variable = “{other_text_variable} New Text”

Colour
new_variable = “{other_color_variable}, opacity 4”

Boolean
new_variable = “not {other_boolean_variable}”

9 replies

y_toku
Figmate
Community Support
Feb 13, 2024 2:40 AM UTC

Hi there,

Thank you for sharing your idea! We greatly value your feedback, and we would like to gauge the reaction of other members in the community. We may consider it for future enhancements!

Thanks,
Toku

Matthew_Hall
Jul 30, 2024 3:23 PM UTC

For example, is I have a variable “padding = 32”, allow me to add to the width number: “[padding] * 2”

Albert4
Nov 28, 2024 11:36 PM UTC

This would be great for setting up a flexible design system.

Odinn Hullekes
New Member
Jan 31, 2025 10:20 AM UTC

this would make too much sense, 

i work daily with calculations in css so for figma to NOT have this concept is strange to me!

i have variables like space that are dependant on eachother
imagine setting space-m: 20

i want space-s to be space/m / space/scale
etc… 
same goes for font sizes and color-mix

Alex Obreja
New Member
Feb 28, 2025 10:16 AM UTC

How come this is hasn’t been implemented yet? We really shouldn’t be begging for this functionality.

rksilvergreen
New Member
Jul 15, 2025 12:00 PM UTC

I’ll even appreciate it more if the extra logic could include some conditionals.

some_color_variable = “if {some_boolean_variable} = TRUE,  #FFFFFF, #A1FFF7”

Basically just take some of the conditional logic / UI that is used for prototype interactions, and apply them on variable values

Jason_Parry
New Member
Oct 15, 2025 4:59 PM UTC

To add onto this, a “not equal to” bool value. Even if it’s just in the editor, to be able to tie visibility to {variable} or {!variable} would enable so much more control with no change in the ui.

FernandaM
New Member
May 12, 2026 3:20 PM UTC

Yes please! this would be incredibly useful both for prototyping and design systems. 

NShadow
New Participant
Aug 2, 2026 7:32 PM UTC

200%… I have entire plugins as workarounds for this feature.