Skip to main content

Font tokens/variables

  • October 28, 2024
  • 1 reply
  • 98 views

Ada2

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
  • 6 replies
  • 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!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings