Please, don’t use viewport units for font sizes

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI10 min

About this video

Explains why viewport units are a poor choice for font sizes on their own and shows how clamp() and the Utopia type calculator make fluid typography easier to get right. It suits developers and designers who already write CSS.

What you’ll learn

  • Explain the problems with setting font-size directly in viewport units
  • Write a fluid font size with clamp()
  • Use the Utopia type scale calculator to generate responsive type values