Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Text

  • Text
  • Heading
  • SectionHeader
  • Prose
  • Markdown
  • Formula
  • AuroraText
  • LineShadowText
  • AnimatedShinyText
  • AnimatedGradientText
  • WordRotate
  • TypingAnimation
  • SparklesText
  • SplitText
  • BlurText
  • FlipText
  • TextReveal
  • DecryptedText
  • GlitchText
  • CircularText
  • ScrollReveal
  • TrueFocus
  • ASCIIText
  • CurvedLoop
  • FallingText
  • FuzzyText
  • ScrambledText
  • ScrollFloat
  • ScrollVelocity
  • Shuffle
  • TextCursor
  • TextPressure
  • VariableProximity

Code

  • Code
  • CodeBlock
  • Snippet
  • CodeDiff
  • Kbd

AuroraText

aurora-text

Animates a multicolor aurora gradient across inline text.

Usage

Basic usage

Uses the Hulian chart-token gradient by default and adapts to the active theme.

HulianHulian
tsx
<AuroraText className="text-4xl font-bold">Hulian</AuroraText>

Flow speed

speed Controls the streamer speed magnification, the larger it is, the faster it is (default 1).

AuroraAurora
tsx
<AuroraText className="text-4xl font-bold" speed={3}>
  Aurora
</AuroraText>

Custom gradient color

colors Pass in any dock color array (it is recommended to use token for light and dark).

SpectrumSpectrum
tsx
<AuroraText
  className="text-4xl font-bold"
  colors={["var(--color-chart-2)", "var(--color-chart-4)", "var(--color-primary)"]}
>
  Spectrum
</AuroraText>

Title level typesetting

As a headline embellishment, ordinary text is mixed and only the keywords are highlighted.

Brand new HulianHulian Design System

tsx
<h2 className="text-3xl font-bold text-foreground">
  Brand new <AuroraText>Hulian</AuroraText> design system
</h2>

When to use

Use AuroraText to add an animated aurora gradient to a short heading or brand phrase. It clips the background to the text and uses four HulianUI chart tokens by default, so it follows light and dark themes. For a sweeping highlight, use AnimatedShinyText. For a moving inline gradient, use AnimatedGradientText. Use Text for ordinary copy, and avoid animating long passages.

Import

ts
import { AuroraText } from "@hulianui/ui"

Props

NameTypeDefaultDescription
colorsstring[]4 HulianUI chart tokensGradient stop colors that follow the active theme by default.
speednumber1Animation speed multiplier; larger values move faster.

Inherits ComponentPropsWithoutRef<"span"> except color, including className and style.

Slots

SlotTypeDescription
childrenReactNodeText to render.

Usage guidelines

  • The component renders a <span>. The visible effect depends on surrounding text-* and font-* styles; empty content has no visible effect.
  • Every custom colors entry must be a valid CSS color. HulianUI tokens need the --color- prefix when used in SVG or gradients; see the HulianUI token conventions.

Related

Text · Heading · Prose · Markdown · AnimatedShinyText · AnimatedGradientText

Playground

HulianHulian
<AuroraText speed={1}>Hulian</AuroraText>
PreviousFormulaTypographyNextLineShadowText

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Slots
    • Usage guidelines
    • Related
  • Playground