Created
October 16, 2022 15:38
-
-
Save js2me/35e228a3d2d8fb8eb42096a5e9e09f68 to your computer and use it in GitHub Desktop.
fluid typography adaptive font size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-size: calc([minimum size] + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width]))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment