Card IDE (CIDEr) - Design game cards using HTML/Handlebars
, CSS
, and tabular
data.
Website: Start using Cider
Cider was created to fill a niche between ease-of-use and versatility. The current market of board game/card creating applications seems to fit into two categories: 1) advanced software with a steep learning curve and hundreds of pages of documentation, and 2) user-friendly graphical interface, but limited versatility. Cider is absolutely closer to the first category in execution since it currently provides no graphical template editor, but it makes up for the learning curve by using a templating language that many are already familiar with (HTML/Handlebars and CSS).
Create a template for each of the varying card fronts and card backs using HTML/Handlebars and CSS. Use variables to reference attributes that are unique to each card. Use control logic to conditionally display specific parts of the template.
Reference any card attribute (names are in kebab case Ex. 'Mystic Power' -> 'mystic-power').
{{card.mystic-power}}
Reference any asset (names are in kebab case Ex. 'Apple Image' -> 'apple-image').
<img src="{{assets.apple-image}}"/>
Index an object/array with another variable (Ex. assets[card.image]).
{{index assets card.image}}
Compile text containing {{asset-name}}
variables.
{{compileImages card.description width=100}}
Ex. Description Field
Convert up to two {{apple}} into a {chip}} each
Alternatively you can specify a multiplier to display multiple of a single image.
Convert {{apple 2}} into {{chip}}
Repeat the contained HTML n
number of times.
{{#repeat 5}}
Any arbitrary HTML
{{/repeat}}
{{#if (and (eq card.type "mystic") (gt card.power 4))}}
{{/if}}
{{#if (or (eq card.type "mystic") (gt card.power 4))}}
{{/if}}
{{#if (eq card.type 'mystic')}}
{{/if}}
{{#if (gt card.power 5)}}
{{/if}}
{{#if (gte card.power 5)}}
{{/if}}
{{#if (lt card.power 4)}}
{{/if}}
{{#if (lte card.power 4)}}
{{/if}}
{{concat card.type "-experience"}}
{{kebabcase "Clear Orb"}}
{{uppercase "Clear Orb"}}
{{lowercase "Clear Orb"}}
Pad a given number by n
zeros.
{{padZeros card.id 3}}
{{add card.power 2}}
{{sub card.power 2}}
{{multiply card.power 2}}
{{divide card.power 2}}
{{ceil card.power}}
{{floor card.power}}
{{abs card.power}}
Create attributes relevant to your game and fill out their values for each card. Choose the front and back templates for each card.
Preview the way the cards look with the tabular data applied to the templates.
Export the cards as individual images (PNG), or as card sheets ready to print (PDF). Adjust the paper size, paper margins, and spacing between cards.
Anything you create using CIDEr is your own intellectual property.
The website hosts nothing and all of your card data and assets sit
in IndexedDB on your browser. You may export and import your entire
database to a .json file to use between devices. You may host your own
version of the CIDEr website by downloading the source code and running npm install && ng serve
.
The repository itself is protected by AGPL-3.0 to ensure the project remains open-sourced.