Use clamp() for Responsive Typography

clamp() lets text scale smoothly between a min and max size based on screen width—without media queries.

h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

More on CSS

Recent Tips