Tailwind CSS: How to Create Gradient Text

Updated: March 3, 2023 By: A Goodman Post a comment

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.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Articles