Ballmac UI home

Aurora Background

Soft, slowly drifting aurora light made of blurred token-colored glows with fine vertical curtains and an optional radial fade. Pure CSS layers, paused off-screen, still under reduced motion.

Introducing Acme 3

Quiet software for loud ideas.

Notes, tasks and docs that stay out of your way until you need them.

Installation

$ pnpm dlx shadcn@latest add @ballmac/aurora-background

Usage

import { AuroraBackground } from "@/components/ballmac/aurora-background"

The full example is in the Code tab above.

Examples

Warm, no curtains

Golden hour

Warm by default.

API reference

PropTypeDefault
colors

Colors of the light, from left to right. Any CSS colors or var().

string[]["var(--chart-1)", "var(--chart-2)", "var(--chart-4)", "var(--chart-1)"]
duration

Seconds for one slow drift of the light. Higher is calmer.

number22
intensity

Overall strength of the light (0–1).

number0.75
blur

Blur radius of the light in pixels.

number64
curtains

Draw fine vertical curtains through the light, like a real aurora.

booleantrue
radialMask

Fade the aurora out toward the bottom and sides with an elliptical mask.

booleantrue

Also accepts the standard attributes of its root element.

Use with AI

Place <AuroraBackground /> as the first child of a relative, overflow-hidden hero; it is absolute inset-0, aria-hidden and pointer-events-none. The light sits along the top edge and fades down, so headline text reads on the page background. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Aurora Background (@ballmac/aurora-background) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Behind a hero headline or a launch announcement
  • Sign-in or waitlist pages that need atmosphere without imagery

Not for

  • Behind dense content or data
  • Several stacked sections (use once per page, at the top)

Registry JSON: https://ui.ballmac.com/r/aurora-background.json

Credits

Free to use in personal and commercial projects.

npm
None
Registry
shadcn/utils