Fluid type. Make a size grow smoothly between two screen widths, and copy the clamp() value.
How it works
Set two sizes
The size on a small screen and on a large one.
Set two widths
The screen widths where it should stop shrinking and stop growing.
Copy clamp()
One CSS value in rem that respects the reader's font size setting.
Questions
Does fluid type break browser zoom?
Not if part of the value is in rem, as this one is. Text still grows when someone zooms or raises their default font size.
Can I use it for spacing too?
Yes. The same clamp() works for padding, gaps and margins.
More design tools
- Type scale: A modular scale of font sizes, previewed in your font.
- PX to REM: Pixels to rem and back, for any root size.
- Line height and length: Readable line height and line length for any size.