North Glow
North Glow renders three slowly drifting, heavily blurred color blobs that blend with screen mode to form a northern-lights style backdrop. It is pure CSS animation injected through a style tag, with no dependencies.


shadcn add · no workarounds · theme neutral (none shipped)Installation
Requires @glint-ui in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
import { NorthGlow } from "@/components/ui/north-glow"export function Hero() { return ( <section className="relative isolate h-96 overflow-hidden bg-zinc-950"> <NorthGlow /> <div className="relative z-10 p-12 text-white">Hello</div> </section> )}- Behind a hero or landing section to add a subtle animated northern-lights atmosphere
- As a decorative background layer for dark-themed cards, banners or login screens
- When you need an ambient motion effect without JavaScript animation loops or extra dependencies
- As a calm, low-distraction accent instead of bold, fast-moving graphics
Examples
Default hero background
Place NorthGlow as an absolutely positioned layer inside a relatively positioned, overflow-hidden container, and put content above it with z-index.
import { NorthGlow } from "@/components/ui/north-glow"export function HeroSection() { return ( <section className="relative isolate overflow-hidden bg-zinc-950 py-32"> <NorthGlow /> <div className="relative z-10 mx-auto max-w-2xl text-center text-white"> <h1 className="text-5xl font-bold">Ship faster</h1> <p className="mt-4 text-zinc-300">Build interfaces with calm, living backgrounds.</p> </div> </section> )}Custom palette and slower motion
Override colors, increase speed for a calmer drift, and reduce opacity for a subtler glow.
import { NorthGlow } from "@/components/ui/north-glow"export function SubtleCard() { return ( <div className="relative isolate overflow-hidden rounded-2xl bg-slate-900 p-8"> <NorthGlow colors={["#f472b6", "#38bdf8", "#fde047"]} speed={24} opacity={0.35} blur={120} /> <p className="relative z-10 text-white">Subscribe for updates</p> </div> )}Login screen backdrop
Use a fixed full-viewport container behind a centered form, with a custom class for positioning.
import { NorthGlow } from "@/components/ui/north-glow"export function LoginPage() { return ( <main className="relative flex min-h-screen items-center justify-center overflow-hidden bg-black"> <NorthGlow className="-z-0" colors={["#c6ff3d", "#22d3ee"]} speed={18} /> <form className="relative z-10 w-80 space-y-4 rounded-xl bg-white/5 p-6 backdrop-blur"> <input className="w-full rounded bg-white/10 p-2 text-white" placeholder="Email" /> <button className="w-full rounded bg-white p-2 font-medium text-black">Sign in</button> </form> </main> )}API reference
Accessibility
- The root element has aria-hidden, so screen readers ignore this purely decorative layer.
- The layer has pointerEvents set to none, so it does not block clicks or focus on content beneath it.
- Place interactive content above the glow with position relative and a higher z-index, since the wrapper is absolutely positioned.
- The animation is continuous and slow; consider respecting prefers-reduced-motion by wrapping usage in a conditional or overriding the animation in custom CSS, since this component does not check that media query itself.
- Keep text contrast high against the blurred colors, as the glow may sit behind body copy.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "North Glow" component (glint-ui/north-glow) from its shadcn registry.1. Install it with: npx shadcn@latest add @glint-ui/north-glow2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: colors, speed, blur, opacity, className.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { NorthGlow } from "@/components/ui/north-glow"export function Hero() { return ( <section className="relative isolate h-96 overflow-hidden bg-zinc-950"> <NorthGlow /> <div className="relative z-10 p-12 text-white">Hello</div> </section> )}```Files & dependencies
- registry/ui/north-glow.tsx