Skip to main content
Design & colorLocal in browser — nothing is uploaded

CSS fluid clamp() type & spacing generator

Calculate exact linear CSS clamp() typography and spacing declarations scaling smoothly between mobile and desktop viewport widths using clean rem + vw units.

Generated CSS Declaration
font-size: clamp(1.125rem, 0.5552rem + 2.4309vw, 2.5rem);

At 320px width

18px

At 480px width

20.55px

At 768px width

27.55px

At 1024px width

33.78px

Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.

Report a problem with this tool

Accessible responsive type

Zoom-safe rem + vw: Keeping the linear intercept in rem ensures text still honors user browser font-size preferences while scaling smoothly with vw.

Frequently asked questions

Why mix rem and vw inside clamp()?
Pure vw font sizes ignore user accessibility zoom settings; adding a rem base preserves zoom scalability under WCAG.
Can I use this for padding or section gaps?
Yes—replace font-size with padding, gap, or margin cleanly.