Skip to main content

Typography variables: bind String to text decoration


Bram_Huinink

Nowadays, you can apply string variables to component variants.

This gave me the idea to also link string variables to text decorations. In this way, you can use one button text style for both the normal state (with no text decoration) and the hover state (with underline). By using modes for the different states.

Perhaps this could also be used for other types of settings, such as cases or vertical trim.

3 replies

Gayani_S
Figmate
  • Community Support
  • 1977 replies
  • April 29, 2024

Hey @Bram_Huinink, thank you for your feedback! I’m going to share this internally with the team for consideration. Community members can upvote your post and leave their feedback.


Damian_Summersall

Likewise, this’d be useful for us, to be able to toggle on/off an underline, rather than creating duplicate variants with underlines for each button style.


soppermann

Yes, it would be also useful in combination with new option to set a variable mode. In lightmode I want a text in a different color - in darkmode just underlined for example.


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