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-flowAurora 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]"
/>| Property | Type | Default |
|---|---|---|
colorsUp to five custom hex colors overriding the selected preset. | readonly string[] | — |
presetProduction palette: ocean, aurora, sky, cloud, sunset, midnight, ice, dream, nebula, emerald, lavender, or mono. | AuroraFlowPreset | "ocean" |
speedGlobal motion speed multiplier. | number | 1 |
intensityStrength of flowing color and silk highlights. | number | 1 |
opacityFinal canvas opacity. | number | 1 |
blurDiffusion softness applied to atmospheric fields. | number | 1 |
contrastFinal color contrast. | number | 1.04 |
brightnessFinal scene brightness. | number | 1 |
grainEnables fine film-inspired grain. | boolean | true |
grainOpacityStrength of fine grain. | number | 0.22 |
layersProcedural FBM depth, clamped from 3 to 7. | number | 6 |
flowScaleScale of the broad atmospheric structures. | number | 1 |
flowStrengthStrength of domain warping and silk folds. | number | 1 |
flowDirectionPrimary flow direction in degrees. | number | -18 |
animationSpeedFine multiplier for procedural evolution. | number | 1 |
pointerInteractionEnables restrained pointer-driven flow bending. | boolean | true |
pointerStrengthMaximum pointer influence. | number | 0.7 |
scrollInteractionEnables subtle scroll-driven depth movement. | boolean | false |
parallaxStrengthStrength of scroll parallax. | number | 0.5 |
lightingEnables the broad traveling bloom. | boolean | true |
lightingIntensityBrightness of traveling light. | number | 0.8 |
lightingRadiusDiffusion radius of traveling light. | number | 1 |
lightingSpeedIndependent light movement speed. | number | 0.8 |
ambientGlowEnables the broad central ambient lift. | boolean | true |
ambientOpacityStrength of ambient illumination. | number | 0.7 |
noiseEnables low-frequency atmospheric haze. | boolean | true |
noiseOpacityStrength of atmospheric haze. | number | 0.16 |
noiseScaleScale of the haze field. | number | 1 |
vignetteEnables soft edge falloff. | boolean | true |
vignetteStrengthStrength of edge falloff. | number | 0.55 |
borderRadiusRadius applied to the background container. | CSSProperties['borderRadius'] | 0 |
classNameAdditional classes for sizing and placement. | string | — |
styleAdditional inline styles for the root container. | CSSProperties | — |
childrenOptional content rendered above the atmospheric canvas. | ReactNode | — |
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.