Skip to content
Textlab
1
Browse

ComponentsLight

Aurora text

Northern lights drift inside the letters.

Northern lights

Installation

$ npx shadcn@latest add @textlab/aurora-text

Needs @textlab in your components.json. Setup takes a minute.

Usage

usage.tsx
import { AuroraText } from "@/components/textlab/aurora-text/aurora-text";

<AuroraText as="h1" text="Northern lights" />

Variants

polarembermint

Props

PropTypeDefaultDescription
text*string–The copy.
variant"polar" | "ember" | "mint""polar"Palette.
colorsstring[]–Three or four custom colors; overrides the variant.
speednumber14Seconds for one drift cycle.
asElementType"span"Rendered element.
reducedMotion"user" | "always" | "never""user"user follows the OS setting; always shows the still version.
classNamestring–Merged onto the root.

When to use it

Reach for it

  • Large display headlines on dark or very light pages.
  • Atmospheric brand moments.

Skip it

  • Small text; the bands need room to read.
  • Next to another gradient effect.

Accessibility and motion

Accessibility

  • Plain text clipped to color. Check contrast of the darkest band against the background.

Motion

  • A 14 s ease-in-out drift; slow enough to feel like weather, not an animation.
Reduced motion. A still aurora frame.

Performance

  • Four background layers moved by one CSS animation.