Cardcn
A collection of beautiful, customizable card components built with React, shadcn/ui, and Tailwind CSS..
Tech Stack
- Framework:
- UI Components:
- Styling:
- Language: TypeScript
- Deployment: Cloudflare Workers
- Linting/Formatting: Biome
Getting Started
Installation
- Clone the repository:
- Install dependencies:
- Start the development server:
The app will be available at http://localhost:3000.
Available Scripts
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
Project Structure
Adding New Cards
- 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
Using Cards in Your Project
- 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:
Deployment
This project is configured to deploy to Cloudflare Workers:
Make sure you have:
- Cloudflare account configured
- Wrangler CLI installed
- Proper authentication set up
Sponsors
This project is sponsored by:
- Shadcn blocks & templates
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT