Aurora
Aurora is a decorative background layer that renders slowly drifting veils of light across the top of a positioned section. It is purely visual, sits behind content, and ignores pointer input.


Installed with shadcn add · 2 workarounds · theme from registry.json
- applied the registry's theme (tokens, fonts and CSS from the registry preview settings)
- installed base item https://ui.balick.me/r/theme.json (registry preview settings)
Installation
Requires @balick in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
import { Aurora } from "@/components/ui/aurora"export function Hero() { return ( <section className="relative overflow-hidden"> <Aurora /> <div className="relative z-10 p-16"> <h1 className="text-4xl font-bold">Build faster</h1> </div> </section> )}- Adding an ambient, atmospheric glow to the top of a hero section or landing page header
- Decorating a dark or light section background with subtle motion without distracting from content
- Giving a CTA or feature block a premium, aurora-like backdrop that can be recolored with text-* utilities
- Replacing a static gradient with a gently animated background that respects reduced-motion settings
Examples
Hero with default aurora
A landing hero where the aurora sits behind the headline. The parent must be positioned, and the content is raised above the layer with relative z-10.
import { Aurora } from "@/components/ui/aurora"export function LandingHero() { return ( <section className="relative overflow-hidden bg-background py-24"> <Aurora /> <div className="relative z-10 mx-auto max-w-2xl text-center"> <h1 className="text-5xl font-semibold tracking-tight">Ship your product</h1> <p className="mt-4 text-muted-foreground">Everything you need in one place.</p> </div> </section> )}Tinted aurora with slower drift
Uses a text-* class to tint the light and the duration prop to slow the drift to 90 seconds.
import { Aurora } from "@/components/ui/aurora"export function TintedBanner() { return ( <div className="relative overflow-hidden rounded-xl bg-zinc-950 p-10 text-emerald-400"> <Aurora duration="90s" /> <p className="relative z-10 text-lg text-white">New release is live</p> </div> )}Pricing card CTA backdrop
Places the aurora inside a card as a subtle accent behind a call-to-action button.
import { Button } from "@/components/ui/button"import { Aurora } from "@/components/ui/aurora"export function PricingCta() { return ( <div className="relative overflow-hidden rounded-2xl border p-8"> <Aurora className="text-sky-500" /> <div className="relative z-10 flex flex-col items-start gap-4"> <h2 className="text-2xl font-bold">Pro plan</h2> <Button>Start free trial</Button> </div> </div> )}API reference
Accessibility
- The root element has aria-hidden, so the decorative veils are hidden from screen readers and assistive technology.
- Because the layer is aria-hidden, do not place meaningful text or interactive controls inside it; put content in a sibling element with relative z-10.
- The animation is disabled under prefers-reduced-motion via motion-reduce:animate-none, so the veils stand still for users who request reduced motion.
- The root has pointer-events-none, so it does not block clicks, focus, or text selection on content beneath or above it.
- Ensure text placed over the aurora keeps sufficient contrast, since the light is semi-transparent and tinted by text color.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "Aurora" component (balick/aurora) from its shadcn registry.1. Install it with: npx shadcn@latest add @balick/aurora2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: duration, className, style, ...props.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { Aurora } from "@/components/ui/aurora"export function Hero() { return ( <section className="relative overflow-hidden"> <Aurora /> <div className="relative z-10 p-16"> <h1 className="text-4xl font-bold">Build faster</h1> </div> </section> )}```Files & dependencies
- registry/balick/ui/aurora.tsx