Updated
Aurora
Customize
Colors
Background
Intensity1.00
Layers3
Height0.45
Spread0.20
Waviness1.00
Stretch1.00
Speed1.0
Grain0.020
Seed0
Lean1.00
Installation
npx shadcn@latest add https://uibrik.com/r/aurora.jsonAdd the cn helper
Imports
cnfrom@/lib/utils, whichshadcn initcreates. Add it by hand without shadcn.Copy the source into your project
components/uibrik/aurora/aurora.tsx"use client"; import { NOISE, VERT, createProgram, type FrameInfo, type Prepass, ShaderSurface, type ShaderBackgroundProps, } from "../_shader-background/ShaderSurface"; import { firstFrame } from "./first-frame"; // Three soft curtains of light, each a slow wavy band that fades upward and brightens and dims in // broad folds along its length. On dark pages the light adds up like a glow; on light pages it's laid // on like thin ink, so it stays visible against white. The curtains lean toward the pointer. const LAYERS = 5; // most curtains; the pre-pass texture has a row for each const UNIFORMS = /* glsl */ ` uniform float u_intensity; // brightness of the light uniform float u_intensityDark; // the same on dark pages uniform float u_height; // where the curtains sit, 0 bottom .. 1 top uniform float u_spread; // how far the light reaches upward
Adds the files to
components/uibrik/aurora. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/aurora.Too large to paste whole, so Copy prompt gives a short prompt that installs it with the CLI. Download the full prompt to attach it instead.
Usage
import { Aurora } from "@/components/uibrik/aurora/aurora";<Aurora colors={["#2dd4a7", "#36c3b4", "#6d74f0", "#41cf9b"]} background="" intensity={1} layers={3} height={0.45} spread={0.2} waviness={1} stretch={1} speed={1} grain={0.02} seed={0} animate interactive lean={1} backgroundDark="" // intensityDark={0}> …</Aurora>Where to use Aurora
SaaS and AI heroes
Slow curtains of light add depth behind a headline without stealing attention from it.
Pairs with Announcement Pill
Sign-in screens
A quiet moving backdrop makes an auth page feel finished while the form stays the focus.
Pairs with Auth Forms
Launch announcements
Rays that lean toward the cursor give an event or launch page a sense of occasion.
Props
Aurora- colors
- Type string[]
- ["#2dd4a7","#36c3b4","#6d74f0","#41cf9b"]
- Hex colours, 2 to 6, used exactly as given.
- background
- Type string
- ""
- Base colour behind the light; empty follows the page.
- intensity
- Type number
- 1
- Brightness of the light.
- layers
- Type number
- 3
- Number of curtains.
- height
- Type number
- 0.45
- Where the curtains sit, 0 at the bottom to 1 at the top.
- spread
- Type number
- 0.2
- How far the light reaches upward.
- waviness
- Type number
- 1
- How much the curtains undulate; 0 is flat.
- stretch
- Type number
- 1
- Horizontal size of the waves; larger is broader and calmer.
- speed
- Type number
- 1
- Animation speed; 1 is the designed pace.
- grain
- Type number
- 0.02
- Film grain strength.
- seed
- Type number
- 0
- Shifts the composition, so two backgrounds with the same settings still differ.
- animate
- Type boolean
- true
- Move on its own. Off draws one still frame.
- interactive
- Type boolean
- true
- React to the pointer.
- lean
- Type number
- 1
- How strongly the curtains lean toward the pointer.
- intensityDark
- Type number
- –
- Brightness on dark pages, where light adds up as a glow; defaults to `intensity`.
- backgroundDark
- Type string
- –
- Base colour on dark pages, with `background` as the light one, so the base follows the theme.
- children
- Type ReactNode
- –
- Content shown on top of the background.
- className
- Type string
- –
- Classes for the box; it fills whatever size you give it.