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

Dependencies: clsx tailwind-merge

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

PropTypeDefault
colorsreadonly string[]

Up to five custom hex colors overriding the selected preset.

—
presetAuroraFlowPreset

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

"ocean"
speednumber

Global motion speed multiplier.

1
intensitynumber

Strength of flowing color and silk highlights.

1
opacitynumber

Final canvas opacity.

1
blurnumber

Diffusion softness applied to atmospheric fields.

1
contrastnumber

Final color contrast.

1.04
brightnessnumber

Final scene brightness.

1
grainboolean

Enables fine film-inspired grain.

true
grainOpacitynumber

Strength of fine grain.

0.22
layersnumber

Procedural FBM depth, clamped from 3 to 7.

6
flowScalenumber

Scale of the broad atmospheric structures.

1
flowStrengthnumber

Strength of domain warping and silk folds.

1
flowDirectionnumber

Primary flow direction in degrees.

-18
animationSpeednumber

Fine multiplier for procedural evolution.

1
pointerInteractionboolean

Enables restrained pointer-driven flow bending.

true
pointerStrengthnumber

Maximum pointer influence.

0.7
scrollInteractionboolean

Enables subtle scroll-driven depth movement.

false
parallaxStrengthnumber

Strength of scroll parallax.

0.5
lightingboolean

Enables the broad traveling bloom.

true
lightingIntensitynumber

Brightness of traveling light.

0.8
lightingRadiusnumber

Diffusion radius of traveling light.

1
lightingSpeednumber

Independent light movement speed.

0.8
ambientGlowboolean

Enables the broad central ambient lift.

true
ambientOpacitynumber

Strength of ambient illumination.

0.7
noiseboolean

Enables low-frequency atmospheric haze.

true
noiseOpacitynumber

Strength of atmospheric haze.

0.16
noiseScalenumber

Scale of the haze field.

1
vignetteboolean

Enables soft edge falloff.

true
vignetteStrengthnumber

Strength of edge falloff.

0.55
borderRadiusCSSProperties['borderRadius']

Radius applied to the background container.

0
classNamestring

Additional classes for sizing and placement.

—
styleCSSProperties

Additional inline styles for the root container.

—
childrenReactNode

Optional content rendered above the atmospheric canvas.

—

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
PreviousAnimated GradientNextClosing Plasma