PlaysetCard

The core card component with themes, effects, and sizing options.

Usage

my-card.tsxtsx
1import { PlaysetCard } from "@/components/playset-card"
2import { Sparkles } from 'lucide-react'
3
4export function MyCard() {
5 return (
6 <PlaysetCard
7 title="Dragon"
8 category="CREATURE"
9 theme="orange"
10 effect="holographic"
11 size="md"
12 headerIcon={<Sparkles className="w-4 h-4" />}
13 >
14 <div className="text-center">
15 <p>Custom card content</p>
16 </div>
17 </PlaysetCard>
18 )
19}

Sizes

Cards come in five sizes: xs,sm,md,lg, andxl.

Card
SIZE
xs
Card
SIZE
sm
Card
SIZE
md
Card
SIZE
lg

Effects

Apply special visual effects to make cards stand out. Effects work best in dark mode but are also visible in light mode.

Basic
EFFECT
None
Foil
EFFECT
foil
Holographic
EFFECT
holographic
Polychrome
EFFECT
polychrome
Negative
EFFECT
negative
Gold
EFFECT
gold

Props

PropTypeDefaultDescription
titlestring"Card Title"Card title text displayed in the header
categorystring"CATEGORY"Category label displayed at the bottom of the card
theme"purple" | "blue" | "green" | "red" | "orange" | "pink" | "cyan" | "gold" | "gray""purple"Color theme preset for the card
customThemePartial<CardTheme>Override theme colors per card (frame, frameBg, cardBg, titleColor, categoryColor)
effect"none" | "foil" | "holographic" | "polychrome" | "negative" | "gold""none"Special visual effect applied to the card
effectIntensitynumber1Multiplier for effect strength. Useful range: 0 to 2.
size"xs" | "sm" | "md" | "lg" | "xl" | "auto""md"Card size preset. "auto" sizes to content width.
widthnumber | stringOverride card width. Takes precedence over size.
heightnumber | stringOverride card height. Takes precedence over size.
contentScalenumber1Scale factor applied to the card content area.
headerIconReactNodeIcon displayed in the header next to the title
isActivebooleanfalseWhether the card shows an active glow state
viewTransitionNamestringView Transitions API name for animating between routes/states
childrenReactNodeCustom content to render inside the card body