Aurora
Layered curtains of light with a bright lower edge, drawn on a transparent background.
Overview
Aurora draws three overlapping curtains of light. Each one has a bright, slightly soft lower edge that sways with noise, fine vertical rays drifting along it, and a long fade upward. The colors spread left to right across colorStops.
The background is transparent, so the light sits over whatever is behind the canvas: a dark page color, an image, or another surface. Use it at the top of a dark hero, a sign-in page, or an announcement banner.
Installation
Usage
import { Aurora } from "honestui/shaders"
<div className="h-96 bg-[#0b0f1a]">
<Aurora
className="size-full"
colorStops={["#7ee0c3", "#6aa8f0", "#a58cf0"]}
intensity={0.85}
/>
</div>Aurora reads best on a dark background. On a light page, lower intensity and use deeper color stops so the light stays visible.
Accessibility
Aurora is decorative and its canvas is hidden from assistive technology. Place text and actions in normal HTML; if text overlaps the light, check its contrast at the brightest point of the curtains.
The effect pauses while it is offscreen or the tab is hidden, and shows a still frame when the user prefers reduced motion. Without WebGL2 the container shows only its own background.