- ◐
- △
- ◒
- ◇
- ◓
- ⬡
- ◔
- ◍
- ✶
- ◩
- ◧
- ✴︎
- ◌
- ⬢
- ✷
- ◭
Loading Frontend Tools...
Synchronizing • Aligning Grid • Establishing Uplink
Synchronizing • Aligning Grid • Establishing Uplink
Synchronizing • Aligning Grid • Establishing Uplink
Generate responsive CSS clamp() functions for fluid typography and spacing.
clamp(1rem, 0.429rem + 0.893vw, 1.5rem)Quick toggle between two viewport ranges
Wraps the middle calculation value to prevent LESS compilation errors
Auto-calculates minimum size as a ratio of maximum size (e.g., 0.7 = 70% of max size)
Auto-calculates maximum size as a ratio of minimum size (e.g., 2 = 200% of min size)
Size at minimum viewport
Size at maximum viewport
Minimum breakpoint width
Maximum breakpoint width
CSS Comment
/* 16px - 24px (1024px - 1920px) */
Document your size and viewport ranges
CSS Clamp
clamp(1rem, 0.429rem + 0.893vw, 1.5rem)
Copy and paste into your CSS
Font-size
font-size: clamp(1rem, 0.429rem + 0.893vw, 1.5rem);
font-size with fluid scaling
Sample text scaling fluidly
Sample text scaling fluidly
Sample text scaling fluidly
Drag the slider to see how text scales between viewports
Perfect for Typography: Create fluid text that scales smoothly between breakpoints. Great for headings, body text, and buttons.
h1 { font-size: clamp(1.5rem, 4vw, 3rem); }Spacing & Layout: Use clamp() for responsive padding, margins, and gaps that adapt to screen size automatically.
section { padding: clamp(1rem, 5vw, 4rem); }No Media Queries Needed: One CSS declaration replaces multiple media query breakpoints, making your code cleaner.
Instead of 3 @media rules, use one clamp()Accessible by Default: Using rem units respects user font size preferences. Always test with different browser zoom levels.
Zoom to 200% to verify readabilityStart Conservative: Begin with subtle scaling (16px → 18px) then increase range as needed. Too much scaling can hurt readability.
Body text: 16px → 18px is often enough