2022-12-06

Tailwind CSS text gradient

  • bg-gradient-to-b
  • from-{color}
  • to-{color}
  • bg-clip-text
  • text-transparent
<div> <div class="bg-gradient-to-b from-yellow-200 to-red-600 bg-clip-text text-5xl font-black text-transparent"> TEXT </div> </div>

codepen