Skip to content

Instantly share code, notes, and snippets.

@js2me
Created October 16, 2022 15:38
Show Gist options
  • Save js2me/35e228a3d2d8fb8eb42096a5e9e09f68 to your computer and use it in GitHub Desktop.
Save js2me/35e228a3d2d8fb8eb42096a5e9e09f68 to your computer and use it in GitHub Desktop.
fluid typography adaptive font size
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