Aurora backgroundPro
Slow drifting northern-lights glow behind any section.
New · 30 Pro components
Light 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
Usage
Import it from @/components/ui/aurora-background after installing.
example.tsx
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.
| 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.
Lode222 doc pagesllms.txt