-
-
Save AkshatJen/e03e8c4dc9f5d6aa00d932e7be2366c0 to your computer and use it in GitHub Desktop.
Automatic font size and line height calc based on device layout
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
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