Skip to main content
Bram_Huinink
April 26, 2024

Typography variables: bind String to text decoration

  • April 26, 2024
  • 3 replies
  • 895 views

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
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
New Participant
August 23, 2024

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
September 16, 2024

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.