Processing your request...
Generate a fluid CSS clamp() for font size or spacing, with Tailwind classes, a live scaling graph and a zoom check
clamp(1.875rem, 1.4789rem + 1.6901vw, 3rem)
text-[clamp(1.875rem,1.4789rem+1.6901vw,3rem)]
The quick brown fox
Common heading and text ranges from Tailwind's scale, with the clamp() for each.
| Use | Sizes | Screens | clamp() |
|---|---|---|---|
| Hero title | text-4xl → text-7xl | 375–1440px | clamp(2.25rem, 1.4577rem + 3.3803vw, 4.5rem) |
| Page title | text-3xl → text-5xl | 375–1440px | clamp(1.875rem, 1.4789rem + 1.6901vw, 3rem) |
| Section title | text-2xl → text-4xl | 375–1280px | clamp(1.5rem, 1.1892rem + 1.326vw, 2.25rem) |
| Card title | text-lg → text-2xl | 375–1280px | clamp(1.125rem, 0.9696rem + 0.663vw, 1.5rem) |
| Body text | text-base → text-lg | 375–1440px | clamp(1rem, 0.956rem + 0.1878vw, 1.125rem) |
| Caption | text-xs → text-sm | 375–1440px | clamp(0.75rem, 0.706rem + 0.1878vw, 0.875rem) |
| Button text | text-sm → text-base | 375–1280px | clamp(0.875rem, 0.8232rem + 0.221vw, 1rem) |
Pick a preset, choose Tailwind sizes, or type your own values in px or rem.
The size stays at the smallest below the first width and at the largest above the second. 375px to 1440px is common.
Choose a Tailwind class, a v4 @theme token, plain CSS or a CSS variable.
Enter the smallest and largest size and the screen widths between them. Get a clamp() that grows smoothly in between.
Copy an arbitrary class like text-[clamp(...)], or a Tailwind v4 @theme token you can use as text-fluid.
Drag the screen width to watch the size change on a graph and in sample text, with the nearest Tailwind size.
Warns when the range is too wide for text to pass WCAG's 200% zoom rule, so fluid type stays accessible.
Your rating helps us decide what to improve.