DEV Community

Discussion on: Write Fewer Media Queries With the Clamp() CSS Function

qm3ster profile image
Mihail Malo • Edited on

Where it really shines is if you do something like

* {
  font-size: clamp(1rem, calc(5vw+0.8rem), 4rem)
Enter fullscreen mode Exit fullscreen mode

so that you can modify the speed, and domain, of the responsive scaling.