How do better typography with template literal ? #3020
Unanswered
junseinagao
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using
syntax: "template-literal"
, thestyled-system/css
outputscss()
that works exclusively with template literals, but this approach prevents the use of thetextStyles
property.I would like to define responsive typography using textStyles created with
defineTextStyles()
. However, I am unsure how to achieve this while using thetemplate-literal
syntax.I need to define properties like
font-family
,font-weight
,font-size
, andletter-spacing
individually, as shown in the example below. This approach results in verbose code, especially when dealing with responsive styles where overrides are common.Is there a shorthand or a recommended way to specify typography in a more concise manner while using
template-literal
syntax?Here is an example of what I currently have to do:
Beta Was this translation helpful? Give feedback.
All reactions