# Aurora

> Slow curtains of light with fine rays that lean toward the cursor.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Backgrounds › Backgrounds |
| Live preview | https://uibrik.com/components/aurora |
| Writes | 2 files into `components/uibrik/aurora/`, plus `components/uibrik/_shader-background/ShaderSurface.tsx` |
| Packages | none beyond React |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/aurora.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/aurora`.

Can't run commands? https://uibrik.com/components/aurora/prompt-full.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
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>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/aurora.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `colors` | `string[]` | `["#2dd4a7","#36c3b4","#6d74f0","#41cf9b"]` | Hex colours, 2 to 6, used exactly as given. |
| `background` | `string` | `""` | Base colour behind the light; empty follows the page. |
| `intensity` | `number` | `1` | Brightness of the light. |
| `layers` | `number` | `3` | Number of curtains. |
| `height` | `number` | `0.45` | Where the curtains sit, 0 at the bottom to 1 at the top. |
| `spread` | `number` | `0.2` | How far the light reaches upward. |
| `waviness` | `number` | `1` | How much the curtains undulate; 0 is flat. |
| `stretch` | `number` | `1` | Horizontal size of the waves; larger is broader and calmer. |
| `speed` | `number` | `1` | Animation speed; 1 is the designed pace. |
| `grain` | `number` | `0.02` | Film grain strength. |
| `seed` | `number` | `0` | Shifts the composition, so two backgrounds with the same settings still differ. |
| `animate` | `boolean` | `true` | Move on its own. Off draws one still frame. |
| `interactive` | `boolean` | `true` | React to the pointer. |
| `lean` | `number` | `1` | How strongly the curtains lean toward the pointer. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `intensityDark` | `number` |  | Brightness on dark pages, where light adds up as a glow; defaults to `intensity`. |
| `backgroundDark` | `string` |  | Base colour on dark pages, with `background` as the light one, so the base follows the theme. |
| `children` | `ReactNode` |  | Content shown on top of the background. |
| `className` | `string` |  | Classes for the box; it fills whatever size you give it. |

## Where it fits

- **SaaS and AI heroes**: Slow curtains of light add depth behind a headline without stealing attention from it. Pairs with [Announcement Pill](https://uibrik.com/components/announcement-pill.md).
- **Sign-in screens**: A quiet moving backdrop makes an auth page feel finished while the form stays the focus. Pairs with [Auth Forms](https://uibrik.com/components/auth-forms.md) (Pro).
- **Launch announcements**: Rays that lean toward the cursor give an event or launch page a sense of occasion.

## Same shelf: Backgrounds

- [Caustics](https://uibrik.com/components/caustics.md): Sunlight on a pool floor, from light rays bent by moving water; click to drop a ripple.
- [Chladni Sand](https://uibrik.com/components/chladni-sand.md) (Pro): Sand on a vibrating plate settling into its resonance figures, then dancing into the next note; click to change the note.
- [Column Gradient](https://uibrik.com/components/column-gradient.md) (Pro): A soft, grainy gradient seen through wide glass columns, each slid along by its own amount; the pointer is a light that glints down the ribs and drags the columns it passes.
- [Diagonal Beams](https://uibrik.com/components/diagonal-beams.md): One soft light falling across sharp, slanted pleats in the dark, its edge dissolving into fine grain.
- [Dither Gradient](https://uibrik.com/components/dither-gradient.md): A bending gradient drawn only in your colours through an ordered dither.
- [Dot Grid](https://uibrik.com/components/dot-grid.md): A quiet grid of dots lit by a drifting wave and by the cursor.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/aurora/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
