Rim Glow
Wrapper that rims its content with a currentColor glow inside and out, in dim, steady or breathing states. Can also cover the viewport as a presence overlay; breathing holds steady under reduced motion.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
Installation
pnpm dlx shadcn add @01orbital/rim-glownpx shadcn add @01orbital/rim-glowyarn shadcn add @01orbital/rim-glowbunx --bun shadcn add @01orbital/rim-glowPart of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).
It lands at components/glow/rim-glow.tsx, as source you own and edit.
The example also uses card and item. Install them too:
pnpm dlx shadcn add @01orbital/card @01orbital/itemnpx shadcn add @01orbital/card @01orbital/itemyarn shadcn add @01orbital/card @01orbital/itembunx --bun shadcn add @01orbital/card @01orbital/itemUsage
import { cn } from "cn"
import { RimGlow } from "@/components/glow/rim-glow"
import { Card, CardContent } from "@/components/ui/card"
import {
Item,
ItemContent,
ItemDescription,
ItemMedia,
ItemTitle,
} from "@/components/ui/item"
// Every word on the page. Change copy here, not in the markup.
const COPY = {
title: "Assistant",
body: "Reading three files and drafting the migration plan…",
} as const
export default function RimGlowDemo({
animate = false,
}: {
// Breathe the rim; the card's play button turns it on.
animate?: boolean
}) {
return (
<div className="dark relative isolate grid min-h-full w-full flex-1 place-items-center overflow-hidden bg-background text-foreground">
{/* The rim takes the card's radius and glows in the current color. */}
<RimGlow
state={animate ? "breathing" : "steady"}
spread={28}
className="w-full max-w-md rounded-xl text-primary"
>
<Card>
<CardContent>
<Item>
<ItemMedia>
<span
aria-hidden="true"
className={cn(
"size-2 rounded-full bg-primary",
animate && "animate-pulse motion-reduce:animate-none"
)}
/>
</ItemMedia>
<ItemContent>
<ItemTitle>{COPY.title}</ItemTitle>
<ItemDescription>{COPY.body}</ItemDescription>
</ItemContent>
</Item>
</CardContent>
</Card>
</RimGlow>
</div>
)
}API reference
Prop
Type
It also accepts the HTML attributes of the element it renders.
Dependencies
npm: cn. The CLI installs them for you.
No other registry pieces.
More Glow
Neon Sign
Neon tube lettering with glow, four sizes, an intensity dimmer and opt-in flicker for the whole sign or single letters, plus burnt-out letters. Flicker is capped for flash safety and stops under reduced motion.
Side Glow
Soft blue radial glow anchored to one edge of a positioned parent: top, right, bottom or left. Ships with SeamLine, a one-pixel overlay-blended rule for marking a panel edge.