About
An animated gradient text effect for headlines and highlighted phrases, with a polymorphic element, an optional glow halo, and automatic reduced-motion support.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Gradient Text to your project and fits it to your theme.
Code
How Gradient Text is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { GradientText } from "@/components/ui/gradient-text";
export default function GradientTextDemo() {
return (
<div className="flex min-h-[220px] w-full items-center justify-center bg-background p-10">
<h2 className="max-w-xl text-center text-3xl font-semibold text-foreground sm:text-4xl">
Spend smarter, <GradientText>every single month</GradientText>
</h2>
</div>
);
}
















