# Aurora Background

> Curtains of soft light that sway like an aurora.

Three blurred bands drifting out of phase. Atmospheric in the theme's own colours; vivid with a brand palette.

- Family: Backgrounds
- Plan: Creative. Included with Creative.
- Requires: React, Tailwind CSS v4 and the motion package
- Page with a live preview: https://galactrex.com/ui/aurora-background/
- Licence: https://galactrex.com/ui/license/

## Install

```sh
npx @galactrex/ui login   # once, with an API key from https://galactrex.com/account/
npx @galactrex/ui add aurora-background
```

It installs to `components/galactrex/aurora-background.tsx`, with the shared motion helpers beside it. First time in a project: `npx @galactrex/ui init` (setup guide: https://galactrex.com/docs/ui-components-setup/).

## Usage

```tsx
import { AuroraBackground } from "@/components/galactrex/aurora-background";

<section className="relative overflow-hidden">
  <AuroraBackground />
  <h1 className="relative">Light on the horizon</h1>
</section>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `colors` | `[string, string, string]` | — | Three CSS colours; defaults to theme glow, muted and accent. |
| `speed` | `number` | `16` | Seconds for one sway. |
| `intensity` | `number` | `0.35` | Light strength, 0 to 1. |
| `position` | `"top" \| "center"` | `"top"` | Where the curtains hang. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Monochrome.** Theme tones, a quiet glow.
- **Brand.** Pass `colors` for a vivid aurora.

## Accessibility

- Decorative only and aria-hidden; never takes pointer events.

## Motion

- Transform-only sway on three blurred layers.
- Still offscreen.
- Reduced motion: the curtains hold still.
