The Old Approach: Fixed Sizes at Breakpoints
Traditional responsive typography sets a font size for mobile, another for tablet, another for desktop, switching abruptly between them at specific media query breakpoints. This works, but produces a visible jump right at each breakpoint — text is one fixed size just below a certain width, then suddenly a different fixed size just above it, with nothing in between.
The Fluid Approach: Continuous Scaling
Fluid typography scales smoothly and continuously across the entire range of screen widths, rather than jumping between a small number of fixed steps. Instead of "16px on mobile, 18px on desktop," fluid typography expresses the relationship as "scales from 16px to 18px as the viewport grows from 320px to 1200px" — every width in between gets its own proportionally correct size, not just the two endpoints.
Why This Matters Visually
A tablet or a resized browser window sitting between your defined breakpoints, under the traditional approach, gets whichever fixed size happens to apply at that specific breakpoint — which might feel too large or too small for that particular width. Fluid typography sidesteps this entirely: every viewport width, not just the ones you explicitly planned for, gets a proportionally appropriate size.
How CSS Makes This Possible
The clamp() function accepts a minimum, a preferred value, and a maximum. By making the preferred value a formula based on viewport width, the resulting size grows continuously between the minimum and maximum bounds — all in a single line of CSS, without writing separate rules for each breakpoint.
Ready to set up fluid typography for your project?
Open Clamp Generator