Fluid Typography
v1.0Fluid Typography turns clamp() math into a whole type scale. Set a viewport range, a base size and a ratio for the smallest and largest screens (minor third and perfect fourth by default, with major second through golden ratio and a custom number as options). It generates a run of steps above and below the base, each with its own clamp(). Because the two ratios can differ, the scale can widen as the viewport grows. A width toggle switches between vw and cqi (the nearest container).
The specimen preview shows each step as live, editable sample text, largest at the top, labeled with its --step-N property, its pixel size and its full clamp string, which you can copy. A scrubber sweeps a virtual viewport from min to max and every row updates as you drag. Mobile, tablet and desktop buttons jump to common widths. An invalid range (max not larger than min) shows an inline message.
An optional fluid line-height lets you set a value for the base step and one for the largest step, and the steps in between follow. Smaller text gets looser leading and bigger sizes get tighter leading. Line-height appears in each row and in every output.
Each step's target selector is editable: remap it to another selector or set it to None to leave it out. Outputs include a :root block, a selector-mapped version and a Tailwind tab (a v4 @theme block, with a v3 theme.extend.fontSize object one click away).
Your settings are remembered on this device, and Share puts the configuration in a link.