# Brand JSON format (version 1.0)

The studio reads one JSON file that holds everything brand-specific: names, colours, fonts, voice, banned words, the call to action, the comic style lock and the fixed cast. Paste it into **Config and settings → Brand JSON**, then select **Validate and apply**. You can import and export it as a file.

- JSON Schema: [`site/schema/brand.schema.json`](../site/schema/brand.schema.json)
- Default brand (Craig Stanley Work): [`site/brand/craig-stanley-work.brand.json`](../site/brand/craig-stanley-work.brand.json)

## Top level

| Key | Required | What it does |
| --- | --- | --- |
| `formatVersion` | yes | Always `"1.0"` for this version. |
| `brand` | yes | Names and marks. |
| `colours` | yes | Colour tokens for light and dark themes. |
| `fonts` | yes | Display, body and mono font families, plus a Google Fonts URL. |
| `voice` | yes | Writing rules and banned words, sent to the script writer. |
| `cta` | yes | Default call to action text and link (the QR code). |
| `comicStyle` | yes | The style lock added to every image request, and lettering colours. |
| `characters` | yes | The fixed cast, 1 to 12 characters. |

## `brand`

| Key | Example | Used for |
| --- | --- | --- |
| `name` | `Craig Stanley Work` | Full brand name. |
| `shortName` | `Craig Stanley` | Masthead and page footer. |
| `kicker` | `CRAIG STANLEY · WORK` | Mono running header on the app and on every page. |
| `line` | `Decide in the open.` | Tagline in the footer. |
| `monogram` | `cs` | Letters in the round mark (up to 4). |
| `locale` | `en-GB` | Spelling and dates. |

## `colours.light` and `colours.dark`

Every token is a `#RRGGBB` hex value. All 14 are required in both themes.

| Token | Role |
| --- | --- |
| `field` | Page background behind the frame. |
| `paper`, `paper2` | Frame and card surfaces. |
| `hero` | Highlighted surfaces (selected format). |
| `ink`, `muted` | Body text and secondary text. |
| `line` | Dashed rules and borders. |
| `accent`, `accentInk` | The one signal colour, and text on it. |
| `warn` | Errors; on pages, the Q./A. marks and reading-order arrows. |
| `tileA`, `tileB`, `tileC`, `tileD` | Tile colours, demo placeholders and palette sources. |

Exported pages always use the light tokens, so they print well.

## `fonts`

`display`, `body` and `mono` are family names. `googleFontsUrl` (optional) must start with `https://fonts.googleapis.com/` and should load all three.

## `voice`

- `rules`: list of plain-language writing rules.
- `bannedWords`: list of words and phrases the script writer must avoid.

Both are appended to the system prompt on every script request.

## `cta`

- `text`: printed bottom right of every strip and page.
- `url`: encoded in the QR code next to it. Must start with `http://` or `https://`.

## `comicStyle`

| Key | Notes |
| --- | --- |
| `styleLock` | Required. One paragraph describing line, colour, palette, setting, and saying the image must contain no text. Added to every image request and editable in settings. |
| `lettering` | `"app"`: balloons and captions are drawn by the app, not the model. |
| `panelAspect` | Default panel shape: `1:1`, `4:3`, `3:4`, `3:2` or `16:9`. |
| `balloonFill`, `balloonInk`, `captionFill` | Hex colours for lettering. |

## `characters[]`

| Key | Required | Notes |
| --- | --- | --- |
| `id` | yes | Lowercase letters, numbers, hyphens. Unique. |
| `name` | yes | Used exactly in scripts and dialogue (`Frank Holroyd: ...`). |
| `age` | yes | Number. |
| `role` | yes | Job or relationship to the lead. |
| `visual` | yes | The fixed look: face, hair, build, one outfit, a prop. Say "fictional". |
| `palette` | yes | `skin`, `hair`, `primary`, `secondary`, `accent` as hex. Pull clothing colours from the brand tokens. |
| `personality` | yes | How they behave. |
| `speech` | yes | How they talk. |
| `locked` | no | `true` means the sheet is attached to every panel they appear in and the card is read-only. |
| `sheet` | no | Path or URL of a reference sheet image, relative to the site root. |

## Minimal example

```json
{
  "formatVersion": "1.0",
  "brand": { "name": "Example Co", "kicker": "EXAMPLE CO", "line": "Plain work.", "monogram": "ex" },
  "colours": {
    "light": { "field": "#E5E5E5", "paper": "#FFFFFF", "paper2": "#F2F2F2", "hero": "#DDE7EE", "ink": "#111111", "muted": "#555555", "line": "#CCCCCC", "accent": "#0B5394", "accentInk": "#FFFFFF", "warn": "#A33A00", "tileA": "#F4D27A", "tileB": "#BFE0D8", "tileC": "#E3DCCB", "tileD": "#0B5394" },
    "dark": { "field": "#0D0D0D", "paper": "#161616", "paper2": "#1F1F1F", "hero": "#22303A", "ink": "#EEEEEE", "muted": "#AAAAAA", "line": "#333333", "accent": "#8DB8E0", "accentInk": "#0D0D0D", "warn": "#E8A866", "tileA": "#5A4A1E", "tileB": "#224A47", "tileC": "#3A3529", "tileD": "#8DB8E0" }
  },
  "fonts": { "display": "Georgia", "body": "Arial", "mono": "Courier New" },
  "voice": { "rules": ["Plain English."], "bannedWords": ["synergy"] },
  "cta": { "text": "Find out more", "url": "https://example.com" },
  "comicStyle": { "styleLock": "Clean ink comic art with flat colour, no gradients, no text in the image." },
  "characters": [
    { "id": "sam", "name": "Sam Lee", "age": 40, "role": "Team lead", "visual": "Fictional man, short black hair, navy jumper.", "palette": { "skin": "#E0B48F", "hair": "#1E1A18", "primary": "#0B5394", "secondary": "#FFFFFF", "accent": "#F4D27A" }, "personality": "Calm.", "speech": "Short sentences." }
  ]
}
```
