A modern, open-source web application that allows developers to create professional business cards with VS Code theme styling. Generate JSON-based business cards and download them as images or JSON files.
- 🎨 VS Code Themes: Choose from 15+ popular VS Code themes
- 💼 Professional Layout: Clean, JSON-styled business card design
- 📱 Responsive Design: Works perfectly on desktop and mobile
- 📥 Multiple Export Options:
- Download as high-quality PNG image
- Export as JSON file
- Full-size preview capture
- ⚡ Real-time Preview: See changes instantly as you type
- 🎯 Developer Focused: JSON format with syntax highlighting
- Node.js 18+
- npm, yarn, or pnpm
-
Clone the repository
git clone https://github.com/XerxesCoder/devcard-generator.git cd devcard-generator -
Install dependencies
npm install # or yarn install # or pnpm install
-
Run the development server
npm run dev # or yarn dev # or pnpm dev
-
Open your browser Navigate to http://localhost:3000
- Next.js - React framework
- shadCn - UI Library
- Tailwind CSS - Styling
- html2canvas - Image capture
- Lucide React - Icons
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
The application includes 15+ VS Code-inspired themes:
- Dark Themes: Dark+, Monokai, GitHub Dark, Dracula, Solarized Dark, Night Owl, One Dark Pro, Material Ocean, Synthwave '84, Palenight, Tokyo Night, Rosé Pine, Catppuccin Mocha, Ayu Dark, Nord, Gruvbox Dark
- Light Themes: Light+, GitHub Light
-
Fill in your information in the form:
- Personal details (name, title, bio)
- Contact information (email, phone, website)
- Social profiles (GitHub, LinkedIn, Twitter, etc.)
-
Choose a theme from the theme selector
-
Preview your card in real-time with JSON syntax highlighting
-
Download your card:
- JSON: Download as a structured JSON file
- Image: Download as a professional business card PNG
- Full Preview: Capture the entire preview panel
developer-business-card-generator/
├── app/
│ ├── layout.js
│ └── page.js
├── components/
│ ├── business-card-form.js
│ ├── business-card-preview.js
│ ├── theme-selector.js
│ └── ui/ (shadcn/ui components)
├── lib/
│ └── vscode-themes.js
├── stores/
│ └── business-card-store.js
└── public/
Add new VS Code themes to lib/vscode-themes.js:
"your-theme-name": {
name: "Your Theme Name",
backgroundColor: "#your-color",
editorBackground: "#your-color",
textColor: "#your-color",
// ... other theme properties
}Update the form and preview components to add new fields:
- Add field to
BusinessCardForm - Update state management in the store
- Modify the preview rendering logic
We love contributions! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- 🎨 New VS Code themes
- 📱 Mobile responsiveness improvements
- 🧪 Testing coverage
- 📚 Documentation improvements
- 🐛 Bug fixes
- 💡 New features
Found a bug? Please create an issue with:
- Steps to reproduce
- Expected behavior
- Actual behavior
- Screenshots (if applicable)
- Browser and OS information
This project is licensed under the MIT License - see the LICENSE file for details.
- VS Code team for theme inspiration
- shadcn/ui for beautiful components
- The open-source community
- E-mail: xerxescode@gmail.com
- Telegram: t.me/xerxescoder
Made with ❤️ for developers
If you find this project helpful, please give it a ⭐ on GitHub!