Aurora

Soft blobs of colored light drifting slowly behind your content. Pure CSS.

no dependenciesMIT · free

After the sunset.

Pure CSS. Works in Server Components.

Installation

npx shadcn@latest add https://ombakui.com/r/aurora.json

Usage

import { Aurora } from "@/components/aurora";

<Aurora className="h-[480px] bg-slate-950" colors={["#3fd1b0", "#0ea5e9", "#6366f1"]}>
  <h1>After the sunset.</h1>
</Aurora>

Props

PropTypeDefaultDescription
childrenReactNode–Content rendered on top.
colorsstring[]sea-glass greens and bluesThree to five blob colors.
durationnumber18Seconds for one full drift cycle; lower is faster.
blurnumber80Blur radius in px; higher is softer.
opacitynumber0.55Blob opacity, 0–1.
classNamestring–