Skip to main content
Adriaan_Steyn
Jul 17, 2023 5:38 AM UTC
Solved

Launched: Typography Variables

Hi there, we’ve been using the Figma Studio plugin to build our design token systems. Its been really useful and provided a number of advanced features. However, with the native integration of variables in Figma we would like to make this switch. While I understand that variables are still at its infancy. Do we have a timeline of when typography variables would be released? Is it a 2023 thing or only next year?

This topic has been closed for replies.
Celine_
Celine_Solution
Community Support
Apr 17, 2024 9:11 AM UTC

Hey everyone!

We are glad to let you know that we launched Typography Variables! 🥳

🆕 Variables can be bound to typography fields and saved as a style.
Now our typography drop:
→ Font family
→ Font weight and style
→ Font size
→ Line height
→ Letter spacing
→ Paragraph spacing and indent

➕ For more information, please check:
⭐ Our blog article →

Figma

⭐ Our tutorial video:

⭐ Plugin API docs: Typography Variables

Thank you all for being patient!

25 replies

Luigi_Chelli
New Member
Apr 29, 2024 9:00 AM UTC

Is it correct to say that the only way of setting the font-style to Italic is to use a string variable?
For example with Inter typeface for a Medium Italic one should set the string variable to “Medium Italic” for a Regular italic one should set the string variable to just “Italic”.
No number variables are possible such as 400, 500 etc…

This is not working very well with code, where most frameworks require separate properties for font-weight and font-style to define text appearance. Converting those string variables would then require additional convoluted logic to generate usable tokens for code.
Wouldn’t be better to handle the font weight and font style as two separate variables?

Rodrigo3
Apr 29, 2024 2:55 PM UTC

Not being able to set line-height in percentage makes the whole typography variables thing kind of pointless.

Leonardo_Hauschild
New Member
May 2, 2024 4:16 PM UTC

Just want to add my voice to this, our design system does not work without percentages (or em).

We use them on letter-spacing to have real responsive typography.

Slava_Bronevitskiy
Active Member
May 7, 2024 11:36 AM UTC

Just curious, why would a composite variable add value to you, but a composite style would not?

To me it’s the same thing, just a different name.

impactby.design?ref=nI
KennLucas
May 7, 2024 3:01 PM UTC

You might be correct here Slava. In reality, the styles there are today in Figma are just that “composite” thing. So maybe it IS just that there are styles.

For us, the issue is like gradients or effects. There are no variables for these.

My frustration is that we are splitting the use cases for variables. IF I have to create a style that has different settings for font-weight, letter-spacing, etc…I will just use numbers for those. Having a variable to add the value here is ultimately much more confusing and problematic. Too many moving parts. If I want to adjust the letter-spacing, AND I have a style where thet is set, going to set it in a variable so that it adjusts in a style that then feeds my design is entirely a problem.

It is not the same thing (“composite” varable and style) if you think about it from that standpoint. A style that uses variables to set the settings cannot be the same as one that is not controlled by variables. But that is just semantics. But, your theory is spot on. We don’t need both!

If I create an entire text style as a variable, then that solves my frustration…but I think your question makes more sense! I think I am not looking for a variable for text styles…I think I am just not a fan of setting variables that set text styles. Just put the numbers in the text styles directly. Less to maintain and manage on a cognitive level.

Having to have styles in addition to variables is problematic. As I said, too many moving parts. Too much opportunity for failure or error. Both for managing a design system and for onboarding new designers. Better organization means better productivity.

Thanks for your question. I think you made my issue more clear for me. I just don’t want variables to populate styles. Too much hassle. But you took my objection away from wanting a “composite” variable for text because that is just reinventing the wheel which is a style.

Thanks.