# Card sheets

Print spells, items and abilities as cards your players keep in front of them.

## The file

A card sheet is a markdown file with `type: card-sheet` and one link per card. Dunjii prints each card at 2.48 × 3.46 in, a millimeter under a poker card, so a cut card fits a standard sleeve.

```markdown
---
type: card-sheet
---
## Cantrips
- [[Fire Bolt]]
- [[Sacred Flame]]

## 1st level
- [[Magic Missile]]
- [[Shield]]
```

- `type: card-sheet`: Makes this file a card sheet.
- `## Cantrips`: Starts a group. The heading takes the space of one card.
- `- [[Fire Bolt]]`: One link, one card. A link can point at your own spell or at a Sourcebook page.

![This file printed on Letter paper with Standard margins.](https://dunjii.com/docs-assets/layout-and-printing/card-sheet-printed.webp)

If you've written a wikilink that references a sourcebook item, the next sync will rewrite it to the actual sourcebook location.

For example, `[[Fireball]]` would be rewritten to `[Fireball](https://dunjii.com/sourcebooks/dnd-srd-5.2.1/Spells/Fireball)`. It's not as pretty, but more practical for third party markdown renderers.

## Make one

1. Select the spells in the sidebar. Shift-click to add a range.
2. Right-click the selection and choose **Create card sheet from 3 cards…**. The number matches your selection.
3. Type a name. Dunjii puts the sheet in the folder you have open.

Search (⌘K on a Mac, Ctrl+K elsewhere) offers the same action when you pick spells there.

![The sidebar menu for three selected spells.](https://dunjii.com/docs-assets/layout-and-printing/create-card-sheet-menu.webp)

## What goes on a card

Each card comes from its spell's own file. The frontmatter fills the boxes at the top and the lines around the text.

```markdown
---
type: spell
level: 2
school: Evocation
casting-time: Action
range: 60 feet
components: [V, S, M]
duration: 1 minute
materials: a mixture of flower petals
classes: [Forest Mage]
---

# Floral Eruption

Choose a point within range; intoxicating flowers violently burst forth.

Each creature in a 10-foot-radius Sphere centered there makes a CON saving throw. On failure, they take 2d6 damage and have the Incapacitated condition and a Speed of 0. If they succeed, they only take the damage.
```

- `school: Evocation`: Level and school make the line at the bottom right.
- `duration: 1 minute`: These four fill the boxes at the top.
- `materials: a mixture of flower petals`: The italic line under the boxes.
- `classes: [Forest Mage]`: The line at the bottom left.
- `# Floral Eruption`: The card's title.

A spell whose text runs too long for the card can carry a `## Card Description` section with a shorter version. The card prints that section in place of the full text. Items and abilities have card layouts of their own.

## Cards per page

Your margin setting decides how many cards fit across. When one more column almost fits, Dunjii shrinks the cards by up to 6% to make room, and no further.

| Margins  | Letter   | A4       |
| -------- | -------- | -------- |
| Standard | 4        | 4        |
| Compact  | 6 at 97% | 9 at 94% |
| Minimum  | 6        | 9        |

## Settings

The sheet's document settings have a **Card size** control. It writes this key under `print:` in the sheet's frontmatter.

```markdown
---
type: card-sheet
print:
  cardScale: fit
---
```

- `cardScale: fit`: 1 is Actual size, the default. fit is Fit to page: the cards shrink enough to add a row. A number from 0.65 to 1 sets the size yourself.
