Skip to main content
Phil_Larsen
Active Member
Apr 18, 2024 6:20 PM UTC

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

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

    22 replies

    y_toku
    Figmate
    Community Support
    Apr 19, 2024 1:54 PM UTC

    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
    Apr 19, 2024 4:53 PM UTC

    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
    Apr 19, 2024 6:37 PM UTC

    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 10:51 AM UTC

    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 1:41 PM UTC

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

    Jeremy_Knudsen
    Active Member
    Jul 23, 2024 2:43 AM UTC

    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
    Aug 1, 2024 11:14 AM UTC

    Same issue. Cant setup negative 2% or value 😦

    kiprou
    New Participant
    Oct 4, 2024 7:47 PM UTC

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

    Emanuel-Mardsjo
    Nov 14, 2024 3:34 PM UTC

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

    Shiv
    New Participant
    Feb 6, 2025 5:24 PM UTC

    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?