Publisher notes · reviewed 29 October 2026
Preferred is a linear function of viewport width
Slope = (maxPx − minPx) / (maxVw − minVw). Intercept = minPx − slope × minVw. clamp(min, intercept px + slope×100 vw, max). The type-scale tab is a modular scale, not fluid until a pair of steps is fed back into clamp.
Why not 5vw
5vw at 360 px is 18 px and at 1440 px is 72 px, which is rarely the design. Two-point interpolation is exact.
Worked examples
16→32 over 360→1240
clamp(16px, 9.4545px + 1.8182vw, 32px).
Limits of this page
- Container queries are not generated.
- User zoom still applies after clamp.