Skip to content
← All writing
Bricks BuilderOctober 14, 2026

Fluid spacing and typography in Bricks using clamp()

How a small set of CSS custom properties eliminates breakpoint guesswork and keeps desktop, tablet, and mobile proportions balanced.

EO
Eris OktafianaWeb Developer & Designer
Updated October 14, 2026

Relying on four separate breakpoint overrides for every heading quickly turns a stylesheet into maintenance debt. Fluid CSS scales let typography and spacing breathe naturally from 320px to 1440px.

Define the scale once in Bricks Global Variables

Pair a modest minimum font size on mobile with a disciplined maximum on desktop. Keep reading widths capped at 680px so line lengths stay comfortable on wide monitors.

--text-h1: clamp(1.875rem, 3.2vw, 2.375rem);
--space-section: clamp(3rem, 6vw, 5rem);

Good responsive design scales smoothly between breakpoints, not just at them.

NEWSLETTER · NEW POSTS ONLY

Get new articles in your inbox.

Occasional notes on WordPress, Bricks Builder, and web performance. Sent only when a new post goes live.

No spam, no weekly filler. Unsubscribe anytime.