Open this example in the interactive library
Source code
<div
class="demo w-fit bg-linear-to-r from-[#7c2d12] to-[#581c87] bg-clip-text text-transparent text-[2rem] font-extrabold"
>
Clip a gradient to large text
</div>
Clip a gradient to large text with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div
class="demo w-fit bg-linear-to-r from-[#7c2d12] to-[#581c87] bg-clip-text text-transparent text-[2rem] font-extrabold"
>
Clip a gradient to large text
</div>