Skip to main content
Mark_McIntyre
New Participant
Apr 17, 2024 10:09 AM UTC

Allow percentages for line height

Firstly great job Figma Font variables are here!!!

The only thing missing is the use of percentages in the line-height property.

You can not use a percentage in the line-height as it only accepts variables that are a number type.

Although the variables for line-height caters for pixel (absolute) line-heights (10,12,14)- it does not accommodate relative line heights.

In other words you can’t use percentage variables for line heights that are a percentage of the font size (100%, 120%,150%).

Interestingly …You can use a variable for letter-spacing ( which accepts a number variable - but reads it as a percentage) - the challenge remains that line heights by default are absolute not percentages - even though you can input a percentage.

Percentages allow greater flexibility and less calculations

Word around would be to allow formula in a variable
e.g. =[variable] * 1.5

Or figuring out a way for the line height to be toggle between absolute or relative application of the number variable.

198 replies

Rodrigo3
Aug 22, 2024 8:59 PM UTC

Still on the radar? Will it ever be released?

Rodrigo3
Aug 22, 2024 9:13 PM UTC

+1 please add percents on font variables

Andreas_Nordenson
New Participant
Aug 23, 2024 7:41 AM UTC

This is such a big issue… disappointed with the lack of response from Figma and the uncertainty waiting for it to be implemented (or not)

David.Stenbeck
Aug 23, 2024 8:18 AM UTC

I heard a rumor that this feature will be added at Config '32 where their newly announced AI developer will finally start looking at the suggestion forums.

Michael_K
New Member
Aug 28, 2024 2:34 PM UTC

Great idea! I’m also for it!

goatdev
Aug 30, 2024 3:12 AM UTC

1000% we need this. No update on this since April 😦

Andre_Edqvist1
New Member
Aug 30, 2024 1:17 PM UTC

This is proper ridiculous. Stop fidgeting about in chat GPT and finish your freaking semi-done features.

Christian22
Sep 9, 2024 10:57 PM UTC

My workaround is to duplicate the variable group of your font says and name it line-height. Then take your typescale percentage value for line height (i.e. 1.6 for perfect 4ths), and type " * 1.6" after the font value. Make sure to include space. Figma will automatically calculate the correct percentage value. Do this for each font size!

Matty_Vazquez
Active Member
Sep 18, 2024 12:34 PM UTC

This is needed! Also seems to be similar to these threads about %:

Marcin10
New Member
Sep 26, 2024 9:57 AM UTC

As for me it is more importnt the AI tools and other enhancements that hace been recently added to Figma. I have a Design System and the only thing that as it comes to typography that makes me mad is lacking the line hight variable OR a formula that will accept multiplying like: variable * 1.5. Figma, please add it asap or we move to Penpoint : )