Holo Card

A collectible trading card with real 3D tilt, holo foil, rarities, a flip side — and an anime Shinigami edition.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Rare · Line-foil holo profile card. rarity="rare"

The card tilts toward your cursor, a rainbow foil shifts with the viewing angle (masked to fine diagonal lines like real holo stock), a glare follows the light, and the avatar and name float above the surface at different depths.

Installation

$ npx shadcn@latest add https://pickui.guetix.com/r/holo-card.json

Uses the shadcn CLI. It creates components/pickui/holo-card.tsx and installs nothing else.

Usage

example.tsx
"use client";

import HoloCard, { type HoloRarity } from "@/components/pickui/holo-card";

export default function HoloCardDemo({ variant = "rare" }: { variant?: string }) {
  if (variant === "shinigami") {
    return (
      <HoloCard
        edition="shinigami"
        name="Kurozu"
        role="God of Death · Bored"
        serial="No. 013"
        stats={[
          { label: "Fruit", value: "12" },
          { label: "Souls", value: "666" },
          { label: "Mercy", value: "0" },
        ]}
      />
    );
  }
  return (
    <HoloCard
      rarity={(["rare", "epic", "legendary"].includes(variant) ? variant : "rare") as HoloRarity}
      name="Ada Lovelace"
      role="Full-stack developer"
      handle="@ada"
      serial="No. 001"
      accent="#4ade80"
      stats={[
        { label: "Projects", value: "40+" },
        { label: "Stack", value: "27" },
        { label: "Coffee", value: "∞" },
      ]}
      bio="Builds fast, tactile web apps — from database to the last pixel."
      skills={[
        { label: "React / Next.js", level: 95 },
        { label: "TypeScript", level: 92 },
        { label: "Databases", level: 84 },
        { label: "Motion & UI", level: 88 },
      ]}
      ability={{ name: "Ship it", text: "Turns a Figma frame into production in one afternoon." }}
    />
  );
}
Portfolio heroTeam pageGamified profileConference badge

Under the hood

The details that make it feel right, and that a one-line prompt usually misses:

  • 01Foil = rainbow gradient × line mask × radial mask composited with `mask-composite`.
  • 02Pointer math writes CSS variables directly, so there are no React re-renders while you move the cursor.
  • 03Depth uses `preserve-3d` + per-layer `translateZ`; it springs back with a different easing than it tracks.

Props

PropTypeDefaultDescription
namestring—Display name.
rolestring—Role / title under the name.
avatarstring—Image URL. Falls back to initials.
handlestring—Small handle at the bottom.
stats{ label: string; value: string }[][]Up to three stats.
serialstring"No. 001"Serial printed on the card.
accentstring"#4ade80"Accent color (any CSS color).
maxTiltnumber14Max tilt in degrees.
rarity"rare" | "epic" | "legendary""rare"Foil, frame and effects.
edition"holo" | "shinigami""holo"Profile card, or the anime death-god character card.
artstring—Shinigami edition: your own (licensed) character art URL.
bio / skills / abilitystring / {label, level}[] / {name, text}—Back side content (click or Enter flips the card).
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Focusable card with a full accessible label; focus applies a gentle tilt.
  • Reduced motion disables the tilt.