Generate a copy-ready CSS clamp() declaration for fluid typography, spacing or layout values.
Describe the task to the AI assistant and continue from the result.
Open AI assistant →This calculator turns minimum and maximum sizes plus viewport bounds into a copy-ready CSS clamp() declaration. Use it for fluid font sizes, spacing, gaps and layout values without manually calculating the slope.
What to enter
Set the smallest and largest value, the viewport range where scaling should happen, and the CSS property you want to output. The result is calculated locally in your browser.
Scope
The formula assumes a linear scale between the two viewport widths. Check the generated value in your own layout before shipping production CSS.