npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kaijudo/react-card

v0.1.1

Published

A React component library for creating holographic trading card effects, inspired by Pokemon Trading Cards.

Readme

@kaijudo/react-card

A React component library for creating holographic trading card effects, inspired by Pokemon Trading Cards.

Features

  • ✨ Holographic card effects with mouse interaction
  • 🎨 Multiple variant styles (holo, reverse-holo, rainbow)
  • 🎯 Built with Tailwind CSS (no CSS bundle included)
  • 📦 Tree-shakeable and optimized
  • 🎭 Storybook support for development

Installation

pnpm add @kaijudo/react-card

Prerequisites

This package requires consumers to have:

  1. Tailwind CSS v4+ installed and configured
  2. React 19+ installed

Setting up Tailwind CSS

If you haven't set up Tailwind CSS yet:

pnpm add -D tailwindcss
npx tailwindcss init

Add to your tailwind.config.js:

export default {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@kaijudo/react-card/**/*.{js,ts,jsx,tsx}", // Include card package
  ],
  // ... rest of config
}

Setting up shadcn/ui (Optional)

If you want to use shadcn/ui components alongside:

npx shadcn@latest init

The card component works independently but can be styled to match shadcn/ui themes.

Usage

Basic Example

import { Card, CardHeader, CardContent } from '@kaijudo/react-card';
import creatureImage from '@kaijudo/creature-images/creatures/fire-dragon.png?url';

function App() {
  return (
    <Card imageSrc={creatureImage} imageAlt="Fire Dragon" variant="holo">
      <CardHeader>Fire Dragon</CardHeader>
      <CardContent>
        <p>A powerful fire-breathing creature</p>
      </CardContent>
    </Card>
  );
}

Without Holographic Effect

<Card imageSrc={imageSrc} holographic={false}>
  <CardContent>Simple card</CardContent>
</Card>

Different Variants

{/* Standard holo effect */}
<Card variant="holo" imageSrc={imageSrc}>...</Card>

{/* Reverse holo effect */}
<Card variant="reverse-holo" imageSrc={imageSrc}>...</Card>

{/* Rainbow effect */}
<Card variant="rainbow" imageSrc={imageSrc}>...</Card>

Components

Card

Main card component with holographic effects.

Props:

  • children - Card content (typically CardHeader and CardContent)
  • imageSrc - Image URL for the card
  • imageAlt - Alt text for the image
  • holographic - Enable/disable holographic effect (default: true)
  • variant - Card variant: 'default' | 'holo' | 'reverse-holo' | 'rainbow'
  • className - Additional CSS classes

CardHeader

Header component for card titles.

CardContent

Content wrapper for card body text.

Styling

The component uses Tailwind CSS classes that will be processed by your Tailwind setup. The package includes a small CSS file (Card.css) for complex holographic animations that can't be achieved with Tailwind alone.

Importing the CSS

The CSS file contains animations needed for the holographic effects. Import it in your app's entry point:

// In your main.tsx or App.tsx
import '@kaijudo/react-card/styles';
// or
import '@kaijudo/react-card/dist/Card.css';

Or add it to your main CSS file:

@import '@kaijudo/react-card/styles';

Customization

To customize the card:

  1. Override with your own Tailwind classes via className prop
  2. Use Tailwind's @apply directive in your CSS
  3. Extend Tailwind config with custom colors/effects
  4. Override the CSS variables or animations in your own CSS

Development

# Build the package
pnpm build

# Run Storybook
pnpm storybook

# Run tests
pnpm test

Inspiration

This component is inspired by the Pokemon Cards CSS Holographic effect by @simeydotme.