Krizaka UI
Krizaka UI

Glow card

A card ringed by the brand: its border is a still hairline of the brand gradient, a step brighter under the pointer or the focus, fuller on a featured card. Nothing follows the pointer, nothing turns (krizaka-ui#393).

Web · ✓Mobile · n/aDesktop · n/aBetaLayout
Support level
Beta
Size
0.7 kB gzip, budget 1.9 kB
Who uses it
4 files of the live products and sites import it (Sovkora: 2) Counted in the dated inventory of 2026-11-23.
import { GlowCard } from "@krizaka/ui/glow-card";

Web only — React, from @krizaka/ui/glow-card. Beta: its API may still change in a minor version.

  • Mobile · n/a. A block of a public site's page; an app screen on a phone is built from Screen, Header and Card. → Card
  • Desktop · n/a. A public site's page, not a window of the Mac app.

Why it is here. Used by Sovkora.

When to use

  • Cards that invite a choice: plans, products, the entry points of a landing page.
  • One featured card among others (alive): its ring turns at rest.

When not to use

  • For the cards of an app's lists and feeds: a calm card reads better there.Use instead: Card
  • Around content the reader studies (a form, a table): a coloured ring competes with it.

Installation

Install

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";

Import

import { GlowCard } from "@krizaka/ui/glow-card";

Examples

Plans

Three plans: each ring brightens under the pointer; the featured one's ring is fuller at rest.

asChild on an <a>, glow="border": the focus brightens the ring.

Spotlight only

glow="spotlight" is deprecated (krizaka-ui#393): the bloom is retired, the card draws no ring.

Props

A card ringed by the brand: a still hairline of its gradient, a step brighter under the pointer. Content is yours.

PropTypeDefaultDescription
alivebooleanfalseA featured card: the ring is fuller at rest. It never turns.
asChildboolean—Renders your element (a link, an article) with the card's look and behaviour.
glow"both" | "border" | "spotlight"bothborder (a still hairline ring of the brand gradient) or both. spotlight (the bloom under the pointer) is deprecated since 3.31 (krizaka-ui#393) and draws nothing.

Accessibility

  • A decorative ring only (a pseudo-element): nothing is added to the accessibility tree; the card's semantics are yours.
  • Nothing moves or turns, with or without prefers-reduced-motion; only the ring's opacity changes, in 150 ms.
  • Its loops pause off screen and while the page settles (MotionObserver).

Keyboard

KeysAction
TabFocusing the card (or a control inside it) brightens its ring, as the pointer does.

Best practices

  • One grid of glowing cards per page; alive on one card at most.
  • Make the whole card the link with asChild when it leads somewhere — the focus brightens its ring like the pointer.
  • Colours come from the brand (.brand-<id>): never pass one.

Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page