Account

Typography

Creative

Gradient Text

Monochrome by default so it reads as polish, not decoration; pass brand colours when you mean it.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add gradient-text

Usage

Example
import { GradientText } from "@/components/galactrex/gradient-text";

<GradientText as="h1">Every app you own</GradientText>

Source

Installs to components/galactrex/gradient-text.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
childrenReactNode—Text.
asElementType"span"Element.
colorsstring[]—Gradient colours.
durationnumber6Seconds per flow; 0 holds still.
anglenumber90Degrees.
classNamestring—Extra classes for the outer element.

Variants

  • Mono. Ink into grey.
  • Brand. Your colours.

Accessibility

  • Real text; keep contrast high across all stops.

Motion and reduced motion

  • Background position, alternating.
  • Reduced motion: still gradient.