Skip to main content

Use percentage for size variables

  • June 27, 2023
  • 72 replies
  • 25641 views

Show first post

72 replies

Hal9000
  • New Member
  • February 2, 2025

+1 to using percentage across the all variable. Including line-height please.


DemianH
  • New Member
  • February 5, 2025

+1 – Figma features and additions seem to be getting slower and slower as the years get on. Please don’t rest on your laurels as Adobe has been doing for the last 20+ years


Kate21
  • New Member
  • March 6, 2025

+1. Just had this come up with our mobile developers. Percentage sizing would be a very powerful tool for responsive design!


JoeM
  • New Participant
  • March 22, 2025

+1 – Figma features and additions seem to be getting slower and slower as the years get on. Please don’t rest on your laurels as Adobe has been doing for the last 20+ years

Ditto this...

Why don’t we have native REM values yet either, with the option to change a base value? 

This is basic stuff for web design, and that anyone designing for web (or app) should be using or aware of. 


paulien van rijckevorsel

Yes please ! Need this for relative sizing of different components across breakpoints


Mathilde Galibert

+1 ! Would need this to set up line height variable


raojames
  • New Member
  • May 17, 2025

Hi ​@OG_Can ,
 

Yes, you can use percentage-based values in variables, depending on the design tool you're using. Many tools support relative sizing—like setting width or shape size to a percentage of the parent frame—which works great for responsive layouts. If your tool supports expressions or constraints, or if you just need to quickly calculate values manually, this Percentage Calculator is a super handy tool to have on hand.

Let us know what software you're using for more specific tips!


Lorenz_Kunze
  • New Member
  • May 22, 2025

+1 to using percentage in numeric variables. Need this for High DPI scale sizes for Windows graphics and icons.


Tom_Hendrickx1

+1


Mueller_Bernhard_SCW_FIXY3

+1


Sharon_Taylor

+1 


Nicolas_Prieto

+1


Marc Hauser
  • New Member
  • July 25, 2025

+1 please oh please. ay, we got an AI site builder or something though. Maybe it will add the feature for us if we ask nicely. 


Dieter
  • New Member
  • August 25, 2025

Same request here, I need this to define the line-height of my typescale.


Cody_Johnston
  • New Member
  • September 18, 2025

The use of viewport width percentage is very much needed and very long overdue! Please add this!


s11309
  • New Member
  • October 7, 2025

+1


jeffwade
  • New Member
  • November 11, 2025

Would love to see this come to light. Working on some hi-fi prototypes using variables and this one enhancement would simplify so much.


andrdinis
  • New Participant
  • January 26, 2026

Bump


Ozhered Michael

Uup. Still is a very needed and obvious feature. Why only hardcoded numbers can be used?

Only Figma is able to calculate size in pixels based on %% like:
size = %% / max_size
, because we don’t know the max_size for the layer in responsive environment, so only Figma can help there.


Fabrice Epoca
  • New Participant
  • February 6, 2026

plz plz plz Figma make it happen.

 

This not being a starting feature 10 years ago was already crazy but still not done to this day is pure nonsense.


Mike Hnr
  • New Member
  • February 7, 2026

Hi ​@OG_Can ,
 

Yes, you can use percentage-based values in variables, depending on the design tool you're using. Many tools support relative sizing—like setting width or shape size to a percentage of the parent frame—which works great for responsive layouts. If your tool supports expressions or constraints, or if you just need to quickly calculate values manually, this Percentage  Calculator is a super handy tool to have on hand.

Let us know what software you're using for more specific tips!

When you base text sizing on a variable, you’re basically creating a single source of truth for your scale. A common approach is setting a root value like --base-size and building headings and spacing with calc() or clamp() so everything grows proportionally. It keeps layouts consistent and easier to tweak later.

 


Kyle_Johnson
  • New Participant
  • February 12, 2026

+1 agree this is needed.