DocsAurora Flow

Aurora Flow

A procedural atmospheric hero background with layered silk flow, diffused aurora light, subtle interaction, and production-ready presets.

Installation

pnpm dlx shadcn@latest add @componentry/aurora-flow

Usage

Aurora Flow renders one WebGL quad, caps pixel density, pauses outside the viewport, and draws only a static frame when reduced motion is requested.

import { AuroraFlow } from "@/components/ui/aurora-flow"

<AuroraFlow
  preset="ocean"
  className="min-h-[600px]"
/>

API Reference

PropertyTypeDefault
colors

Up to five custom hex colors overriding the selected preset.

readonly string[]—
preset

Production palette: ocean, aurora, sky, cloud, sunset, midnight, ice, dream, nebula, emerald, lavender, or mono.

AuroraFlowPreset"ocean"
speed

Global motion speed multiplier.

number1
intensity

Strength of flowing color and silk highlights.

number1
opacity

Final canvas opacity.

number1
blur

Diffusion softness applied to atmospheric fields.

number1
contrast

Final color contrast.

number1.04
brightness

Final scene brightness.

number1
grain

Enables fine film-inspired grain.

booleantrue
grainOpacity

Strength of fine grain.

number0.22
layers

Procedural FBM depth, clamped from 3 to 7.

number6
flowScale

Scale of the broad atmospheric structures.

number1
flowStrength

Strength of domain warping and silk folds.

number1
flowDirection

Primary flow direction in degrees.

number-18
animationSpeed

Fine multiplier for procedural evolution.

number1
pointerInteraction

Enables restrained pointer-driven flow bending.

booleantrue
pointerStrength

Maximum pointer influence.

number0.7
scrollInteraction

Enables subtle scroll-driven depth movement.

booleanfalse
parallaxStrength

Strength of scroll parallax.

number0.5
lighting

Enables the broad traveling bloom.

booleantrue
lightingIntensity

Brightness of traveling light.

number0.8
lightingRadius

Diffusion radius of traveling light.

number1
lightingSpeed

Independent light movement speed.

number0.8
ambientGlow

Enables the broad central ambient lift.

booleantrue
ambientOpacity

Strength of ambient illumination.

number0.7
noise

Enables low-frequency atmospheric haze.

booleantrue
noiseOpacity

Strength of atmospheric haze.

number0.16
noiseScale

Scale of the haze field.

number1
vignette

Enables soft edge falloff.

booleantrue
vignetteStrength

Strength of edge falloff.

number0.55
borderRadius

Radius applied to the background container.

CSSProperties['borderRadius']0
className

Additional classes for sizing and placement.

string—
style

Additional inline styles for the root container.

CSSProperties—
children

Optional content rendered above the atmospheric canvas.

ReactNode—

View source

Click the icon in the preview panel to browse source for each variant.

Keep in mind

This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.

Need a custom component?

I build bespoke UI components & websites tailored to your brand.

DM me on X