Ballmac UI home

Neon Card

A card framed by a two-color neon border with a soft outer light and inner glow, tunable thickness, intensity and corner radius, with an optional warm-up flicker that never plays under reduced motion.

Most popular

$39per seat / month

  • Unlimited projects
  • Priority support
  • Single sign-on

Installation

$ pnpm dlx shadcn@latest add @ballmac/neon-card

Usage

import { NeonCard } from "@/components/ballmac/neon-card"

The full example is in the Code tab above.

Examples

Tones and flicker

chart-2 → chart-1

Steady

chart-3 → destructive

Steady

chart-5 → chart-4

Flicker

API reference

PropTypeDefault
from

Color at the start of the border.

NeonTone"chart-1"
to

Color at the end of the border.

NeonTone"chart-4"
borderWidth

Border thickness in pixels.

number1.5
glow

How strongly the outer light spreads, from 0 to 1.

number0.6
flicker

Let the light flicker like a neon sign that is warming up. Off by default and never on under reduced motion.

booleanfalse
radius

Corner radius.

"lg" | "xl" | "2xl" | "3xl""xl"
contentClassName

Classes for the inner surface.

string—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
ContrastContent sits on the normal card surface; the glow is decorative
Reduced motionFlicker is never played

Use with AI

<NeonCard from to borderWidth glow flicker radius contentClassName>content</NeonCard>. Colors are theme tokens, so it follows any theme. The light is strongest in dark mode. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Neon Card (@ballmac/neon-card) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • A single highlighted plan, product or announcement
  • Dark-themed landing pages

Not for

  • Several cards at once
  • A rotating border (glow-border)

Registry JSON: https://ui.ballmac.com/r/neon-card.json

Credits

Free to use in personal and commercial projects.

Registry
shadcn/utils