Skip to main content
Jairo
June 29, 2023

LAUNCHED - Typography Variables (Font size, Font weight and style...)

  • June 29, 2023
  • 77 replies
  • 22875 views

I would love to be able to set variables for font sizes.
That way i could define the reduction amount for the mobile versions of our designs.

Set a vaiable of 40px and a mode “mobile” with the value 32.
This would make this kind of conversions a breeze: If a text looks to big, opt for its mobile version. done.

77 replies

June 29, 2023

👆 This!
It would be Sooooo helpful ❤️

Just so that you know, there is already an topic for that. Add the option to set the size of texts in local variables

Jairo
JairoAuthor
June 30, 2023

C´mon fig guys… You know you want us be able to this:

Mark_McIntyre
New Participant
July 7, 2023

Firstly new variables are mind blowing …

Can you imagine being able to drive your font sizes with a variables.
Or swap the font typeface with a string variable.

You could then set a mode for Desktop Tablet and mobile.- even media selector/ break points.

Then easily flick between modes or drag components from a Desktop frame to a mobile frame and WHAM!! not only can colours, text and numbers change but you could truly create one component that works across any screen size - without the need to variants.

July 9, 2023

YES the example above is exactly how we want to set up our variables, but at this stage Figma doesn’t allow text size as variables — what the?!

IanCox
New Participant
July 9, 2023

Absolutely,
In addition to having support for variables inside of the text settings menu (font-size, line-height etc.) I would love to have support for variables inside the the variable-font axis picker.

I want to be able to shift the axis of the variable-font (weight, optical size, width) so that I can optimize my components for dark mode and smaller text on mobile.

In dark mode, I could make text slightly thinner to optimize legibility.

CSS-Tricks – 23 Apr 20
July 12, 2023

I came here looking for this! It’s confusing being able to create variables for several elements in a responsive design but not text when it’s the main thing being adapted. Figma, we really need this to work 🙏

COSCO_Editor_2
July 17, 2023

It seems coming soon …

  • Typography variable type: We’re exploring how we want to support typography variables. We want to provide a way to switch between combinations of typography properties, like font families, sizes, spacing.
Figma Learn - Help Center
Muhammad_Hamza_Munir
August 7, 2023

yes we need this to happen

Anthony_Swierkosz
August 10, 2023

The new Variables beta is really nice, but I would love the ability to use number Variables for variable font properties. For example, I like to set the font grade/weight higher for dark mode versus light mode to compensate for visual bleed and improve contrast.

Variables already support modes for light/dark, but adding the ability to use number variables for font properties would be fantastic. Thank you!

Celine_
Figmate
Community Support
August 25, 2023

Hi @Anthony_Swierkosz ,
Thanks for your feedback, we’ll pass along to our team for consideration.

FYI, as variables continues to evolve and grow, our team is also exploring how we want to support typography variables. We want to provide a way to switch between combinations of typography properties, like font families, sizes, spacing. Stay tuned! More info here.