DEV Community

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

Collapse
 
qm3ster profile image
Mihail Malo • Edited

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.