# Drawstep engine wiki — How a card is drawn > The display-only `appearance` block: built-in frame styles, community and imported frame packs, colour treatments, art variants, flavor and credits, and the rules that keep art inside the frame's window. Engine: Magic: The Gathering (`mtg`). Page: https://drawstep.xyz/wiki/mtg/appearance · Raw Markdown: https://drawstep.xyz/wiki/mtg/appearance.md · Complete AI pack (every topic in one document, with the output contract and worked examples): https://drawstep.xyz/wiki/drawstep-mtg-ai-pack.md. This page is generated from Drawstep's card schema; field names and discriminators are exact. A card definition is one JSON object; anything the vocabulary cannot express goes verbatim into `unparsed` instead of being approximated. ## How a card is drawn (`appearance`, display only) Everything under `appearance` is **display only** — the engine never reads it. It decides how the Studio's renderer draws the card: which frame, in which colour treatment, with what art framing, plus flavor text and credits. Leave it out and the card still looks right: the renderer infers a frame from the card's colours, types and layout. **Frame style (`appearance.frame.style`).** Three families are built in and drawn procedurally — `classic`, `modern` and `etched` — original Drawstep designs that work for every layout. A *frame pack* replaces the drawn frame with full-card images: - `"pack:community:"` — one of the **community packs** the server ships in its frames bundle (open **Frame → Frame library** in the Studio to see them, with each pack's credit). They are fan-made recreations of printed Magic frames (M15, 8th Edition, Masterpiece, box-topper …), kept outside the code as unofficial Fan Content so they can be credited or removed on request. - `"pack:"` — a pack **you imported** (Frame library → *Import a pack*). Imported layers are uploaded to your account only; you vouch for the rights to them. A pack is a folder: a `pack.json` beside PNG / WebP images. For each layout it lists one full-card image per colour treatment — the frame with a transparent window where the art goes — optionally a stats plate per treatment, and the `regions` (`[x, y, w, h]` as fractions of the card) where the renderer writes the name and mana cost (`title`), the `type` line, the rules and flavor (`text`), power/toughness or loyalty (`stats`) and the artist / collector line (`foot`). A missing layout falls back to `standard`; a two-colour treatment without its own layer falls back to its first colour, then gold (`M`), then `*`. The full format is documented in `tools/frames/README.md` in the repository; `npm run frames:build` converts Magic Set Editor templates into packs. **Treatment (`frame.treatment`).** Normally derived from the card: `W U B R G`, a hybrid pair such as `WU`, `M` gold for three or more colours, `C` colourless, `A` artifact, `L` land, `V` vehicle. Set it only to override — a colourless-cost card that should look red, a land that should use its colour. **Variant (`frame.variant`).** `standard` (a windowed art box), `extendedArt` (art to the card edges), `fullArt` (the whole card is art behind translucent panels), `borderless`. **Layout (`frame.layout`)** overrides the frame geometry (planeswalker, saga, adventure, split, transform, modal, class, leveler, battle, vehicle, token, basicLand) and is almost never needed — it follows from the card's `layout` and types. **Flavor, artist, collector.** `flavor` is printed in italics under the rules text, `artist` at the bottom left, `collector` ("12/60 · My Cube") at the bottom right. Multi-face cards put per-face `art`, `flavor` and `artist` in `appearance.faces[]` (same order as the card's `faces`; entry 0 is the front). **Art.** The picture is cropped to the frame's **art window**, so compose for that shape: a wide landscape for standard frames, tall for portrait or full-art frames, subject centred, nothing important within 10% of the edges. Pictures should show only the scene — no lettering, borders, mana symbols or card parts; the renderer adds all of those (and image generators botch text). The Studio's art editor crops and positions the picture; the assistant's `generate_image` follows the same rules automatically and picks the output size from the window. **Colour pips, not letters.** Wherever the Studio asks for a colour it shows the five mana pips; in JSON the letters stay `W U B R G` (blue is `U`), as on printed cards. **Fields of `appearance`** | Field | Type | Required | Description | |---|---|---|---| | `frame` | `{ style?: string; treatment?: string; variant?: "standard" \| "extendedArt" \| "fullArt" \| "borderless"; layout?: "standard" \| "planeswalker" \| "saga" \| "adventure" \| "split" \| "transform" \| "modal" \| "class" \| "leveler" \| "battle" \| "vehicle" \| "token" \| "basicLand" }` | no | | | `flavor` | `string` | no | Flavor text, printed in italics under the rules text | | `artist` | `string` | no | Illustration credit, printed at the bottom | | `collector` | `string` | no | Small print at the bottom right, e.g. "12/60 · My Cube" | | `faces` | `({ art?: string; image?: string; flavor?: string; artist?: string })[]` | no | Per-face art, full-card image and flavor for cards with more than one face (same order as `faces`; entry 0 is the front) | **Fields of `appearance.frame`** | Field | Type | Required | Description | |---|---|---|---| | `style` | `string` | no | Frame family: "classic", "modern" or "etched" (built in), "pack:" for a frame pack imported by the player, or "pack:community:" for one of the server's community packs (list them with the Frame library; e.g. "pack:community:m15"). Default classic | | `treatment` | `string` | no | Colour treatment override: W U B R G, two letters for a hybrid pair (WU), M gold, C colourless, A artifact, L land, V vehicle. Default: from the card's colours and types | | `variant` | `"standard" \| "extendedArt" \| "fullArt" \| "borderless"` | no | Art framing: a standard window, art to the card edges, full art behind translucent panels, or borderless full art | | `layout` | `"standard" \| "planeswalker" \| "saga" \| "adventure" \| "split" \| "transform" \| "modal" \| "class" \| "leveler" \| "battle" \| "vehicle" \| "token" \| "basicLand"` | no | Frame layout override; default from the card's layout and types |