An interactive card editor for creating custom game cards with a professional look. Design both the front and back of your cards with an intuitive interface and export them in high quality.
- Features
- Technologies
- Project Structure
- Getting Started
- Usage
- Export
- Browser Compatibility
- Contributing
- License
- Author
- Card values — 0–13 with customizable display (Joker, Jack, Queen, King, Ace)
- Special icons — Unique graphics for face cards
- Central icon — Large SVG library with search
- Customizable colors — Complete palette with themed presets
- Customizable text — Ability name and level with varied fonts
- Adjustable dimensions — Width, height, and rounded corners
- Background patterns — 11 different patterns (geometric, lines, dots, grid, diamonds, chevrons, zigzag, hexagons, circles, crosses, waves)
- Color presets — 6 predefined themes (Dark, Midnight, Fire, Ocean, Forest, Royal)
- Central icon — Full SVG library with customization options
- Customizable text — Center text with adjustable size and color
- Border styles — 4 options (solid, dashed, dotted, double)
- Corner decorations — Elegant ornaments in each corner
- PNG export — Front only, back only, or both faces at once
- Bulk export — Export all cards (0–13) in a single click
- Export quality — 4 levels (1x to 4x)
- Presets — Save and reload your configurations
- Custom SVGs — Import your own SVG icons
| Technology | Purpose |
|---|---|
| HTML5 | Semantic structure |
| CSS3 | Design, gradients, and animations |
| Vanilla JavaScript | Modular application logic |
| html2canvas | High-quality PNG export |
| SVG | Scalable vector icons |
card/
├── index.html # Entry point
├── LICENSE
├── public/
│ ├── css/
│ │ ├── base.css # Base styles
│ │ ├── card.css # Front card styles
│ │ ├── card-back.css # Back card styles
│ │ ├── editor-panel.css # Control panel
│ │ ├── form-controls.css # Inputs and controls
│ │ ├── modal.css # Modals
│ │ ├── preview.css # Preview area
│ │ └── responsive.css # Responsive design
│ └── js/
│ ├── state.js # Global application state
│ ├── card.js # Front card logic
│ ├── card-back.js # Back card logic
│ ├── controls.js # Front controls
│ ├── controls-back.js # Back controls
│ ├── export.js # Export functions
│ ├── presets.js # Preset management
│ ├── main.js # JS entry point
│ └── svg-library*.js # SVG icon library
└── README.md
git clone https://github.com/PerretWilliam/card.git
cd cardThen open index.html in your browser. No build step or dependency installation required.
- Select the Front or Back tab
- Use the controls to customize your card
- Preview changes in real time
- Click the desired export button
- Slider or dropdown to select values 0–13
- Automatic display: 0, 1–9, J (Jack), Q (Queen), K (King), A (Ace)
- Custom text to override the default display
| Preset | Color |
|---|---|
| Stamina | Green |
| Attack | Red |
| Defense | Blue |
| Magic | Purple |
| Fire | Orange |
| Special | Gold |
- 100+ SVG icons available in the library
- Customizable size and color
- Optional glow effect
- Support for custom SVG imports
Dark, Midnight, Fire, Ocean, Forest, Royal
None, Geometric, Lines, Dots, Grid, Diamonds, Chevrons, Zigzag, Hexagons, Circles, Crosses, Waves — with adjustable opacity (0–100%)
- Save — Store your current configuration
- Load — Restore a saved configuration
- Reset — Return to default settings
Presets are stored in the browser's localStorage.
Width, height, and corner radius are automatically synchronized between front and back to ensure visual consistency.
- Copy your SVG code
- Go to the "Custom SVG" section
- Paste the code and click Apply SVG
| Option | Description |
|---|---|
| Export PNG (Front) | Export the front face only |
| Export PNG (Back) | Export the back face only |
| Export Front + Back | Export both faces for the current value |
| Export All (0–13) | Export all 14 card values at once |
| Level | Resolution |
|---|---|
| 1x | 320 × 480 px |
| 2x | 640 × 960 px |
| 3x | 960 × 1440 px (recommended) |
| 4x | 1280 × 1920 px |
Format: {name}_{value}_{face}.png
Example: card_A_front.png, card_A_back.png
| Browser | Minimum Version |
|---|---|
| Chrome | 90+ |
| Firefox | 88+ |
| Safari | 14+ |
| Edge | 90+ |
Contributions are welcome.
- Fork the project
- Create a branch (
git checkout -b feature/your-feature) - Commit your changes (
git commit -m 'Add your feature') - Push to the branch (
git push origin feature/your-feature) - Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
William Perret