使用方法
- 输入
- 输入
- Drag the preview slider to simulate how the font scales at different viewport widths and read the live pixel value.
- Copy the generated clamp() expression and paste it into your CSS.
示例
- Min font 16px, max font 32px, min viewport 320px, max viewport 1280px produces clamp(16px, 1.667vw + 10.667px, 32px).
- At a 800px preview viewport the live display shows approximately 23px, confirming smooth scaling between the two extremes.