Aurora light

Free

Soft light for an element's moment, in our glass colors: the glim crosses a card when work arrives, the rim blooms out of what you pressed and holds while the agent works, the ring pops for a moment that matters.

npx shadcn@latest add https://pixilui.com/r/aurora-light.json

Preview

Light crosses the card, and what it passes over changes under it.
Effect
Tone

When to use

Use it when

  • Glim (soft): work arriving where the content is the subject, such as an agent card taking a task, a row finishing or a figure updating.
  • Rim (full): the element the person is acting on while the agent works, such as the composer after Send or the one agent they are watching.
  • Ring (full): one moment per screen that deserves it, such as money moved, a deploy live or a plan upgraded.
  • Tone: Color for AI moments, Single for a product with one brand color (one hue per meaning), Grey for neutral screens (failures stay red).

Use something else when

  • Work moving between cards along a wire: use Handoff flow (the same engine, with tracks).
  • Loading or progress: use the text shimmer, the agent status or a meter. The light marks a moment, never a wait.
  • Every element on a screen: one ring per screen, and the glim only where something really changed.

Installation

Terminal
npx shadcn@latest add https://pixilui.com/r/aurora-light.json

Adds aurora-light.tsx, and installs clsx and tailwind-merge. The URL works in any app with a components.json, with no registry to add first.

Usage

example.tsx
import { AuroraLight } from "@/components/pixilui/aurora-light";

<AuroraLight onCrossed={onCrossed} />

Any element size: the light is measured from the element when it plays; an element over 150,000 square px draws its ring at half resolution.

API reference

PropTypeDefault
effect"glim" | "rim" | "ring""glim"glim (soft, when work arrives), rim (full, while it works) or ring (full, when it lands).
fam"think" | "find" | "make" | "code" | "wait" | "done" | "fail" | "holo" | "idle"–The meaning, which picks the palette: think, find, make, code, wait, done, fail, holo, idle.
tone"color" | "single" | "grey""color"Color (full strength wears the glass colors), Single (one hue per meaning) or Grey (silver; failures stay red).
playKeystring | number–Change it (a count, an id) to play the effect again; plays on mount when set.
workingboolean–rim: whether the element is working (keeps the glass light; false fades it out).
from"left" | "right" | "top" | "bottom"–glim and ring: the edge the light enters from.
onCrossed() => void–Fires once the light has crossed (the moment the changes under it are done).

Also takes every native <div> attribute, and a ref.

Keyboard

TabNever takes focus: the light is not interactive and the wrapped element keeps its own controls.

Accessibility

  • The light is canvas, aria-hidden and takes no pointer: the element's own words and status carry the change.
  • Changes fired by swaps are real DOM changes, so assistive technology hears the new status and words.
  • Reduced motion (the OS setting, or data-reduced on <html>): no light; the changes run at once.

Motion

  • Glim: a blurred band with a curved, two-lobed front crosses in 1250ms on cubic-bezier(.5, .05, .3, 1), holding at the entry edge a moment, fading as it goes.
  • Ring: a 620ms springy pop as a muted ring grows over 2400ms, then the glass light rises, holds and fades over 1600ms.
  • Rim: the wave blooms out of what was pressed over 2000ms and the glass light takes over at a third (900ms rise, 600ms out); it drifts in hue every 6400ms while it holds.
  • Every light runs on one shared clock with Handoff flow, so pausing or slowing it holds them all.
Handoff flowA handoff runs the wire and lands as light that changes the card it crosses.
ToastA delete waits while the red rim runs out; Undo winds it back.
Text shimmerA lighter band sweeps through live words at an even pace.

PixilUI Pro opens soon. The first 20 licenses are $99.