Skip to main content

Can't use variables to create a percentage on Letter Spacing


Phil_Larsen

I use percentages in a project for the letter spacing. I can’t use variables to achieve this value. It always defaults to pixels.

12 replies

y_toku
Figmate
  • Community Support
  • 2527 replies
  • April 19, 2024

Thank you for providing feedback! I will share this with our internal team. Your input is highly valued, and we will take it into consideration for future enhancements.


Stan5
  • New Participant
  • 36 replies
  • April 19, 2024

What unit is currently used? I tried converting the percentage to REM but the text shifts when I assign the variable, so REM clearly isn’t the right unit.


Phil_Larsen
  • Author
  • Active Member
  • 130 replies
  • April 19, 2024

It defaults to pixels on Letter-Spacing. I tried using a decimal but then it was just a decimal of a pixel.
This issue is also present on line height.


pinquitte

This is weird 😦 I cannot use line-height variables for our “label” text style because of this issue. I need to add 10% as a value, but % character is not permitted.


Actually, this problem exists since 2021… Any news about it? Thank you very much.


Jeremy_Knudsen

I just ran into this problem. What good is having a variable scoped to line-height if it ONLY supports a px value ??


Ed_Kolan
  • 1 reply
  • August 1, 2024

Same issue. Cant setup negative 2% or value 😦


kiprou
  • New Participant
  • 13 replies
  • October 4, 2024

If pixel values are considered “number variables” then percentage values should be considered number variables too. Please get this fixed.


Emanuel-Mardsjo

I’d just like to add to this as well. Would make it a lot easier to set up consistent styles.


Shiv
  • New Participant
  • 10 replies
  • February 6, 2025

Just wanted to chime in here and say that this is absolutely required for us as well. Not being able to use tokens for letter-spacing is a gap in our design system that we want to address as soon as possible.

 

@y_toku are you able to confirm if this feature is being worked on?


Felix_Dorner

Variables where we can set the unit (either percentage, em, rem, etc.) are soo much needed. I can’t add percentage-based letter-spacing or line-heights which is basically the norm in web design.


Ishara Induranga

I’m trying to use percentage values like -2% for letter spacing in Figma, but it doesn’t seem to work. When I set it using variables, Figma defaults the value back to pixels. Just wondering does anyone know if there’s a workaround


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings