Skip to content

Instantly share code, notes, and snippets.

@kartiknair
Created May 25, 2020 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kartiknair/140978e2483d5f8a95125c19be19a83d to your computer and use it in GitHub Desktop.
Save kartiknair/140978e2483d5f8a95125c19be19a83d to your computer and use it in GitHub Desktop.
/* ↓ This one is for smaller phones ↓ */
@media (max-width: 350px) {
html {
font-size: 0.9rem;
}
}
/* ↓ These are for high-res displays ↓ */
@media (min-width: 1900px) {
html {
font-size: 1.5rem;
}
}
@media (min-width: 2500px) {
html {
font-size: 2rem;
}
}
@media (min-width: 3000px) {
html {
font-size: 2.5rem;
}
}
@media (min-width: 3400px) {
html {
font-size: 3rem;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment