A procedural atmospheric hero background with layered silk flow, diffused aurora light, subtle interaction, and production-ready presets.
pnpm dlx shadcn@latest add @componentry/aurora-flowDependencies: clsx tailwind-merge
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]"
/>| Prop | Type | Default |
|---|---|---|
colors | readonly string[]Up to five custom hex colors overriding the selected preset. | — |
preset | AuroraFlowPresetProduction palette: ocean, aurora, sky, cloud, sunset, midnight, ice, dream, nebula, emerald, lavender, or mono. | "ocean" |
speed | numberGlobal motion speed multiplier. | 1 |
intensity | numberStrength of flowing color and silk highlights. | 1 |
opacity | numberFinal canvas opacity. | 1 |
blur | numberDiffusion softness applied to atmospheric fields. | 1 |
contrast | numberFinal color contrast. | 1.04 |
brightness | numberFinal scene brightness. | 1 |
grain | booleanEnables fine film-inspired grain. | true |
grainOpacity | numberStrength of fine grain. | 0.22 |
layers | numberProcedural FBM depth, clamped from 3 to 7. | 6 |
flowScale | numberScale of the broad atmospheric structures. | 1 |
flowStrength | numberStrength of domain warping and silk folds. | 1 |
flowDirection | numberPrimary flow direction in degrees. | -18 |
animationSpeed | numberFine multiplier for procedural evolution. | 1 |
pointerInteraction | booleanEnables restrained pointer-driven flow bending. | true |
pointerStrength | numberMaximum pointer influence. | 0.7 |
scrollInteraction | booleanEnables subtle scroll-driven depth movement. | false |
parallaxStrength | numberStrength of scroll parallax. | 0.5 |
lighting | booleanEnables the broad traveling bloom. | true |
lightingIntensity | numberBrightness of traveling light. | 0.8 |
lightingRadius | numberDiffusion radius of traveling light. | 1 |
lightingSpeed | numberIndependent light movement speed. | 0.8 |
ambientGlow | booleanEnables the broad central ambient lift. | true |
ambientOpacity | numberStrength of ambient illumination. | 0.7 |
noise | booleanEnables low-frequency atmospheric haze. | true |
noiseOpacity | numberStrength of atmospheric haze. | 0.16 |
noiseScale | numberScale of the haze field. | 1 |
vignette | booleanEnables soft edge falloff. | true |
vignetteStrength | numberStrength of edge falloff. | 0.55 |
borderRadius | CSSProperties['borderRadius']Radius applied to the background container. | 0 |
className | stringAdditional classes for sizing and placement. | — |
style | CSSPropertiesAdditional inline styles for the root container. | — |
children | ReactNodeOptional content rendered above the atmospheric canvas. | — |
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.