Skip to main content
Ada2
October 28, 2024

Font tokens/variables

  • October 28, 2024
  • 1 reply
  • 342 views

Would be very useful when trying to apply different “branding” or styles using variables to be able to apply font styles as well. Currently we can only add numbers, colours, string, boolean.

1 reply

Lior_Mazza1
New Participant
October 28, 2024

I i understand you request correctly, you wish to have the ability to create a dynamic font style for the Font-family, Font-weight and Font-size.
all these are possible by adding “sting” type variables to your local variables. here is an example:

Then you bind them to your typography styles, like this example:

Then you can also save this text as a style and change it later.

Tip: you must write the font name exactly as it is shown in the fonts menu (capitalization and everything)

Hope this helps!