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

Adam_Parker
New Member
Oct 31, 2024 1:54 PM UTC

Chiming in that this would be extremely valuable to my team.

Dejan_Eric
Oct 31, 2024 8:27 PM UTC

Come on guys. This is a basic but needed feature!

mikebusby
Nov 1, 2024 1:42 PM UTC

This is very much needed and an oversight by Figma, please introduce relative units for line height! thanks.

schoon
New Member
Nov 5, 2024 8:52 PM UTC

+1! Needed here as well!

Daria_Perreault1
New Member
Nov 11, 2024 7:36 PM UTC
  • 1 - this is needed!
Hanna_Preston1
Nov 12, 2024 12:16 AM UTC

+1 Really need this feature!

GorgonzolaChef
Nov 12, 2024 4:41 PM UTC

+1 We need percentage line height plz

Eu-Gene_Teo1
Nov 19, 2024 2:40 PM UTC

As devs, we always use relative units (eg: 150%, 1.5, or 1.5em) for line-height. It’s funny that till today, such a basic web typography property isn’t supported in Figma. Please get this in ASAP.

Roy_Slagter1
Nov 20, 2024 4:33 PM UTC

Upvoted! This would be really helpful as we use a percentage such as 125% for heading and 150% for body copy.

Keanou
Nov 20, 2024 4:35 PM UTC

+1 Much needed for design system consistency between teams !