Problem: Headings that scale up.

Solution#

html
<h1 class="text-3xl sm:text-4xl lg:text-5xl xl:text-6xl font-bold tracking-tight">Scales</h1>

Why this works#

Stacked screen prefixes ARE fluid type; clamp() via arbitrary values for true fluidity.

Variants#

  • Responsive: add screen prefixes to the core classes
  • Dark: pair each color utility with its dark: twin
  • Animated: add transition + a state variant for motion

cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns