GodUI

Aurora Text

Gradient text with a rainbow aurora that drifts across the letters.

Ship beautiful UI

Installation

pnpm dlx shadcn@latest add "https://godui.design/r/aurora-text.json"

AuroraText clips an animated gradient to the text via background-clip: text. The animation is CSS-only and respects prefers-reduced-motion — no font or JavaScript animation dependency required.

Usage

tsx
 
import { AuroraText } from "@/components/godui/aurora-text";

AuroraText is an inline <span>, so it inherits the surrounding font size and weight. Wrap it inside a heading and style that parent:

tsx
 
<h1 className="text-6xl font-bold tracking-tight">
  Ship <AuroraText>beautiful</AuroraText> UI
</h1>

Custom colors

Pass any list of CSS colors. The aurora loops back to the first stop for a seamless cycle, so two or three colors are enough.

tsx
 
<AuroraText colors={["#ff512f", "#dd2476", "#ff512f"]}>Sunset</AuroraText>

Speed

speed is a multiplier — 1 is roughly a 10s cycle, higher is faster.

tsx
 
<AuroraText speed={3}>Lightspeed</AuroraText>

Props

PropTypeDefaultDescription
childrenReactNodeText to render with the aurora gradient.
colorsstring[]Rainbow spectrumGradient stops the aurora cycles through.
speednumber1Speed multiplier; 1 ≈ 10s per cycle, higher is faster.

AuroraText also forwards every standard <span> attribute (className, style, id, …) to the root element.

On this page

Built with GodUI

Beautifully crafted motion components for modern interfaces.

Star on GitHub