Shine Border
shine-borderA border with light running around it, for the one card or call to action that should be found first. A meteor of light with a fading tail, in any shape, pill included. Pure CSS in a server component, and it holds still for reduced motion.
import { Check } from "lucide-react";
import { Button } from "@/components/forme/button/button";
import { ShineBorder } from "@/components/forme/shine-border/shine-border";
export function ShineBorderDemo() {
return (
<ShineBorder className="w-full max-w-sm" innerClassName="p-6">
<div className="flex items-center justify-between">
<p className="text-title-1-semibold">Team</p>
<span className="rounded-full bg-brand-subtle px-2 py-0.5 text-caption-2-semibold text-brand-strong">
Recommended
</span>
</div>
<p className="mt-3 text-[2.25rem] leading-none font-semibold tracking-[-0.03em]">
$49 <span className="text-body-regular font-normal text-muted-foreground">per month</span>
</p>
<ul className="mt-5 flex flex-col gap-2 text-body-2-regular text-muted-foreground">
{["Unlimited projects", "10 seats included", "Priority support"].map((line) => (
<li key={line} className="flex items-center gap-2">
<Check aria-hidden className="size-3.5 text-brand" />
{line}
</li>
))}
</ul>
<Button className="mt-6 w-full">Start a trial</Button>
</ShineBorder>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
Usage
import { ShineBorder } from "@/components/forme/shine-border/shine-border";
<ShineBorder className="rounded-3xl">
<PricingPlan recommended />
</ShineBorder>When to use
Reach for it
- The one element a reader should find first, like the recommended plan or the primary call to action.
Use something else
- Several on one page. A beam only works when it is the only thing moving.
- Status. A moving border is not an error or a warning; use the status colours.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
ShineBorder
A border with a beam running around it, for the one thing on the page that should be found first: the recommended plan, the primary call to action.
| Prop | Type | Default | Description |
|---|---|---|---|
duration | number | 4 | Seconds for one lap of the beam. |
borderWidth | number | 2 | The border's thickness in pixels. |
color | string | "var(--primary)" | The beam's colour, as a token: var(--primary), var(--chart-3). |
innerClassName | string | — | Classes for the inner surface, where the content sits. |
Also takes every prop of <div> attributes.
Accessibility
- The beam is a decorative layer hidden from assistive technology; the content inside is untouched.
Motion
- The beam turns by animating a conic gradient's start angle, so it follows any shape, a pill included, with no JavaScript.
- Reduced motion holds the beam still, leaving a lit border.
Related


Confirm Button
A destructive button that grows into its own confirmation on a spring, so the question appears where you are looking. Focus lands on Cancel, Esc or clicking away disarms it, and the confirm button shows a spinner while the action runs.
motion

Dynamic Island
A black pill that morphs on a spring to fit whatever it is showing: a timer, a call, a song or a notification. Content swaps through a short blur crossfade, the corners never stretch mid-morph, and each change is announced politely.
motion

Marquee
A seamless, endlessly scrolling row for logos, photos or testimonials. It pauses on hover and focus, screen readers hear the content once, and reduced motion turns it into a row you scroll by hand. Pure CSS.
motion