tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.35k stars 194 forks source link

Ability to add Line Height token in rem units #1045

Closed anveshdunna closed 1 year ago

anveshdunna commented 2 years ago

Is your feature request related to a problem? Please describe. Currently we can add font size in rem units but we can't add line height in rem units.

Describe the solution you'd like Ability to add line height values in rem units as well.

Describe alternatives you've considered Currently using px values to define line height tokens.

richardhuf84 commented 2 years ago

Would it be possible to have lineHeight as a unitless value?

You can add it as a percentage in Figma, but in code, unitless values are often required.

For example, line-height: 1.5