Skip to main content
Mark_McIntyre
New Participant
April 17, 2024

Allow percentages for line height

  • April 17, 2024
  • 197 replies
  • 25150 views

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.

197 replies

Lukita
May 6, 2024

Agree, 100%! Heheh, we need percentage-based line height.

pierrelord
New Participant
May 7, 2024

Agree.

  • This could be made even more powerful, by allowing number fields to accept string vars (where a % could be entered) - kinda dirty, but this would solve the % feature (?)
  • Even more powerful if variables accepted calculations referring to other vars like =[line-height-default]*1.5
Andreas_Nordenson
New Participant
May 7, 2024

I totally agree with this.

johanfjr.com
New Member
May 8, 2024

+1 for this feature

rahendz
May 13, 2024

Hi Figma, congratulations on reaching this milestone! It’s awe-inspiring. I wanted to share an idea regarding typography. Specifically, I’d like to talk about the text property. Instead of specifying the exact number of pixels for line height, I prefer using relative numbers like 1.5, 1.6, or 2. This approach offers more flexibility and maintaining consistency across different text easier.

However, I’m open to using exact pixel values when necessary.

image

Franni
New Participant
May 13, 2024

This topic is already in discussion! Please vote for it 🙂 Allow percentages for line height

rahendz
May 13, 2024

thanks @Franni

Stephen_Deutsch
May 13, 2024

+1 for this feature 👍🏼

EvanMacAlpine
New Participant
May 13, 2024

+1 for this feature, for line-height and letter-spacing. It’s not a scalable feature for design systems, as-is. Thanks for your work on this!

Syed5
May 15, 2024

+1. this would be very helpful for a beginner like me 🥲