How to use Fluid Typography (clamp) Calculator
- Adjust the controls until the preview looks right.
- Copy the generated CSS from the code box.
- Paste it into your stylesheet.
The clamp() property
This generator writes clamp() for you. The example below is one output the tool can produce.
Adjust Minimum, preferred and maximum sizes to change the result.
font-size: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
Using the CSS
Paste the copied CSS into your stylesheet, or convert it to Tailwind classes where the tool offers that option.
Test the result at mobile and desktop widths before shipping it.
FAQ
Is the generated CSS free to use?
Yes. Use it in any project, commercial or personal.
Does the tool upload anything?
No. Everything runs in your browser.
Can I copy the CSS as Tailwind?
Where the tool offers a Tailwind copy, it converts the matching declarations to classes.
Will the CSS work in all browsers?
The properties used here are widely supported. Check the preview in your target browsers.