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

Backgrounds

  • DotPattern
  • GridPattern
  • StripedPattern
  • Spotlight
  • FadeMask
  • RetroGrid
  • Ripple
  • Meteors
  • Aurora
  • Particles
  • FlickeringGrid
  • WavyBackground
  • Silk
  • Iridescence
  • Threads
  • Orb
  • LiquidChrome
  • Balatro
  • Ballpit
  • Beams
  • ColorBends
  • DarkVeil
  • Dither
  • DotField
  • EvilEye
  • FaultyTerminal
  • Ferrofluid
  • FloatingLines
  • Galaxy
  • GradientBlinds
  • Grainient
  • GridDistortion
  • GridMotion
  • GridScan
  • Hyperspeed
  • LetterGlitch
  • Lightfall
  • Lightning
  • LightPillar
  • LightRays
  • LineWaves
  • LiquidEther
  • PixelBlast
  • PixelSnow
  • Plasma
  • PlasmaWave
  • Prism
  • PrismaticBurst
  • Radar
  • RippleGrid
  • ShapeGrid
  • SideRays
  • SoftAurora

Overlay Effects

  • BorderBeam
  • ShineBorder
  • GlareHover
  • Lens
  • AnimatedBeam
  • OrbitingCircles
  • ProgressiveBlur
  • CardSpotlight
  • Reveal
  • Antigravity
  • BlobCursor
  • ClickSpark
  • Crosshair
  • ElectricBorder
  • GhostCursor
  • GradualBlur
  • ImageTrail
  • LaserFlow
  • MagicRings
  • Magnet
  • MagnetLines
  • MetaBalls
  • MetallicPaint
  • OrbitImages
  • PixelTrail
  • PixelTransition
  • Ribbons
  • ShapeBlur
  • SplashCursor
  • StarBorder
  • StickerPeel
  • TargetCursor
  • Cubes
  • Tilt
  • BorderGlow
  • GlassIcons
  • GlassSurface
  • Lanyard
  • ModelViewer
  • FluidGlass

Aurora

aurora

Renders softly moving layered aurora gradients as a background.

Usage

Basic usage

Put it into the relative + overflow-hidden container, Aurora is layered with absolute inset-0, and children is automatically layered on top of Aurora.

Aurora
tsx
<div className="relative h-56 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.14 0.02 255)" }}>
  <Aurora className="absolute inset-0 opacity-80">
    <div className="flex h-full items-center justify-center text-sm font-medium text-white/80">
      Aurora
    </div>
  </Aurora>
</div>

Custom ribbon

Pass any CSS color via colors (supports chart token / oklch) and switch to warm orange tone.

tsx
<Aurora
  colors={["var(--color-chart-3)", "var(--color-chart-1)", "oklch(0.72 0.22 30)"]}
  blur={40}
  speed={25}
  className="absolute inset-0 opacity-75"
/>

Blur and speed

blur The larger the ribbon, the softer it is. The larger speed is, the slower the animation is. The combination creates a wallpaper-level delicate flow.

Hulian component library

Enterprise-grade · High quality · Native-ready

tsx
<Aurora blur={60} speed={45} className="absolute inset-0 opacity-90">
  <div className="flex h-full flex-col items-center justify-center gap-2">
    <p className="text-lg font-semibold text-white">Hulian Component Library</p>
    <p className="text-xs text-white/60">Enterprise level · High quality · Native adaptation </p>
  </div>
</Aurora>

Close Radial mask

When showRadialMask={false}, the aurora covers the entire container and no longer fades toward the four corners.

tsx
<Aurora showRadialMask={false} className="absolute inset-0 opacity-70" />

When to Use

Use it for a soft, flowing color backdrop behind a hero, landing page, or marketing section. Its pure CSS implementation renders as an RSC without Canvas or WebGL overhead. Use Particles for individual particles or pointer interaction, and Silk or Iridescence for a more textured WebGL sheen.

Import

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

Props

NameTypeDefaultDescription
colorsstring[]["var(--color-chart-1)","var(--color-chart-2)","var(--color-chart-4)"]Ribbon colors; accepts any CSS color and defaults to theme-aware chart tokens
blurnumber30Layer blur radius in pixels; 10-80 is recommended, since low values create hard edges and high values diffuse the effect
speednumber20Duration of one animation cycle in seconds; higher values move more slowly
showRadialMaskbooleantrueFade the effect radially toward the corners; disable it to fill the container uniformly
classNamestring-Class name forwarded to the Aurora layer for opacity or blend-mode adjustments
styleCSSProperties-Inline styles passed through to the root container

Slots

SlotTypeDescription
childrenReactNodeContent layered above the Aurora effect

Usage Guidelines

  • Give the parent relative and overflow-hidden, or the oversized moving gradient will escape its bounds.
  • Adjust Aurora's own opacity through className (the showcases use opacity-60 through opacity-90). Applying opacity to a wrapper also fades its content.

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Ripple

Playground

Aurora
<div className="relative h-56 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.14 0.02 255)" }}>
  <Aurora
    blur={30}
    speed={20}
    showRadialMask={true}
    className="absolute inset-0 opacity-80"
  />
</div>
PreviousMeteorsDecorationNextParticles

On this page

  • Usage
  • Documentation
    • When to Use
    • Import
    • Props
    • Slots
    • Usage Guidelines
    • Related
  • Playground