Kinda Code
Home/HTML & CSS/Tailwind CSS: How to Create Gradient Text

Tailwind CSS: How to Create Gradient Text

Last updated: March 03, 2023

The quick example below shows you how to create gradient text with TailwindCSS.

Screenshot:

The code:

<div class="p-10">
        <h1 class="text-4xl font-bold uppercase">
            <span class="bg-clip-text text-transparent bg-gradient-to-r from-red-500 via-yellow-500 to-blue-500">
                Welcome to KindaCode.com
            </span>
        </h1>
</div>

Further reading:

You can also check out our CSS category page for the latest tutorials and examples.