A collection of beautiful, customizable card components built with React, shadcn/ui, and Tailwind CSS..
- Framework: TanStack Start
- UI Components: shadcn/ui
- Styling: Tailwind CSS
- Language: TypeScript
- Deployment: Cloudflare Workers
- Linting/Formatting: Biome
- Clone the repository:
git clone https://github.com/yourusername/cardcn.git
cd cardcn- Install dependencies:
pnpm install
# or
npm install
# or
bun install- Start the development server:
pnpm devThe app will be available at http://localhost:3000.
pnpm dev- Start development serverpnpm build- Build for productionpnpm serve- Preview production buildpnpm test- Run testspnpm format- Format code with Biomepnpm lint- Lint code with Biomepnpm check- Run all Biome checkspnpm build:reg- Build shadcn registrypnpm deploy- Deploy to Cloudflare Workers
cardcn/
├── src/
│ ├── components/
│ │ ├── cards/ # Card components (card-1.tsx, card-2.tsx, etc.)
│ │ ├── ui/ # shadcn/ui components
│ │ ├── card-container.tsx
│ │ ├── copy-button.tsx
│ │ ├── header.tsx
│ │ ├── hero.tsx
│ │ └── ...
│ ├── routes/ # TanStack Router routes
│ ├── lib/ # Utility functions
│ └── styles.css # Global styles
├── public/
│ └── r/ # Registry JSON files
├── wrangler.jsonc # Cloudflare Workers config
└── components.json # shadcn/ui config
- Create a new card component in
src/components/cards/card-X.tsx - Import and add it to the cards array in
src/routes/index.tsx - The card will automatically appear in the gallery
- Browse the cards on the website
- Click on a card to view its code
- Copy the code using the copy button
- Install required shadcn/ui components if needed:
pnpx shadcn@latest add cardThis project is configured to deploy to Cloudflare Workers:
pnpm deployMake sure you have:
- Cloudflare account configured
- Wrangler CLI installed
- Proper authentication set up
This project is sponsored by:
ShadcnStudio - Shadcn blocks & templates
Contributions are welcome! Please feel free to submit a Pull Request.
MIT