Aurora backgroundPro
Slow drifting northern-lights glow behind any section.
pnpm dlx shadcn@latest add @lode/aurora-backgroundLight up your launch page
A slow drifting glow behind any section. Calm, not distracting.
When to use
- Hero sections, pricing headers and empty states that need atmosphere.
When not to use
- Behind dense data or long text: it lowers contrast.
- More than one per page.
Installation
pnpm dlx shadcn@latest add @lode/aurora-backgroundPro components need an API key and the registry in components.json. See CLI and API keys.
1Install the dependencies
npm install motion2Copy the source into your project
Usage
Import it from @/components/ui/aurora-background after installing.
import { AuroraBackground } from "@/components/ui/aurora-background";
export function Hero() {
return (
<AuroraBackground className="rounded-3xl">
<div className="px-6 py-24 text-center">…</div>
</AuroraBackground>
);
}API reference
AuroraBackground
A container with drifting blurred color fields behind its children. Accepts any div attributes.
colors= lime, cyan, violet, pink
string[]
Up to four colors.
intensity= 0.55
number
Overall opacity, 0–1.
speed= 18
number
Seconds per drift cycle; larger is calmer.
fadeBottom= true
boolean
Fade the glow toward the bottom edge.
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | lime, cyan, violet, pink | Up to four colors. |
| intensity | number | 0.55 | Overall opacity, 0–1. |
| speed | number | 18 | Seconds per drift cycle; larger is calmer. |
| fadeBottom | boolean | true | Fade the glow toward the bottom edge. |
Accessibility
- The glow is aria-hidden and sits behind content.
- Static under reduced motion.
- Check text contrast over the brightest color.
Motion
- Each field drifts and breathes on its own mirrored loop, offset by 3 seconds.
Responsive behavior
- Fills its container at any size.
Performance
- Four blurred, transform-only layers; GPU composited.
Notes for AI
- Use theme-friendly colors; the glow sits on var(--background).
This page as Markdown, for assistants and coding agents:
/components/aurora-background/markdownThe full library index for assistants is at /llms.txt.
Related
Lode·229 doc pages·llms.txt