## Field reference JSON Schema: [theme.schema.json](https://aancer.ai/dev/schemas/theme.schema.json). The root is the version 2 theme. `$defs/themeV1` is the simple branding form and `$defs/locale` is the locale overlay. ### Theme item | Field | Type | Required | Rules | |---|---|---|---| | `kind` | string | yes | `"theme"` | | `schemaVersion` | integer | yes | `2`. Version `1` is the simple six-field branding form | | `id` | string | yes | `^[a-z0-9][a-z0-9._-]{0,63}$`, equal to `spec.id` | | `scope` | string | no | `install` (default) or `workspace`. One active theme per installation and one per workspace | | `workspace` | string | if scope is `workspace` | a workspace id or `{{param.}}` | | `spec` | object | yes | the theme document, or `{"$ref": "content/theme.json"}` | ### Theme document (version 2) | Field | Type | Required | Rules | |---|---|---|---| | `id` | string | yes | `^[a-z0-9][a-z0-9._-]{0,63}$` | | `platformName` | string | yes | 1 to 64 characters. Replaces "AANCER" in the shell and on the login page | | `tagline` | string | no | at most 120 characters | | `defaultTheme` | string | no | the block a new user sees first: `light`, `dark`, `midnight`, `high-contrast`, `trust-authority`, `legal`, `terminal` | | `fonts` | array | no | at most 12 font files | | `fonts[].family` | string | yes | 1 to 64 characters, the name you use in `typography` | | `fonts[].src` | string | yes | `content/fonts/.woff2`, a real woff2 file | | `fonts[].weight` | string | no | for example `"400"` or `"400 700"`. Default `"400"` | | `fonts[].style` | string | no | `normal` or `italic` | | `fonts[].display` | string | no | `swap` (default), `block`, `fallback`, `optional`, `auto` | | `fonts[].unicodeRange` | string | no | at most 200 characters | | `typography` | object | no | CSS font stacks: `ui`, `mono`, `display`, `label`, each at most 200 characters | | `logos` | object | no | `light`, `dark`, `monochrome`, `favicon`, `emailHeader`. Each a path under `content/logos/` | | `themes` | object | yes | keys are theme block ids; `light` is required. Each block maps token to value | | `login` | object | no | `backgroundColor`, `backgroundImage` (path under `content/logos/`), `tagline` (120), `legalFooter` (500). Install scope only | | `email` | object | no | `headerBackground`, `bodyBackground`, `textColor`, `buttonColor`, each a colour. Install scope only | Every family in `typography` must be declared in `fonts` or be a generic family such as `system-ui`, `sans-serif`, `serif`, `monospace`, `ui-monospace`, `ui-sans-serif`, `-apple-system`, `'segoe ui'`, `roboto`, `'helvetica neue'`, `arial`, `menlo` or `consolas`. Colour values: `#rgb`, `#rrggbb`, `rgb(r,g,b)` or `rgba(r,g,b,a)` with `a` written as `0`, `1` or a decimal such as `0.3` or `.3`. No `var()`, `hsl()` or colour names. `--shadow-card` takes free CSS of at most 200 characters. The theme document must not contain `http:`, `https:`, `//`, `data:` or `url(` anywhere. This includes text fields such as the tagline and the legal footer. Ship files in `content/` instead. SVG logos must not contain `