How the formula works
Two viewport-and-size pairs define a straight line. The slope becomes a viewport-width value; the intercept is converted to rem using your root font size. clamp() enforces the endpoints.
The Locolory toolkit / Design & Web
Calculate responsive clamp(min, preferred, max) declarations for smooth viewport scaling.
What is fluid typography? It scales text continuously between defined minimum and maximum sizes as the viewport changes, avoiding abrupt breakpoint-only jumps.
All calculations and previews run locally in your browser.
Fluid type, steady rhythm.
Two viewport-and-size pairs define a straight line. The slope becomes a viewport-width value; the intercept is converted to rem using your root font size. clamp() enforces the endpoints.
Keep minimum text readable, avoid extreme scaling, and verify browser zoom and text-only zoom. Preview representative headings and long content in the real layout.
Your input shapes the next update
A short note opens in your email app, ready to send to hello@locolory.store.
clamp() sets a minimum, fluid preferred value, and maximum so text scales with the viewport while remaining within readable bounds.
The calculator finds the line between the chosen viewport and font-size pairs, then expresses its slope in vw and its intercept in rem.
No. Test zoom, wrapping, narrow screens, long translations, and your actual font metrics. The generated declaration is a starting constraint, not a readability guarantee.