-
-
Save AkshatJen/fdf6166a2cf6b1bf4cebc802400ee175 to your computer and use it in GitHub Desktop.
Automatic font size and line height calc based on device layout
This file contains hidden or 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
font-size: calc(25px + (26 - 14) * ((100vw - 300px) / (1600 - 300))); | |
line-height: calc(1.3em + (1.5 - 1.2) * ((100vw - 300px)/(1600 - 300))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment