Tailwind CSS Gradient Generator

Beautiful gradients instantly styled with Tailwind CSS. Pick your colors, preview in real UI components, and copy the code — all in one place.

Gradient Settings

Gradient colors

Linear gradient direction

Tailwind CSS UI Elements

Tailwind CSS Gradient Text

Tailwind CSS Code Snippet

<h1 class="bg-gradient-to-r from-[#397ad5] bg-clip-text text-transparent"></h1>
Like the button style? Press to see Tailwind CSS styling

No Animation Buttons

Background Filled Buttons

Animated Slide Buttons

Tailwind CSS Code Snippet

<button class="relative cursor-pointer rounded border-2 border-transparent bg-white bg-clip-padding px-5 py-2 text-sm font-semibold after:absolute after:-inset-0.5 after:-z-10 after:rounded after:bg-gradient-to-r after:from-[#397ad5] after:content-['']"></button>

Tailwind CSS gradient background

Tailwind CSS Gradient background

Tailwind CSS Code Snippet

<div class="bg-gradient-to-r from-[#397ad5]"></div>

Not quite the right gradient? Discover more

Fun Green

Color codes used in fun green gradient: #8bc34b, #aed581, #54892f

Judge Gray

Color codes used in judge gray gradient: #a8a8a8, #d4d4d4, #696969

Mine Shaft

Color codes used in mine shaft gradient: #4d3c2e, #8c704f, #c9a669

Mine Shaft Mystery

Color codes used in mine shaft mystery gradient: #3b3b3b, #7a7a7a, #b0b0b0

Midnight Serenity

Color codes used in midnight serenity gradient: #000000, #212121, #454545

Nightmare Carnival

Color codes used in nightmare carnival gradient: #4a0080, #ff4400, #ffd900

Elegant Liquid Gold

Color codes used in elegant liquid gold gradient: #8a0000, #ff6b6b, #d4af35

Sunset Serenade

Color codes used in sunset serenade gradient: #ff8b42, #ff4d4f, #f9d624
Explore more gradients