Glow Border
Rotating conic-gradient glow effect around container border.
pnpm dlx @glinui/cli@latest add glow-borderGitHub
Sync pull requests and checks
Installation$
pnpm dlx @glinui/cli@latest add glow-borderPrefer the package?
Usage$
Wrap any content with GlowBorder to apply a continuously rotating conic-gradient glow along the border. The glow is rendered via a CSS @property-animated conic gradient positioned behind the content.
A rotating conic glow circles an integration card. The face inside follows the ambient style (glinr by default); variant="glass" is opt-in.
Examples$
Variants$
glinr is the default, plain is the flat shadcn look, solid is a neutral tonal face and glass is opt-in. Glass needs a backdrop, so the set below sits on a vivid one.
glinr
Crisp on any stage.
Learn moreplain
Crisp on any stage.
Learn moresolid
Crisp on any stage.
Learn moreglass
Opt-in. Needs a backdrop.
Learn moreimport { GlowBorder } from "@glinui/ui"
// Omit variant to follow the ambient style (glinr by default).export function GlowBorderVariants() {return ( <> <GlowBorder variant="glinr" glowSize={3}> ... </GlowBorder> <GlowBorder variant="plain" glowSize={3}> ... </GlowBorder> <GlowBorder variant="solid" glowSize={3}> ... </GlowBorder> <GlowBorder variant="glass" glowSize={3}> ... </GlowBorder> </>)}Colors$
glowColor takes any token or color.
accent
The effect color follows the tone token.
Learn moresuccess
The effect color follows the tone token.
Learn morewarning
The effect color follows the tone token.
Learn moredanger
The effect color follows the tone token.
Learn moreinfo
The effect color follows the tone token.
Learn moreimport { GlowBorder } from "@glinui/ui"
export function GlowBorderTones() {return ( <GlowBorder glowColor="var(--tone-success)" glowSize={3}> ... </GlowBorder>)}In a layout$
A pricing row where the highlighted plan wears the glow.
$0/ seat
- Unlimited projects
- Priority support
- Audit log export
$24/ seat
- Unlimited projects
- Priority support
- Audit log export
$60/ seat
- Unlimited projects
- Priority support
- Audit log export
// A pricing row where the highlighted plan wears the glow.import { GlowBorder } from "@glinui/ui"
export function GlowBorderLayout() {return ( <section className="grid gap-4 sm:grid-cols-3"> ... </section>)}Accessibility$
- The glow pseudo-element is purely decorative and carries
aria-hiddensemantics, it does not affect the accessibility tree. GlowBorderdoes not alter the focusability or tab order of its children.- Keyboard navigation passes through to child content unchanged.
Reduced Motion$
When prefers-reduced-motion: reduce is active, the rotating glow animation is hidden entirely so that users sensitive to motion are not affected.
API Reference$
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
borderRadius | string | No | "var(--radius-lg)" | Border radius |
duration | number | No | 4 | Rotation duration in seconds |
glowColor | string | No | "var(--color-accent)" | Glow color |
glowSize | number | No | 2 | Glow spread in px |
variant | SurfaceVariant | "default" | null | No | - | Face inside the glow. Omitted follows the ambient style (glinr by default). `glass` is opt-in. |
Source$
import { GlowBorder } from "@glinui/ui"Generated API Snapshot
Beta
Generated API Snapshot
BetaAuto-extracted from TypeScript source in packages/ui/src/components/glow-border.tsx. This section is in beta and may lag behind hand-curated docs. Regenerate with pnpm --filter @glinui/docs api:generate.
Generated: 2026-10-08T01:41:21.546Z · Full index: /docs/api-metadata
Primary Props Type
GlowBorderProps
GlowBorderProps
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
borderRadius | string | No | "var(--radius-lg)" | Border radius |
duration | number | No | 4 | Rotation duration in seconds |
glowColor | string | No | "var(--color-accent)" | Glow color |
glowSize | number | No | 2 | Glow spread in px |
variant | SurfaceVariant | "default" | null | No | - | Face inside the glow. Omitted follows the ambient style (glinr by default). `glass` is opt-in. |