Skip to content

Instantly share code, notes, and snippets.

@paulocastellano
Forked from dillonchanis/example.css
Created July 18, 2021 00:28
Show Gist options
  • Save paulocastellano/15338afad1ea7dbe28becad016d179ee to your computer and use it in GitHub Desktop.
Save paulocastellano/15338afad1ea7dbe28becad016d179ee to your computer and use it in GitHub Desktop.
Tailwind Utility for using gradients with text
@layer utilities {
.text-gradient {
background-clip: text;
-webkit-text-fill-color: transparent;
}
}
<span class="text-gradient bg-gradient-to-r from-pink-400 via-purple-400 to-indigo-500">
Download for free today.
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment