# Aurora

> Layered curtains of light with a bright lower edge, drawn on a transparent background.

Source: https://www.honestui.com/docs/shaders/aurora

<ComponentPreview name="aurora-demo" />

## Overview [#overview]

Aurora draws three overlapping curtains of light. Each one has a bright, slightly soft lower edge that sways with noise, fine vertical rays drifting along it, and a long fade upward. The colors spread left to right across `colorStops`.

The background is transparent, so the light sits over whatever is behind the canvas: a dark page color, an image, or another surface. Use it at the top of a dark hero, a sign-in page, or an announcement banner.

## Installation [#installation]

<CommandBlock commands="[&#x22;honestui&#x22;]" />

## Usage [#usage]

```tsx
import { Aurora } from "honestui/shaders"

<div className="h-96 bg-[#0b0f1a]">
  <Aurora
    className="size-full"
    colorStops={["#7ee0c3", "#6aa8f0", "#a58cf0"]}
    intensity={0.85}
  />
</div>
```

Aurora reads best on a dark background. On a light page, lower `intensity` and use deeper color stops so the light stays visible.

## Accessibility [#accessibility]

Aurora is decorative and its canvas is hidden from assistive technology. Place text and actions in normal HTML; if text overlaps the light, check its contrast at the brightest point of the curtains.

The effect pauses while it is offscreen or the tab is hidden, and shows a still frame when the user prefers reduced motion. Without WebGL2 the container shows only its own background.

## API Reference [#api-reference]


  ### `colorStops`

type: `string[]` · default: `[&#x22;#7ee0c3&#x22;, &#x22;#6aa8f0&#x22;, &#x22;#a58cf0&#x22;]`

Two to five hex colors spread from left to right.

  ### `amplitude`

type: `number` · default: `1`

How far the curtains sway, from 0 (flat) to 2.

  ### `blend`

type: `number` · default: `0.5`

Softness of the lower edge, from 0 (crisp) to 1 (diffuse).

  ### `intensity`

type: `number` · default: `0.85`

Peak opacity of the light, from 0 to 1.

  ### `height`

type: `number` · default: `0.55`

Position of the lower edge, from 0 (bottom) to 1 (top).

  ### `speed`

type: `number` · default: `1`

Animation speed.

  ### `paused`

type: `boolean` · default: `false`

Renders a still frame instead of animating.

  ### `className`

type: `string`

Class for sizing and positioning the container.
