Aurora
Slow curtains of light drifting behind your content.
Kp 6 over Tromsø tonight
Clear from 00:40 to 03:10. Face north from Prestvannet.
Installation
npx shadcn@latest add https://neonkit.heyaadi.com/r/aurora.jsonUsage
import { Aurora } from "@/components/ui/aurora"
<section className="relative overflow-hidden bg-[#05060a]">
<Aurora />
<h1 className="relative">Quiet light for loud ideas</h1>
</section>Examples
Custom colors
Pass up to three colors, front curtain first. Without them, the curtains use --neon, a violet fringe mixed from it, and a paler core.
Behind a card
Turn opacity down behind forms and body copy so text keeps its contrast.
Opacity and speed
speed scales every drift at once. 0 holds the curtains in place.
API reference
Fills its nearest positioned parent, so give the parent position: relative. Content placed after it with relative positioning sits on top. Accepts native div attributes.
| Prop | Type | Default |
|---|---|---|
color | NeonColorMain curtain color. The other two default tints are mixed from it. | inherited |
colors | NeonColor[]Up to three curtain colors, front to back. Each one replaces the matching default tint. | None |
speed | numberSpeed multiplier for the drift and the ripple. 0 holds still. | 1 |
opacity | numberOverall strength of the light, 0 to 1. | 0.85 |
Accessibility
- Decorative: rendered with aria-hidden and pointer-events: none, so it never takes focus or clicks.
- Pure CSS. Every layer animates transform or opacity with literal keyframes, so the compositor runs it without repaints or JavaScript.
- Under prefers-reduced-motion the curtains hold still in their resting arrangement.