clamp
Fluid Type Calculator
Build a CSS clamp() that scales smoothly between two viewport sizes.
Processed in your browser
Your entered content is processed on this device. It is not uploaded by this tool. Some tools load code or public resources before processing.
Viewport range
Font size
Presets
Live preview
The quick brown fox jumps over the lazy dog.
CSS
slope
intercept
preferred
Formula: clamp(min, preferred, max) where preferred is a linear function of viewport width. Below the min viewport the size stays put; above the max it caps. Works for spacing too: treat the font inputs as padding or gap.
Only details you choose to share.