# Light Stream

> An hourglass of fine iridescent light streaks with glittering dust, flowing through the dark.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Backgrounds › Backgrounds |
| Live preview | https://uibrik.com/components/light-stream |
| Writes | 1 files into `components/uibrik/light-stream/`, 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/light-stream.json
```

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

Can't run commands? https://uibrik.com/components/light-stream/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 { LightStream } from "@/components/uibrik/light-stream/light-stream";

const colors = ["#ff6a1a", "#ffb04a", "#fff0dc", "#ff7d2e", "#5fe3d3", "#9a78ff"];

<LightStream
  colors={colors}
  background="#050505"
  intensity={1.35}
  density={0.85}
  waist={0.1}
  flare={1.55}
  curve={1}
  angle={-32}
  length={0.55}
  glow={1}
  chroma={0.9}
  white={0.8}
  dust={0.5}
  dustSize={0.6}
  dustGlow={0.5}
  direction="up"
  speed={1.1}
  grain={0.065}
  seed={0}
  animate
  interactive
  lean={0.4}
  follow={0.8}
>
  …
</LightStream>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/light-stream.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `colors` | `string[]` | `["#ff6a1a","#ffb04a","#fff0dc","#ff7d2e","#5fe3d3","#9a78ff"]` | Streak tints; the first also warms the glow. 2 to 6 colours. |
| `background` | `string` | `"#050505"` | Colour behind the light. |
| `intensity` | `number` | `1.35` | Exposure: how bright the light is. |
| `density` | `number` | `0.85` | How many streaks; higher is finer and denser. |
| `waist` | `number` | `0.1` | Width of the stream at its narrowest. |
| `flare` | `number` | `1.55` | How much the stream opens toward its ends. |
| `curve` | `number` | `1` | How much the stream bends and sways. |
| `angle` | `number` | `-32` | Tilt of the stream. |
| `length` | `number` | `0.55` | Length of the streak dashes; larger is longer. |
| `glow` | `number` | `1` | Halo around each streak and haze around the core. |
| `chroma` | `number` | `0.9` | Colour fringing at the edges of the streaks. |
| `white` | `number` | `0.8` | How much the hottest light burns to white. |
| `dust` | `number` | `0.5` | Glittering dust along the stream. |
| `dustSize` | `number` | `0.6` | Size of the dust sparks; each spark still varies around it. |
| `dustGlow` | `number` | `0.5` | How many sparks carry a soft halo; 1 is about one in six. |
| `direction` | `"up" \| "down"` | `"up"` | Which way the light flows. |
| `speed` | `number` | `1.1` | Animation speed; 1 is the designed pace. |
| `grain` | `number` | `0.065` | 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` | `0.4` | How far the stream bends toward the pointer. |
| `follow` | `number` | `0.8` | How lazily the stream follows the pointer, 0 (locked) to 1 (drifts after it). |

## Wire it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `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

- **AI and crypto heroes**: An hourglass of iridescent streaks gives a dark hero a glossy focal point.
- **Launch pages**: Glittering dust flowing through the dark suits product reveals.
- **Premium dark sections**: The stream works as a section backdrop behind a single key message.

## Same shelf: Backgrounds

- [Mesh Gradient](https://uibrik.com/components/mesh-gradient.md) (Pro): Six drifting points of colour melting into each other along soft, curling seams.
- [Oil Slick](https://uibrik.com/components/oil-slick.md) (Pro): Light on a film of oil over dark water, folding slowly through blue, gold and coral, shot on grainy film.
- [Pen Plotter](https://uibrik.com/components/pen-plotter.md) (Pro): A flow field plotted in ink line by line, on a sheet that sways like silk, with glints running down the threads; the pointer brushes the lines and a click sends a wave.
- [Pixel Burst](https://uibrik.com/components/pixel-burst.md) (Pro): Square pixels burst from the centre or the edges in a checkerboard that pales into loose, flickering pixels, with a ring pulsing out now and then.
- [Riso Flow](https://uibrik.com/components/riso-flow.md): A flowing gradient printed in grainy spot inks that drift slightly out of register.
- [Silk Cloth](https://uibrik.com/components/silk-cloth.md): A sheet of satin rippling in a light breeze, with a long sheen along every fold.

## Ground rules

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