Open this example in the interactive library
Source code
<div class="demo text-[clamp(1rem,5vw,2rem)]">
Scale text fluidly with clamp
</div>
Scale text fluidly with clamp with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo text-[clamp(1rem,5vw,2rem)]">
Scale text fluidly with clamp
</div>