CSS Clamp Generator
Configuration
Generated CSS
Live Preview
Current Viewport:
Fluid Typography
Features
Seamlessly scale text between a minimum and maximum size based on the viewport width.
Work with your preferred units. Automatically handles REM-to-PX conversions.
Simulate different viewport sizes instantly to see how your text scales.
Generates optimized CSS `clamp()` code compatible with all modern browsers.
How to Use
-
Choose Units
Select whether you are working with
pxorrem. If using REM, ensure the "Root Font Size" matches your CSS (default 16px). -
Set Range
Define the Min Width and Max Width of the viewport. These are the breakpoints where the scaling starts and stops (e.g., 375px mobile to 1440px desktop).
-
Define Sizes
Input your desired Min and Max font sizes (or other property values) corresponding to the min/max widths.