Aurora
Soft light that drifts behind your hero.
Installation
$ pnpm dlx shadcn@latest add @synccn/auroraFirst time in this project? Connect synccn with one command.
Usage
import { Aurora } from "@/components/ui/aurora";<div className="relative overflow-hidden"><Aurora /></div>API reference
Generated from the component's TypeScript types, so it always matches the code.
Aurora
Slow-moving coloured light behind content. Place inside a relative, overflow-hidden container.
PropTypeDescription
- colors
string[]Default
["oklch(0.6 0.2 280)", "oklch(0.65 0.18 220)", "oklch(0.7 0.16 330)"]CSS colours for the moving lights.
- blur
numberDefault
60Blur radius in pixels.
- opacity
numberDefault
0.45Overall opacity, 0–1.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-label, aria-pressed
- Respects the reduced motion setting
- Shows a visible focus ring for keyboard users
More motion
MarqueeEndless scrolling row or column that pauses on hover.Number TickerCounts up to a number when it scrolls into view.TypewriterTypes and deletes a list of phrases.Shimmer TextA light sweep across text for loading moments.Word RotateCycles words with a vertical slide.Text ScrambleCharacters scramble and resolve left to right.