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

Megan_Trimble
June 24, 2024

Hoping this update makes an appearance at Config. This would be really useful to my team!

Chris_Agi
June 30, 2024

+1 vote

Ive had to create multiple token values for each font size used to ensure we have scalability for our design system, which is a massive pain in the butt…

David.Stenbeck
July 3, 2024

Similar to branching, this is like someone who never used tokens for typography designed this. % for line height is missing, you still have to make styles instead of going towards the tokens standard. it’s so weird…

well… untill you realize “Hey we got number and string variables… it’s cheaper to just allow them for the existing fields instead of making something good… should we do it the cheap way?”

July 4, 2024

Anyone find any solution to use % in line-height?

John_Fraskos
New Member
July 5, 2024

This is absolutely needed, line height vars are un-usable without %. Come on people.

Andreas_Nordenson
New Participant
July 10, 2024

I love you Figma but im heavily disappointed the line-height percentage support wasnt announced at Config. This is a major blocker for a vast amount of teams that work with design systems.

Cristiano_Akihito1
New Member
July 17, 2024

It would be important for Figma to consider this issue and implement % in the line-height variables. I was waiting for this technical debt to be resolved in Figma config. We are waiting for this correction so that we can fully implement variables in typography.

Morten_Christensen
New Member
July 19, 2024

I completely agree. Line-height should be percentage-based, so please get this minor fix implemented asap. 🙇‍♂️

Dmitry_Lyapustin1
July 29, 2024

So no updates on this so far? It’s a blocker for typography variables setup.

Elena_Titos
New Member
July 29, 2024

Please, percentages!! 🙏