Skip to main content
Shukri_Brewer
New Member
Jul 28, 2024 2:20 PM UTC

HUG or FILL mapped to a variable?

Is it possible to map the HUG or FILL to a variable.

It would be great to not only assign particular width values, but also set the width to either hug or fill the container.

12 replies

Figmate
Jul 30, 2024 2:13 AM UTC

Hi @Shukri_Brewer, Thank you for sharing your thoughts on applying variables. I tested it on my end, and it doesn’t seem possible at the moment, but I understand how helpful it would be!

If anyone from our community would also be happy to see this idea come to life, please vote or comment.

Thanks for your valuable input.

Daniel_Robbins1
New Member
Feb 12, 2025 9:32 PM UTC

​@Junko3 : where is the voting UI in this latest version of of the forum?

 

djv
Figmate
Community Support
Feb 12, 2025 11:48 PM UTC

Hi ​@Daniel_Robbins1, thanks for reaching out! 

As you may have noticed, Junko’s reply was written for our previous version of the forum, prior to the recent forum makeover last month. 

This current version no longer allows for the ability to cast votes. As mentioned here, “The voting feature in the Suggest a Feature (old “Share an Idea”) category is temporarily paused while we work on some improvements. Exciting updates are planned for 2025—stay tuned!”, but please rest-assured that our team is still tracking and handing over feedback to the necessary teams for future implementation. 

Matthew_Scheuerman
New Member
Feb 28, 2025 8:09 PM UTC

It’s been 7 months since ​@Shukri_Brewer asked for this, and I’m surprised there aren’t more Likes for this. I could use this for a large portion of the design system I’m building. 

Oliver_Maw
New Participant
May 6, 2025 7:57 AM UTC

A vote for this. please raise with the features team!

Tascha
Active Member
May 12, 2025 2:30 PM UTC

Yeah same. Would be really beneficial!

Manuel_Cilurzo
New Member
Jun 6, 2025 7:09 PM UTC

+1

Amine Belkheiri
New Member
Sep 30, 2025 3:48 PM UTC

+1000 even

Nikos_Kosmadakis1
New Member
Jan 22, 2026 2:50 PM UTC

Variables in general should be able to accept values one can set in the panels. They are lacking fundamental functions.

  • accept relative values at least in %
  • accept equations using other variables without returning a fixed number
  • accept auto layout properties

 

flauridsen
New Participant
Mar 11, 2026 11:36 AM UTC

+1