Skip to main content
Mark_McIntyre
New Participant
April 17, 2024

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

Elias_Tinchon
April 23, 2024

+1 this is absolutely necessary!

Joe_Mallory-Skinner1
New Member
April 23, 2024

So true.

Annoyingly, when using a number variable for letterspacing it changes from % to px…

taras-stoliar
New Participant
April 23, 2024

Feature is there! But halfway done. Not using cause of missing % values. Please implement it! +1 here

Ole-Marius_privat
April 23, 2024

+1 here as well. Very much needed. Frankly puzzled that this is not implemented from get go.

ThatOneGuy
New Member
April 23, 2024

I would love being able to use unitless numbers as well. Then the exported variables will match the required format in code.

Julian_Kovalsky
April 23, 2024

I would love this for Letter Spacing also.

Jon_Bueno1
April 23, 2024

IMO feature is not 100% viable until this is added. Frankly, I plan to put it’s use on hold until this is added.

Alice_Holm
Active Member
April 24, 2024

+1! Need % for both line-height and letter-spacing!

Trisha_Paredes
April 25, 2024

%s are much scalable and lessens maintenance

Jon_Cho
New Member
April 25, 2024

How are you getting the letter-spacing to use percentages? It just converts to px for me.