Skip to main content
Phil_Larsen
Active Member
April 18, 2024

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

  • April 18, 2024
  • 21 replies
  • 3416 views

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

21 replies

y_toku
Figmate
Community Support
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
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
Active Member
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
May 10, 2024

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.

May 17, 2024

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

Jeremy_Knudsen
Active Member
July 23, 2024

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
August 1, 2024

Same issue. Cant setup negative 2% or value 😦

kiprou
New Participant
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
November 14, 2024

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

Shiv
New Participant
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?