You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
I'm currently building templates for an Android app. In Zeplin the line height is defined for some of our text styles (e.g. 18.2) with a text size of e.g. 15. To configure this in Android we need to have the "line spacing extra" being 3.2 in this example (18.2 - 15).
It would be great to do something like {{% textStyle.lineHeight - textStyle.fontSize %}} or a similar syntax.
The text was updated successfully, but these errors were encountered:
Hey @crysxd, thank you very much! :)
Always exciting hearing of more people using Prism.
I think it would be non-trivial (and mostly useless for other cases) to support math as a whole, but — I believe we can easily add textStyle.lineSpacing instead, which prism will internally compute for you.
Hi! Thanks for this super helpful tool!
I'm currently building templates for an Android app. In Zeplin the line height is defined for some of our text styles (e.g. 18.2) with a text size of e.g. 15. To configure this in Android we need to have the "line spacing extra" being 3.2 in this example (18.2 - 15).
It would be great to do something like
{{% textStyle.lineHeight - textStyle.fontSize %}}
or a similar syntax.The text was updated successfully, but these errors were encountered: