Why not use actually responsive typography? #515
dev-willis
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Does this text properly zoom? (with browser tools or like "control +") |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Instead of a series of static font sizes applied with media query breakpoints, why not use a function? I do it like this:
Which I apply like this:
h1{@include scale-font(1.75, 8);}
And results in this:
h1{font-size: clamp(1.75rem, 1.1818181818rem + 3.1960227273vw, 8rem);}
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions