Replies: 1 comment
-
The following discussions might be related to yours: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was in the middle of adding
text-base sm:text-lg md:text-xl lg:text-2xl xl:text-3xl
classes to my text to get it to scale responsively when I realized this feels like the wrong approach. Isn't the point of rem units to hierarchically define your text sizes relative to the root element'sfont-size
, and then scale the root element'sfont-size
, not the rems of your elements? i.e.what is the right way to be approaching responsively scaled text with tailwind? changing the root element's font-size feels right to me but tailwind doesn't provide classes to do that and the docs somewhat confusingly suggest by default to use the
sm md lg
helper breakpoint classes.Beta Was this translation helpful? Give feedback.
All reactions