---
title: "Brand schema"
description: "Every field of a brand definition."
---

> Documentation Index
> Fetch the complete documentation index at: https://sandrinodm.github.io/deckster/llms.txt
> Use this file to discover all available pages before exploring further.

# Brand schema

Use this page to check a field of a `brand.ts` while you write or review one: its type, its limits, whether it is required and what fills it in when you leave it out. To build a brand step by step, start at [create a brand](https://sandrinodm.github.io/deckster/brands/create-a-brand/).

For examples of diagram defaults, see [diagram brand settings](https://sandrinodm.github.io/deckster/data-and-diagrams/diagram-design/#set-defaults-in-a-brand).

## The file

A brand is `brands/<name>/brand.ts`, default-exporting a call to `defineBrand` from `@deckster/brand`. `defineBrand` returns its argument unchanged and types it; the build validates the object when a deck loads the brand.

```ts
import { defineBrand } from '@deckster/brand';

export default defineBrand({
  name: 'acme',
  label: 'Acme',
  color: { /* ... */ },
  // gradients, typography, shape, spacing, logo, icons, imagery, chrome and motion
});
```

Twelve top-level fields are required: `name`, `label`, `color`, `gradients`, `typography`, `shape`, `spacing`, `logo`, `icons`, `imagery`, `chrome` and `motion`. Three are optional and derived when left out: `code`, `diagram` and `charts`. `name` is the brand's folder name in kebab-case (`acme`), and must match the folder. `label` is the name people read, any non-empty text (`Acme`).

## How to read the tables

Each section below is generated from the schema: path, type with its limits, and a **required** tag when the object it sits in needs it. The prose below the tables explains how the fields work together and what happens when you omit optional values. The rows are grouped under their first two path segments (`color.surfaces`), and each row shows its path from there (`.<name>.bg`). The forms of a field that takes several (`[type=placed]` below) are folded: open one to see its fields. In a path, `<name>` stands for a key you choose (`color.surfaces.<name>` is any surface name) or for one of several keys with the same fields, listed under the row (`typography.scale.<name>` is one row for all eleven type steps). `[]` is an item of a list, and `[type=image]` is one form of a field that takes several, picked by its `type`.

Colours, wherever the type says so, are a hex literal (`#1f2937`), an `oklch(...)` literal, or a palette reference: `<palette>.<step>`, with an optional opacity in percent (`ink.900`, `ink.900/12`). A diagram card's colours also take a role, with an optional opacity (`surface`, `accent/12`), and its `fill` and `border` take `none`. Sizes are canvas pixels, on the 1920 by 1080 slide, from 0 to 1920.

## color

| Field | Type | Description |
| --- | --- | --- |
| `color` (required) | `object` | Palettes, roles, surfaces, chart palettes and contrast waivers. |
| `color.palette` (required) | `Record<string, Record<string, string>>` | Colour scales by name, each a map of step (`50`, `500`, `base`) to a hex or `oklch()` colour. Everything else refers to them as `<palette>.<step>`. |
| `color.roles` (required) | `object` | The base colour of each role. Layouts and components use only roles, never palette steps. |
| `color.roles.bg` (required) | `string` | The slide background. Text roles are checked for contrast against it. |
| `color.roles.surface` (required) | `string` | The fill of cards, panels and diagram nodes. |
| `color.roles.fg` (required) | `string` | Body text, at 4.5:1 on `bg` and `surface`. |
| `color.roles.heading` | `string` | Headings, at 3:1 on `bg` and `surface`. Default `fg`. |
| `color.roles.muted` (required) | `string` | Secondary text, captions and labels, at 4.5:1 on `bg` and `surface`. |
| `color.roles.accent` (required) | `string` | Marks, highlights and large accent text, at 3:1 on `bg`. |
| `color.roles.accent-fg` (required) | `string` | Text on an `accent` fill, at 4.5:1 on it. |
| `color.roles.border` (required) | `string` | Borders, rules and node outlines. |
| `color.roles.positive` (required) | `string` | Good news: positive deltas and marks, at 3:1 on `bg`. |
| `color.roles.negative` (required) | `string` | Bad news: negative deltas and marks, at 3:1 on `bg`. |
| `color.surfaces` (required) | `Record<string, object>` | Named surfaces a slide picks with `surface:`. `default`, `inverse`, `accent` and `gradient` always exist; one left out is derived from the roles. |
| `color.surfaces.<name>.bg` | `string` | Overrides the base `bg` on this surface. Required with an image or pattern layer: the colour contrast is checked against. |
| `color.surfaces.<name>.surface` | `string` | Overrides the base `surface` role on this surface. |
| `color.surfaces.<name>.fg` | `string` | Overrides the base `fg` role on this surface. |
| `color.surfaces.<name>.heading` | `string` | Overrides the base `heading` role on this surface. |
| `color.surfaces.<name>.muted` | `string` | Overrides the base `muted` role on this surface. |
| `color.surfaces.<name>.accent` | `string` | Overrides the base `accent` role on this surface. |
| `color.surfaces.<name>.accent-fg` | `string` | Overrides the base `accent-fg` role on this surface. |
| `color.surfaces.<name>.border` | `string` | Overrides the base `border` role on this surface. |
| `color.surfaces.<name>.positive` | `string` | Overrides the base `positive` role on this surface. |
| `color.surfaces.<name>.negative` | `string` | Overrides the base `negative` role on this surface. |
| `color.surfaces.<name>.gradient` | `string` | A gradient from `gradients`, painted as the surface's background. |
| `color.surfaces.<name>.background` | `(object (type "image") \| object (type "placed") \| object (type "pattern") \| object (type "gradient"))[] (at most 6 items)` | Layers painted in order over the surface's colour and gradient, under the slide's content. |
| `color.surfaces.<name>.background[type=image].type` (required) | `"image"` | A photo or texture that fills the slide. |
| `color.surfaces.<name>.background[type=image].file` (required) | `string` | An `.svg`, `.png`, `.webp` or `.jpg` file inside the brand folder. |
| `color.surfaces.<name>.background[type=image].fit` | `"cover" \| "contain"` | `cover` crops the image to the slide around `focal`; `contain` shows all of it. Default `cover`. |
| `color.surfaces.<name>.background[type=image].focal` | `object` | The point `cover` crops around, in percent of the image. Default `{"x":50,"y":50}`. |
| `color.surfaces.<name>.background[type=image].focal.x` (required) | `number (0 to 100)` |  |
| `color.surfaces.<name>.background[type=image].focal.y` (required) | `number (0 to 100)` |  |
| `color.surfaces.<name>.background[type=image].opacity` | `number (0 to 1)` | The layer's opacity. Default `1`. |
| `color.surfaces.<name>.background[type=image].treatment` | `string` | An image treatment from `imagery.treatments`. |
| `color.surfaces.<name>.background[type=image].tint` | `object` | A translucent colour laid over the image, so text reads on a busy photo. |
| `color.surfaces.<name>.background[type=image].tint.color` (required) | `string` |  |
| `color.surfaces.<name>.background[type=image].tint.opacity` (required) | `number (0 to 1)` |  |
| `color.surfaces.<name>.background[type=placed].type` (required) | `"placed"` | An image at a fixed place: a corner mark, an edge band, a watermark. |
| `color.surfaces.<name>.background[type=placed].file` (required) | `string` | An `.svg`, `.png`, `.webp` or `.jpg` file inside the brand folder. |
| `color.surfaces.<name>.background[type=placed].aspect` (required) | `number (> 0, at most 50)` | The image's width divided by its height. |
| `color.surfaces.<name>.background[type=placed].anchor` (required) | `"top-left" \| "top" \| "top-right" \| "left" \| "center" \| "right" \| "bottom-left" \| "bottom" \| "bottom-right"` | Where the image sits: a corner, the middle of an edge or the centre. |
| `color.surfaces.<name>.background[type=placed].width` (required) | `number (1 to 1920)` | The image's width in canvas pixels. |
| `color.surfaces.<name>.background[type=placed].offset` | `object` | Moves the image from its anchor in canvas pixels; negative runs it off the edge. Default `{"x":0,"y":0}`. |
| `color.surfaces.<name>.background[type=placed].offset.x` (required) | `number (-1920 to 1920)` |  |
| `color.surfaces.<name>.background[type=placed].offset.y` (required) | `number (-1920 to 1920)` |  |
| `color.surfaces.<name>.background[type=placed].opacity` | `number (0 to 1)` | The layer's opacity. Default `1`. |
| `color.surfaces.<name>.background[type=placed].rotate` | `number (-360 to 360)` | Rotation in degrees. Default `0`. |
| `color.surfaces.<name>.background[type=pattern].type` (required) | `"pattern"` | An image repeated across the slide. |
| `color.surfaces.<name>.background[type=pattern].file` (required) | `string` | An `.svg`, `.png`, `.webp` or `.jpg` file inside the brand folder. |
| `color.surfaces.<name>.background[type=pattern].aspect` (required) | `number (> 0, at most 50)` | The tile image's width divided by its height. |
| `color.surfaces.<name>.background[type=pattern].tile` (required) | `number (4 to 960)` | The width of one tile in canvas pixels. |
| `color.surfaces.<name>.background[type=pattern].offset` | `object` | Shifts the pattern from the top left corner in canvas pixels. Default `{"x":0,"y":0}`. |
| `color.surfaces.<name>.background[type=pattern].offset.x` (required) | `number (-1920 to 1920)` |  |
| `color.surfaces.<name>.background[type=pattern].offset.y` (required) | `number (-1920 to 1920)` |  |
| `color.surfaces.<name>.background[type=pattern].opacity` | `number (0 to 1)` | The layer's opacity. Default `1`. |
| `color.surfaces.<name>.background[type=gradient].type` (required) | `"gradient"` | One of the brand's gradients laid over the layers below: a scrim over a photo, a glow over a pattern. |
| `color.surfaces.<name>.background[type=gradient].gradient` (required) | `string` | A gradient from `gradients`. |
| `color.surfaces.<name>.background[type=gradient].opacity` | `number (0 to 1)` | The layer's opacity. Default `1`. |
| `color.surfaces.<name>.logo` | `string` | The `logo.variants` entry shown on this surface instead of `logo.default`. |
| `color.surfaces.<name>.data` | `object` | Chart palettes for this surface, for colours that only work on its background. Lists left out are the brand's. |
| `color.surfaces.<name>.data.plate` | `string` | The opaque panel charts draw behind themselves. Defaults to `bg` on a solid surface whose text reaches 10:1 on it, else a deeper shade of the background. |
| `color.surfaces.<name>.data.categorical` | `string[]` | Colours for unordered series. |
| `color.surfaces.<name>.data.sequential` | `string[]` | A scale from low to high. |
| `color.surfaces.<name>.data.diverging` | `string[]` | A scale from one extreme through a neutral midpoint to the other. |
| `color.surfaces.<name>.data.context` | `string` | The muted colour of everything a chart does not highlight. |
| `color.surfaces.<name>.code` | `object` | Code colours on this surface; they win over the top-level `code`. |
| `color.surfaces.<name>.code.background` | `string` | The code block's background. |
| `color.surfaces.<name>.code.foreground` | `string` | Code text no other token colours. |
| `color.surfaces.<name>.code.comment` | `string` | Comments, set in italic. |
| `color.surfaces.<name>.code.keyword` | `string` | Keywords. |
| `color.surfaces.<name>.code.string` | `string` | Strings. |
| `color.surfaces.<name>.code.number` | `string` | Numbers. |
| `color.surfaces.<name>.code.function` | `string` | Function names. |
| `color.surfaces.<name>.code.type` | `string` | Type names. |
| `color.surfaces.<name>.code.punctuation` | `string` | Punctuation, braces and operators. |
| `color.surfaces.<name>.code.highlight` | `string` | The background of a highlighted line. |
| `color.surfaces.<name>.code.added` | `string` | The tint of an added line in a diff. |
| `color.surfaces.<name>.code.removed` | `string` | The tint of a removed line in a diff. |
| `color.surfaces.<name>.diagram` | `object` | Diagram colours and card colours on this surface; they win over the top-level `diagram`. |
| `color.surfaces.<name>.diagram.node` | `string` | Node fill; derived from `surface`. |
| `color.surfaces.<name>.diagram.node-border` | `string` | Node outline; derived from `border`. |
| `color.surfaces.<name>.diagram.node-text` | `string` | Text on a node, at 4.5:1 on the node fill. |
| `color.surfaces.<name>.diagram.group` | `string` | The fill of a group box. |
| `color.surfaces.<name>.diagram.edge` | `string` | Edge lines, at 3:1 on the background. |
| `color.surfaces.<name>.diagram.label` | `string` | Edge and group labels and node subtitles, at 4.5:1 on the background. |
| `color.surfaces.<name>.diagram.highlight` | `string` | The fill of a highlighted node; derived from `accent`. |
| `color.surfaces.<name>.diagram.highlight-text` | `string` | Text on a highlighted node, at 4.5:1 on its fill. |
| `color.surfaces.<name>.diagram.packet` | `string` | Packets that travel along edges; derived from `accent`. |
| `color.surfaces.<name>.diagram.cards` | `Record<string, object>` | Recolours cards on this surface, by card name: colour fields only, each winning over the card's own here. The card must exist, standard or the brand's own. |
| `color.surfaces.<name>.diagram.cards.<name>.fill` | `string` | The card's `fill` on this surface. |
| `color.surfaces.<name>.diagram.cards.<name>.border` | `string` | The card's `border` on this surface. |
| `color.surfaces.<name>.diagram.cards.<name>.text` | `string` | The card's title colour on this surface. |
| `color.surfaces.<name>.diagram.cards.<name>.subtext` | `string` | The card's subtitle colour on this surface. |
| `color.surfaces.<name>.diagram.cards.<name>.icon` | `object` | The card's icon colours on this surface. |
| `color.surfaces.<name>.diagram.cards.<name>.icon.color` | `string` | The icon glyph's colour on this surface. |
| `color.surfaces.<name>.diagram.cards.<name>.icon.fill` | `string` | The tile colour of a `solid` icon on this surface. |
| `color.surfaces.<name>.diagram.cards.<name>.icon.border` | `string` |  |
| `color.surfaces.<name>.diagram.cards.<name>.accent` | `object` | The card's accent stripe on this surface. |
| `color.surfaces.<name>.diagram.cards.<name>.accent.color` | `string` | The stripe's colour on this surface. |
| `color.surfaces.<name>.shadow` | `object` | Shadows for this surface (`sm`, `md`, `lg`), such as deeper ones on a dark background. |
| `color.surfaces.<name>.shadow.<name>` (one each for `sm`, `md`, `lg`) | `"none" \| object[] (at least 1)` | `"none"`, or the shadow's layers, top first. |
| `color.surfaces.<name>.shadow.<name>[].x` | `number (-1920 to 1920)` | Horizontal offset in canvas pixels; positive moves the shadow right. Default `0`. |
| `color.surfaces.<name>.shadow.<name>[].y` (required) | `number (-1920 to 1920)` | Vertical offset in canvas pixels; positive moves the shadow down. |
| `color.surfaces.<name>.shadow.<name>[].blur` (required) | `number (0 to 1920)` | Blur radius in canvas pixels. |
| `color.surfaces.<name>.shadow.<name>[].spread` | `number (-1920 to 1920)` | How far the shadow grows (positive) or shrinks (negative) before blurring. A PowerPoint export approximates it. Default `0`. |
| `color.surfaces.<name>.shadow.<name>[].color` (required) | `string` | The shadow colour with its opacity, usually a palette reference such as `ink.950/14`. |
| `color.surfaces.<name>.shadow.<name>[].inset` | `boolean` | Draws the shadow inside the box instead of outside. Default `false`. |
| `color.data` (required) | `object` | The brand's chart palettes. |
| `color.data.categorical` (required) | `string[]` | Colours for unordered series. |
| `color.data.sequential` (required) | `string[]` | A scale from low to high. |
| `color.data.diverging` (required) | `string[]` | A scale from one extreme through a neutral midpoint to the other. |
| `color.data.context` (required) | `string` | The muted colour of everything a chart does not highlight. |
| `color.waivers` | `object[]` | Accepted contrast shortfalls: the pair then needs only 3:1, and a pass below 4.5:1 is a warning that carries the reason. |
| `color.waivers[].color` (required) | `"bg" \| "surface" \| "fg" \| "heading" \| "muted" \| "accent" \| "accent-fg" \| "border" \| "positive" \| "negative"` | The role of the text or mark. |
| `color.waivers[].on` (required) | `"bg" \| "surface" \| "fg" \| "heading" \| "muted" \| "accent" \| "accent-fg" \| "border" \| "positive" \| "negative"` | The role it sits on. |
| `color.waivers[].surface` | `string` | The one surface the waiver applies to; left out, it applies on every surface. |
| `color.waivers[].reason` (required) | `string (non-empty)` | Why the shortfall is accepted, shown with the warning. |

(brand-schema.json, color)

`palette` holds your colour scales; everything else references them. `roles` sets the ten colours every surface has (`ROLE_NAMES`): `bg`, `surface`, `fg`, `heading`, `muted`, `accent`, `accent-fg`, `border`, `positive` and `negative`. `heading` is optional and defaults to `fg`. Layouts and components use only these roles, never palette steps.

Every brand has the surfaces `default`, `inverse`, `accent` and `gradient` (`REQUIRED_SURFACES`), so a slide's `surface:` works in every brand; one you leave out of `surfaces`, or define without roles, is derived from the base roles. You may add more. A surface overrides roles on top of the base `roles`. A surface may also name a `gradient`, paint `background` layers (at most six: `image`, `placed`, `pattern` or `gradient`), pick a `logo` variant, and replace the data palettes, `code` and `diagram` colours, the colours of diagram cards (`diagram.cards`) and `shadow` on that surface. A surface with an image or pattern layer must set its own `bg`, the colour contrast is checked against. `data.plate`, the panel charts draw behind themselves, defaults to `bg` on a solid surface whose text reaches 10:1 on it, else a deeper shade of the surface's background.

`data` holds the chart palettes: `categorical` for unordered series, `sequential` from low to high, `diverging` through a neutral midpoint, and `context`, the muted colour for everything not highlighted. `waivers` accept a contrast shortfall for one role pair, with a `reason`: the pair then needs only 3:1, and a pass below 4.5:1 becomes a warning. How these fit together is on [palettes, surfaces and typography](https://sandrinodm.github.io/deckster/brands/palettes-surfaces-and-typography/).

## gradients

| Field | Type | Description |
| --- | --- | --- |
| `gradients` (required) | `Record<string, object (type "linear") \| object (type "radial") \| object (type "mesh")>` | Named gradients that surfaces and `gradient` background layers refer to. |
| `gradients.<name>[type=linear].type` (required) | `"linear"` | A straight gradient at an angle. |
| `gradients.<name>[type=linear].angle` (required) | `number (-360 to 360)` | CSS degrees: 0 points up, 90 points right. |
| `gradients.<name>[type=linear].stops` (required) | `(string \| object)[] (at least 2 items)` | At least two stops, each a colour or `{ color, at }`. As in CSS, the first defaults to 0, the last to 100 and the rest spread evenly between. |
| `gradients.<name>[type=linear].stops[].color` (required) | `string` |  |
| `gradients.<name>[type=linear].stops[].at` (required) | `number (0 to 100)` | The stop's position in percent. |
| `gradients.<name>[type=linear].grain` | `number (0 to 0.4)` | Noise over the gradient, as its opacity. |
| `gradients.<name>[type=radial].type` (required) | `"radial"` | A gradient from a centre outward. |
| `gradients.<name>[type=radial].shape` | `"circle" \| "ellipse"` | The gradient's shape. Default `ellipse`. |
| `gradients.<name>[type=radial].at` | `object` | The centre, in percent of the slide. Default `{"x":50,"y":50}`. |
| `gradients.<name>[type=radial].at.x` (required) | `number (0 to 100)` |  |
| `gradients.<name>[type=radial].at.y` (required) | `number (0 to 100)` |  |
| `gradients.<name>[type=radial].stops` (required) | `(string \| object)[] (at least 2 items)` | At least two stops, each a colour or `{ color, at }`. As in CSS, the first defaults to 0, the last to 100 and the rest spread evenly between. |
| `gradients.<name>[type=radial].stops[].color` (required) | `string` |  |
| `gradients.<name>[type=radial].stops[].at` (required) | `number (0 to 100)` | The stop's position in percent. |
| `gradients.<name>[type=radial].grain` | `number (0 to 0.4)` | Noise over the gradient, as its opacity. |
| `gradients.<name>[type=mesh].type` (required) | `"mesh"` | Soft glows of colour layered over a base colour. |
| `gradients.<name>[type=mesh].base` (required) | `string` | The colour under the glows. |
| `gradients.<name>[type=mesh].points` (required) | `object[] (at least 1)` | The glows, at least one. |
| `gradients.<name>[type=mesh].points[].color` (required) | `string` |  |
| `gradients.<name>[type=mesh].points[].x` (required) | `number (0 to 100)` | The glow's centre, in percent of the slide's width. |
| `gradients.<name>[type=mesh].points[].y` (required) | `number (0 to 100)` | The glow's centre, in percent of the slide's height. |
| `gradients.<name>[type=mesh].points[].size` | `number (0 to 100)` | How far the glow reaches, in percent of the slide. Default `60`. |
| `gradients.<name>[type=mesh].grain` | `number (0 to 0.4)` | Noise over the gradient, as its opacity. |

(brand-schema.json, gradients)

Named gradients, each `linear` (an `angle` in CSS degrees, 0 pointing up), `radial` (an ellipse unless `shape: circle`) or `mesh` (glows over a `base` colour). Linear and radial need at least two stops; `grain` adds noise up to 0.4 opacity. Surfaces and `gradient` background layers refer to them by name.

## typography

| Field | Type | Description |
| --- | --- | --- |
| `typography` (required) | `object` | The three font families and the eleven type steps. |
| `typography.families` (required) | `object` | The `display`, `body` and `mono` families that type steps pick from. |
| `typography.families.<name>` (required) (one each for `display`, `body`, `mono`) | `object` | One family, with the fields below. |
| `typography.families.<name>.family` (required) | `string` | The CSS family name, such as `IBM Plex Sans`. |
| `typography.families.<name>.fallback` (required) | `string[]` | Families to fall back to, ending in a generic family such as `sans-serif`. |
| `typography.families.<name>.source` (required) | `object (kind "fontsource") \| object (kind "files") \| object (kind "system") \| object (kind "unavailable")` | Where the font files come from, by `kind`. |
| `typography.families.<name>.source[kind=fontsource].kind` (required) | `"fontsource"` | A Fontsource package installed with npm. |
| `typography.families.<name>.source[kind=fontsource].package` (required) | `string` | The package, such as `@fontsource-variable/inter`. |
| `typography.families.<name>.source[kind=fontsource].axes` | `string` | The file set a variable package loads, such as `wght`, `standard` or `full`. Default `wght`. |
| `typography.families.<name>.source[kind=fontsource].weights` | `(number (1 to 1000))[]` | The weights a static package loads. |
| `typography.families.<name>.source[kind=fontsource].styles` | `("normal" \| "italic")[]` | The styles to load. Default `["normal"]`. |
| `typography.families.<name>.source[kind=fontsource].subsets` | `string[]` | The character subsets to load. Default `["latin","latin-ext"]`. |
| `typography.families.<name>.source[kind=files].kind` (required) | `"files"` | Font files in the brand folder. |
| `typography.families.<name>.source[kind=files].files` (required) | `object[] (at least 1)` | The font files, at least one. |
| `typography.families.<name>.source[kind=files].files[].path` (required) | `string` | A `.woff2`, `.woff`, `.ttf` or `.otf` file inside the brand folder. |
| `typography.families.<name>.source[kind=files].files[].weight` (required) | `number (1 to 1000) \| [number (1 to 1000), number (1 to 1000)]` | The file's weight, or `[min, max]` for a variable file. |
| `typography.families.<name>.source[kind=files].files[].style` | `"normal" \| "italic"` | The file's style. Default `normal`. |
| `typography.families.<name>.source[kind=files].files[].unicodeRange` | `string` | A CSS `unicode-range`, such as `U+0000-00FF`. |
| `typography.families.<name>.source[kind=system].kind` (required) | `"system"` | A font the viewer's system provides; nothing is loaded. |
| `typography.families.<name>.source[kind=unavailable].kind` (required) | `"unavailable"` | A font the brand cannot ship yet: text renders in the fallback and every build warns. |
| `typography.families.<name>.source[kind=unavailable].reason` (required) | `string (non-empty)` | Why the files are missing, shown in the warning. |
| `typography.families.<name>.substitute` | `object` | The installed family an exported PowerPoint file names as a stand-in when the brand font is neither embedded nor installed. |
| `typography.families.<name>.substitute.family` (required) | `string` | The stand-in family, such as `Arial`. |
| `typography.families.<name>.substitute.panose` | `string` | The ten PANOSE bytes as 20 hex digits; known families have them built in. |
| `typography.families.<name>.substitute.pitchFamily` | `integer (0 to 255)` | The pitch-and-family byte PowerPoint writes; known families have it built in. |
| `typography.families.<name>.substitute.charset` | `integer (0 to 255)` | The charset byte PowerPoint writes; known families have it built in. |
| `typography.scale` (required) | `object` | All eleven type steps; each becomes a `type-<step>` class. |
| `typography.scale.<name>` (required) (one each for `display`, `headline`, `title`, `lead`, `body`, `small`, `caption`, `label`, `stat`, `quote`, `code`) | `object` | One type step, with the fields below. |
| `typography.scale.<name>.family` (required) | `"display" \| "body" \| "mono"` | The family role the step uses. |
| `typography.scale.<name>.size` (required) | `number (20 to 1920)` | Size in canvas pixels, at least 20. |
| `typography.scale.<name>.lineHeight` (required) | `number (0.7 to 2.5)` | Unitless line height. |
| `typography.scale.<name>.tracking` (required) | `number (-0.1 to 0.5)` | Letter spacing in em. |
| `typography.scale.<name>.weight` (required) | `number (1 to 1000)` | Font weight on the CSS scale. |
| `typography.scale.<name>.case` | `"none" \| "upper"` | `upper` sets the step in capitals. Default `none`. |
| `typography.scale.<name>.style` | `"normal" \| "italic"` | The font style. Default `normal`. |
| `typography.scale.<name>.features` | `string[]` | OpenType features to turn on, such as `tnum` or `ss01`. |
| `typography.scale.<name>.axes` | `Record<string, number (-1000 to 1000)>` | Variable font axis values, such as `{ opsz: 144 }`. |

(brand-schema.json, typography)

Three `families`, `display`, `body` and `mono`, each with a CSS family name, a `fallback` list that must end in a generic family (`sans-serif`, `serif`, `monospace` and so on), and a `source`: a Fontsource package installed in the workspace (`fontsource`), font files in the brand folder (`files`), the viewer's system (`system`), or `unavailable` with a `reason`, which renders the fallback and warns on every build. `substitute` names the installed family a PowerPoint export falls back to. See [fonts and assets](https://sandrinodm.github.io/deckster/brands/fonts-and-assets/).

`scale` must define all eleven type steps (`TYPE_STEPS`): `display`, `headline`, `title`, `lead`, `body`, `small`, `caption`, `label`, `stat`, `quote` and `code`. Each picks a family role and sets size, line height, tracking in em and weight. No size may be below 20 canvas pixels (`MIN_TYPE_SIZE_PX`); `deck lint` holds rendered text to the same number.

## shape

| Field | Type | Description |
| --- | --- | --- |
| `shape` (required) | `object` | Corner radii, stroke widths and shadows. |
| `shape.radius` (required) | `object` | Corner radii in canvas pixels; each becomes a `rounded-<name>` class. |
| `shape.radius.sm` (required) | `number (0 to 1920)` |  |
| `shape.radius.md` (required) | `number (0 to 1920)` |  |
| `shape.radius.lg` (required) | `number (0 to 1920)` |  |
| `shape.radius.xl` (required) | `number (0 to 1920)` |  |
| `shape.stroke` (required) | `object` | Stroke widths in canvas pixels, for borders, rules and diagram edges. |
| `shape.stroke.hairline` (required) | `number (0 to 1920)` |  |
| `shape.stroke.regular` (required) | `number (0 to 1920)` |  |
| `shape.stroke.bold` (required) | `number (0 to 1920)` |  |
| `shape.shadow` (required) | `object` | The `sm`, `md` and `lg` shadows; each becomes a `shadow-<name>` class. |
| `shape.shadow.<name>` (required) (one each for `sm`, `md`, `lg`) | `"none" \| object[] (at least 1)` | `"none"`, or the shadow's layers, top first. |
| `shape.shadow.<name>[].x` | `number (-1920 to 1920)` | Horizontal offset in canvas pixels; positive moves the shadow right. Default `0`. |
| `shape.shadow.<name>[].y` (required) | `number (-1920 to 1920)` | Vertical offset in canvas pixels; positive moves the shadow down. |
| `shape.shadow.<name>[].blur` (required) | `number (0 to 1920)` | Blur radius in canvas pixels. |
| `shape.shadow.<name>[].spread` | `number (-1920 to 1920)` | How far the shadow grows (positive) or shrinks (negative) before blurring. A PowerPoint export approximates it. Default `0`. |
| `shape.shadow.<name>[].color` (required) | `string` | The shadow colour with its opacity, usually a palette reference such as `ink.950/14`. |
| `shape.shadow.<name>[].inset` | `boolean` | Draws the shadow inside the box instead of outside. Default `false`. |

(brand-schema.json, shape)

Radii, strokes and shadows, each with fixed names. A shadow is `"none"` or a list of layers, top first; a layer's `x` and `spread` default to 0 and `inset` to `false`.

## spacing

| Field | Type | Description |
| --- | --- | --- |
| `spacing` (required) | `object` | The spacing scale, slide margins and column grid, in canvas pixels. |
| `spacing.scale` (required) | `object` | Eight spacing steps; each becomes `p-<step>`, `gap-<step>` and so on. |
| `spacing.scale.2xs` (required) | `number (0 to 1920)` |  |
| `spacing.scale.xs` (required) | `number (0 to 1920)` |  |
| `spacing.scale.sm` (required) | `number (0 to 1920)` |  |
| `spacing.scale.md` (required) | `number (0 to 1920)` |  |
| `spacing.scale.lg` (required) | `number (0 to 1920)` |  |
| `spacing.scale.xl` (required) | `number (0 to 1920)` |  |
| `spacing.scale.2xl` (required) | `number (0 to 1920)` |  |
| `spacing.scale.3xl` (required) | `number (0 to 1920)` |  |
| `spacing.margin` (required) | `object` | The slide margins. |
| `spacing.margin.x` (required) | `number (0 to 1920)` | Left and right margin in canvas pixels. |
| `spacing.margin.y` (required) | `number (0 to 1920)` | Top and bottom margin in canvas pixels. |
| `spacing.grid` (required) | `object` | The layout grid. |
| `spacing.grid.columns` (required) | `integer (1 to 24)` | The number of columns. |
| `spacing.grid.gutter` (required) | `number (0 to 1920)` | The gap between columns in canvas pixels. |

(brand-schema.json, spacing)

A spacing `scale` of eight fixed steps, the slide `margin` and the column `grid`.

## logo

| Field | Type | Description |
| --- | --- | --- |
| `logo` (required) | `object` | Logo files and where the chrome places the logo. |
| `logo.variants` (required) | `Record<string, object>` | Named logo files, such as `primary` and `reversed`. |
| `logo.variants.<name>.file` (required) | `string` | An `.svg`, `.png` or `.webp` file inside the brand folder. |
| `logo.variants.<name>.aspect` (required) | `number (> 0, at most 50)` | Width divided by height, to reserve space before the file loads. |
| `logo.default` (required) | `string` | The variant shown unless a surface picks another with its `logo`. |
| `logo.clearSpace` (required) | `number (0 to 10)` | Clear space around the logo, as a multiple of its height. |
| `logo.placement` (required) | `object` | Where the chrome draws the logo. |
| `logo.placement.corner` (required) | `"top-left" \| "top-right" \| "bottom-left" \| "bottom-right"` | The slide corner. |
| `logo.placement.height` (required) | `number (0 to 1920)` | The logo's height in canvas pixels. |

(brand-schema.json, logo)

Named logo `variants`, each an SVG, PNG or WebP file in the brand folder with its width divided by its height (`aspect`). `default` names the variant shown unless a surface picks another; `clearSpace` is a multiple of the logo height.

## icons

| Field | Type | Description |
| --- | --- | --- |
| `icons` (required) | `object` | The icon set slides draw icons from. |
| `icons.set` (required) | `string` | An Iconify collection, such as `lucide` or `tabler`. |
| `icons.strokeWidth` (required) | `number (0.5 to 4)` | The stroke width icons are drawn at. |

(brand-schema.json, icons)

`set` is an Iconify collection such as `lucide` or `tabler`, and `strokeWidth` (0.5 to 4) the stroke to draw it at. The names available on slides depend on it: see [icons](https://sandrinodm.github.io/deckster/reference/icons/).

## imagery

| Field | Type | Description |
| --- | --- | --- |
| `imagery` (required) | `object` | Image treatments and the one images get by default. |
| `imagery.treatments` (required) | `Record<string, object (type "none") \| object (type "rounded") \| object (type "grayscale") \| object (type "duotone") \| object (type "tint")>` | Named treatments a slide or background layer can apply. `plain` always exists and draws the picture as it is. |
| `imagery.treatments.<name>[type=none].type` (required) | `"none"` | Draws the picture as it is. |
| `imagery.treatments.<name>[type=rounded].type` (required) | `"rounded"` | Rounds the picture's corners. |
| `imagery.treatments.<name>[type=rounded].radius` (required) | `"sm" \| "md" \| "lg" \| "xl"` | A radius from `shape.radius`. |
| `imagery.treatments.<name>[type=grayscale].type` (required) | `"grayscale"` | Draws the picture in grey. |
| `imagery.treatments.<name>[type=duotone].type` (required) | `"duotone"` | Maps the picture's dark and light tones to two colours. |
| `imagery.treatments.<name>[type=duotone].shadow` (required) | `string` | The colour of the dark tones. |
| `imagery.treatments.<name>[type=duotone].highlight` (required) | `string` | The colour of the light tones. |
| `imagery.treatments.<name>[type=tint].type` (required) | `"tint"` | Lays a translucent colour over the picture. |
| `imagery.treatments.<name>[type=tint].color` (required) | `string` | The tint colour. |
| `imagery.treatments.<name>[type=tint].opacity` (required) | `number (0 to 1)` | The tint's opacity. |
| `imagery.default` (required) | `string` | The treatment images get when they name none. |

(brand-schema.json, imagery)

Named image `treatments` (`none`, `rounded`, `grayscale`, `duotone` or `tint`) and the `default` one images get. Every brand also has `plain`, which draws a picture as it is; a brand that defines `plain` itself must define it as `{ type: 'none' }`.

## chrome

| Field | Type | Description |
| --- | --- | --- |
| `chrome` (required) | `object` | What the engine draws around every slide. |
| `chrome.pageNumber` (required) | `object` | The slide number. |
| `chrome.pageNumber.show` (required) | `boolean` | Whether it is drawn. |
| `chrome.pageNumber.format` (required) | `string` | Text with `{n}` for the slide number and, optionally, `{total}` for the count: `{n} / {total}`. |
| `chrome.pageNumber.corner` (required) | `"top-left" \| "top-right" \| "bottom-left" \| "bottom-right"` | The slide corner. |
| `chrome.footer` (required) | `object` | A line of footer text. |
| `chrome.footer.show` (required) | `boolean` | Whether it is drawn. |
| `chrome.footer.text` (required) | `string` | The footer text. |
| `chrome.footer.corner` (required) | `"top-left" \| "top-right" \| "bottom-left" \| "bottom-right"` | The slide corner. |
| `chrome.progress` (required) | `object` | A progress bar along one edge. |
| `chrome.progress.show` (required) | `boolean` | Whether it is drawn. |
| `chrome.progress.edge` (required) | `"top" \| "bottom"` | The edge it runs along. |
| `chrome.progress.thickness` (required) | `number (0 to 1920)` | Its thickness in canvas pixels. |
| `chrome.logo` (required) | `object` | The logo, placed by `logo.placement`. |
| `chrome.logo.show` (required) | `boolean` | Whether it is drawn. |
| `chrome.skipFirst` (required) | `boolean` | `true` hides all chrome on the first slide. |

(brand-schema.json, chrome)

What is drawn around every slide: the page number (its `format` must contain `{n}` and may contain `{total}`, as in `{n} / {total}`), a footer, a progress bar on the top or bottom edge, and the logo. `skipFirst: true` hides all of it on the first slide. New in 0.5.0: that is the first shown slide, the page number and the progress bar count shown slides only, and a [hidden slide](https://sandrinodm.github.io/deckster/write-slides/hidden-slides/#two-numbering-rules) has no page number.

## motion

| Field | Type | Description |
| --- | --- | --- |
| `motion` (required) | `object` | Easing curves, durations and the default slide transition. |
| `motion.easings` (required) | `Record<string, [number (0 to 1), number (-5 to 5), number (0 to 1), number (-5 to 5)]>` | Named cubic Bézier curves `[x1, y1, x2, y2]`. The kit reads `standard`, `emphasized` and `exit`. |
| `motion.durations` (required) | `Record<string, number (0 to 3000)>` | Named durations in milliseconds. The kit reads `fast`, `base` and `slow`. |
| `motion.transition` (required) | `object` | The slide transition used unless a slide sets `transition:`. |
| `motion.transition.kind` (required) | `"none" \| "fade" \| "slide" \| "rise" \| "push" \| "cover" \| "wipe" \| "zoom"` | The kind of transition. |
| `motion.transition.duration` (required) | `string` | The name of a duration in `motion.durations`. |
| `motion.transition.easing` (required) | `string` | The name of an easing in `motion.easings`. |

(brand-schema.json, motion)

`easings` are cubic Bézier curves `[x1, y1, x2, y2]` as CSS `cubic-bezier()` takes them; `durations` are milliseconds, at most 3000. `transition` is the default slide transition: a kind (`none`, `fade`, `slide`, `rise`, `push`, `cover`, `wipe` or `zoom`) and the names of one duration and one easing.

Both records are open, but the kit's entrances, step reveals, chart builds and count-ups read the easings `standard`, `emphasized` and `exit` and the durations `fast`, `base` and `slow`. Define all six. A brand that leaves some out still loads: `standard` falls back to the transition's easing, `emphasized` and `exit` to `standard`; `base` falls back to the transition's duration, `fast` is half of `base` and `slow` 1.7 times it.

## code

| Field | Type | Description |
| --- | --- | --- |
| `code` | `object` | Code colours on every surface. Left out, they are derived from each surface's roles. |
| `code.background` | `string` | The code block's background. |
| `code.foreground` | `string` | Code text no other token colours. |
| `code.comment` | `string` | Comments, set in italic. |
| `code.keyword` | `string` | Keywords. |
| `code.string` | `string` | Strings. |
| `code.number` | `string` | Numbers. |
| `code.function` | `string` | Function names. |
| `code.type` | `string` | Type names. |
| `code.punctuation` | `string` | Punctuation, braces and operators. |
| `code.highlight` | `string` | The background of a highlighted line. |
| `code.added` | `string` | The tint of an added line in a diff. |
| `code.removed` | `string` | The tint of a removed line in a diff. |

(brand-schema.json, code)

Optional. Colours of the code theme, by token. Leave the section out and the theme is derived from each surface's roles and kept readable on the code background. Set here, a token applies on every surface; set under `color.surfaces.<name>.code`, it applies on that surface and wins.

## diagram

| Field | Type | Description |
| --- | --- | --- |
| `diagram` | `object` | Diagram colours, edges, groups, edge labels and cards. Left out, the colours are derived from each surface's roles and the rest uses the defaults below. |
| `diagram.node` | `string` | Node fill; derived from `surface`. |
| `diagram.node-border` | `string` | Node outline; derived from `border`. |
| `diagram.node-text` | `string` | Text on a node, at 4.5:1 on the node fill. |
| `diagram.group` | `string` | The fill of a group box. |
| `diagram.edge` | `string` | Edge lines, at 3:1 on the background. |
| `diagram.label` | `string` | Edge and group labels and node subtitles, at 4.5:1 on the background. |
| `diagram.highlight` | `string` | The fill of a highlighted node; derived from `accent`. |
| `diagram.highlight-text` | `string` | Text on a highlighted node, at 4.5:1 on its fill. |
| `diagram.packet` | `string` | Packets that travel along edges; derived from `accent`. |
| `diagram.align` | `"left" \| "center" \| "right"` |  |
| `diagram.edges` | `object` | How edges are drawn. |
| `diagram.edges.stroke` | `"hairline" \| "regular" \| "bold" \| number (0 to 1920)` | The line width, from `shape.stroke`. Default `regular`. |
| `diagram.edges.lineStyle` | `"solid" \| "dashed" \| "dotted"` |  |
| `diagram.edges.corners` | `"round" \| "sharp"` | `round` bends with the brand's `lg` radius; `sharp` bends square. Default `round`. |
| `diagram.edges.arrow` | `"triangle" \| "open" \| "dot"` | A filled `triangle`, an `open` chevron or a `dot`. Default `triangle`. |
| `diagram.groups` | `object` | How group outlines are drawn. |
| `diagram.groups.stroke` | `"none" \| "hairline" \| "regular" \| "bold" \| number (0 to 1920)` | The outline width, from `shape.stroke`, or `none` for no outline. Default `hairline`. |
| `diagram.groups.lineStyle` | `"solid" \| "dashed" \| "dotted"` |  |
| `diagram.groups.dashed` | `boolean` | Draws the outline dashed. Default `false`. |
| `diagram.groups.radius` | `"none" \| "sm" \| "md" \| "lg" \| "xl"` | The corner radius, from `shape.radius`, or `none`. Default `lg`. |
| `diagram.labels` | `object` | How edge labels are set. |
| `diagram.labels.style` | `"plain" \| "chip"` | `plain` text on a knock-out, or a bordered `chip`. Default `plain`. |
| `diagram.labels.type` | `"caption" \| "label"` | `caption` sets labels in the caption step; `label` in the brand's `label` step, with its family, case and tracking. Default `caption`. |
| `diagram.nodes` | `object` |  |
| `diagram.nodes.width` | `number (0 to 1920)` |  |
| `diagram.nodes.height` | `number (0 to 1920)` |  |
| `diagram.nodes.subtitle` | `"caption" \| "label" \| "small" \| "body" \| object` |  |
| `diagram.nodes.subtitle.type` | `"caption" \| "label" \| "small" \| "body"` |  |
| `diagram.nodes.subtitle.family` | `string` |  |
| `diagram.nodes.subtitle.weight` | `number (1 to 1000)` |  |
| `diagram.nodes.subtitle.tracking` | `number (-0.1 to 0.5)` |  |
| `diagram.nodes.subtitle.case` | `"none" \| "upper"` |  |
| `diagram.notes` | `object` |  |
| `diagram.notes.type` | `"caption" \| "label" \| "small" \| "body"` |  |
| `diagram.notes.family` | `string` |  |
| `diagram.notes.weight` | `number (1 to 1000)` |  |
| `diagram.notes.tracking` | `number (-0.1 to 0.5)` |  |
| `diagram.notes.case` | `"none" \| "upper"` |  |
| `diagram.kinds` | `Record<string, string>` | The card a node kind uses when neither the node nor its diagram names one, such as `{ external: 'outline' }`. Keys are node kinds, not aliases (`database`, not `db`); values are cards the brand has. |
| `diagram.cards` | `Record<string, object>` | Named node styles, at most 12. `default`, `outline`, `solid`, `tint` and `raised` exist in every brand: an entry with one of those names restyles it field by field, any other kebab-case name adds a card of the brand's own, which starts from the standard `default` look. |
| `diagram.cards.<name>.fill` | `string` | A role (`surface`), a role with an opacity in percent (`accent/12`), a palette reference, a colour, or `none`. A role follows the slide's surface. Left out: the diagram `node` colour, `none` for `outline`, `accent` for `solid`, `accent/12` for `tint`, `surface` for `raised`. |
| `diagram.cards.<name>.border` | `string` | The outline colour, written as `fill` is. Left out: the diagram `node-border` colour, `none` for `solid`, `accent` for `tint`. |
| `diagram.cards.<name>.borderStyle` | `"solid" \| "dashed" \| "dotted"` |  |
| `diagram.cards.<name>.stroke` | `"hairline" \| "regular" \| "bold"` | The outline width, from `shape.stroke`. Left out: the brand's `default` card's, else `regular`; the standard `raised` keeps `hairline`. |
| `diagram.cards.<name>.radius` | `"none" \| "sm" \| "md" \| "lg" \| "xl"` | The corner radius, from `shape.radius`, or `none`. Left out: the brand's `default` card's, else `md`. |
| `diagram.cards.<name>.shadow` | `"none" \| "sm" \| "md" \| "lg"` | One of the brand's shadows, as the slide's surface draws it, or `none`; inset layers are left out. Not taken from the `default` card. The standard `raised` has `md`. Default `none`. |
| `diagram.cards.<name>.shape` | `"kind" \| "box" \| "pill"` | `kind` keeps the node kind's shape (a cylinder for a database), `box` draws a rectangle, `pill` a rectangle with round ends. Default `kind`. |
| `diagram.cards.<name>.text` | `string` | The title colour. Left out, it is derived to reach 4.5:1 on the card's fill on every surface; a colour written here is checked against that. |
| `diagram.cards.<name>.subtext` | `string` | The subtitle colour, derived and checked as `text` is. |
| `diagram.cards.<name>.icon` | `object` | How the node's icon is drawn. |
| `diagram.cards.<name>.icon.style` | `"chip" \| "solid" \| "plain" \| "none"` | `chip` a bordered tile, `solid` a filled tile, `plain` the glyph alone, `none` no icon. Left out: `chip`, `plain` for `solid`, `solid` for `tint`. |
| `diagram.cards.<name>.icon.color` | `string` | The glyph's colour. Left out, it is derived to reach 3:1 on what it sits on. |
| `diagram.cards.<name>.icon.fill` | `string` | The tile colour of a `solid` icon. Default `accent`. |
| `diagram.cards.<name>.icon.border` | `string` |  |
| `diagram.cards.<name>.icon.borderWidth` | `"hairline" \| "regular" \| "bold" \| number (0 to 1920)` |  |
| `diagram.cards.<name>.icon.borderStyle` | `"solid" \| "dashed" \| "dotted"` |  |
| `diagram.cards.<name>.accent` | `object` | A stripe along one side of the node, clipped to its outline and drawn over the fill, under the outline. Writing `accent`, even `{}`, draws it. |
| `diagram.cards.<name>.accent.side` | `"left" \| "top" \| "right" \| "bottom"` | The side the stripe runs along. Default `left`. |
| `diagram.cards.<name>.accent.color` | `string` | The stripe's colour, written as `fill` is. Default `accent`. |
| `diagram.cards.<name>.accent.width` | `"hairline" \| "regular" \| "bold"` | The stripe's depth, from `shape.stroke`. Default `bold`. |
| `diagram.cards.<name>.title` | `object` | How the node title is set; its size stays the brand's `small` step. Each field left out comes from the brand's `default` card, else the `title` type step. |
| `diagram.cards.<name>.title.family` | `string` | A family role: `display`, `body` or `mono`. |
| `diagram.cards.<name>.title.weight` | `number (1 to 1000)` | A font weight from 1 to 1000. |
| `diagram.cards.<name>.title.tracking` | `number (-0.1 to 0.5)` | Letter spacing in em. |
| `diagram.cards.<name>.title.case` | `"none" \| "upper"` | `upper` sets the title in capitals. Default `none`. |
| `diagram.cards.<name>.subtitle` | `"caption" \| "label" \| "small" \| "body" \| object \| null` |  |
| `diagram.cards.<name>.subtitle.type` | `"caption" \| "label" \| "small" \| "body"` |  |
| `diagram.cards.<name>.subtitle.family` | `string` |  |
| `diagram.cards.<name>.subtitle.weight` | `number (1 to 1000)` |  |
| `diagram.cards.<name>.subtitle.tracking` | `number (-0.1 to 0.5)` |  |
| `diagram.cards.<name>.subtitle.case` | `"none" \| "upper"` |  |

(brand-schema.json, diagram)

Optional. The nine colours (`node` to `packet`) colour diagram nodes, groups, edges, labels, highlights and packets, derived and overridden the same way as `code`; text stays readable on the node and highlight fills.

The rest is the brand's diagram look, new in 0.4.0: `edges`, `groups` and `labels` set how lines, group outlines and edge labels are drawn, `kinds` maps a node kind to a card, and `cards` restyles the five standard cards (`default`, `outline`, `solid`, `tint`, `raised`) and adds the brand's own, at most twelve entries. Every card takes `stroke`, `radius` and each `title` field from the brand's `default` card unless it sets its own (the standard `raised` keeps its hairline); its paint, shadow, icon, stripe and shape come from its own standard look, or the standard `default` look for a card of the brand's own. Text, subtitle and icon colours left out are derived to read on the card's fill on every surface. A surface recolours a card under `color.surfaces.<name>.diagram.cards`. How the parts work together, with an example, is on [diagram look and cards](https://sandrinodm.github.io/deckster/brands/diagram-look-and-cards/).

## charts

| Field | Type | Description |
| --- | --- | --- |
| `charts` | `object` | Gridlines, axes, chart text, number formatting, big numbers and tables. |
| `charts.grid` | `object` | The gridlines. |
| `charts.grid.show` | `boolean` | Whether the gridlines is drawn. Default `true`. |
| `charts.grid.color` | `"bg" \| "surface" \| "fg" \| "heading" \| "muted" \| "accent" \| "accent-fg" \| "border" \| "positive" \| "negative"` | The role it takes its colour from on each surface. Default `border`. |
| `charts.grid.stroke` | `"hairline" \| "regular" \| "bold"` | A stroke width from `shape.stroke`. Default `hairline`. |
| `charts.grid.dash` | `"solid" \| "dashed" \| "dotted"` | The line style. Default `solid`. |
| `charts.axis` | `object` | The axis line. |
| `charts.axis.show` | `boolean` | Whether the axis line is drawn. Default `true`. |
| `charts.axis.color` | `"bg" \| "surface" \| "fg" \| "heading" \| "muted" \| "accent" \| "accent-fg" \| "border" \| "positive" \| "negative"` | The role it takes its colour from on each surface. Default `muted`. |
| `charts.axis.stroke` | `"hairline" \| "regular" \| "bold"` | A stroke width from `shape.stroke`. Default `hairline`. |
| `charts.axis.dash` | `"solid" \| "dashed" \| "dotted"` | The line style. Default `solid`. |
| `charts.axis.ticks` | `boolean` | Whether the axis has tick marks. Default `false`. |
| `charts.labels` | `object` | The type steps of chart text. |
| `charts.labels.axis` | `"display" \| "headline" \| "title" \| "lead" \| "body" \| "small" \| "caption" \| "label" \| "stat" \| "quote" \| "code"` | Axis labels. Default `caption`. |
| `charts.labels.value` | `"display" \| "headline" \| "title" \| "lead" \| "body" \| "small" \| "caption" \| "label" \| "stat" \| "quote" \| "code"` | Data labels. Default `small`. |
| `charts.labels.legend` | `"display" \| "headline" \| "title" \| "lead" \| "body" \| "small" \| "caption" \| "label" \| "stat" \| "quote" \| "code"` | Legend text. Default `caption`. |
| `charts.labels.annotation` | `"display" \| "headline" \| "title" \| "lead" \| "body" \| "small" \| "caption" \| "label" \| "stat" \| "quote" \| "code"` | Annotation text. Default `caption`. |
| `charts.labels.color` | `"bg" \| "surface" \| "fg" \| "heading" \| "muted" \| "accent" \| "accent-fg" \| "border" \| "positive" \| "negative"` | The role axis and legend labels take their colour from. Default `muted`. |
| `charts.numbers` | `object` | Number formatting for charts, stats and tables, as `Intl.NumberFormat` options. |
| `charts.numbers.locale` | `string` | A locale such as `de-DE`. Default `en-US`. |
| `charts.numbers.notation` | `"standard" \| "compact"` | `compact` writes 1.2M, `standard` 1,200,000. Default `compact`. |
| `charts.numbers.currency` | `string` | An ISO 4217 code such as `EUR`. Default `USD`. |
| `charts.numbers.maximumFractionDigits` | `integer (0 to 4)` | The most decimals a number shows. Default `1`. |
| `charts.numbers.signDisplay` | `"auto" \| "always" \| "exceptZero"` | When a delta shows its sign. Default `exceptZero`. |
| `charts.stat` | `object` | Big numbers. |
| `charts.stat.step` | `"display" \| "headline" \| "title" \| "lead" \| "body" \| "small" \| "caption" \| "label" \| "stat" \| "quote" \| "code"` | The type step of the number. Default `stat`. |
| `charts.stat.label` | `"display" \| "headline" \| "title" \| "lead" \| "body" \| "small" \| "caption" \| "label" \| "stat" \| "quote" \| "code"` | The type step of its label. Default `caption`. |
| `charts.stat.color` | `"bg" \| "surface" \| "fg" \| "heading" \| "muted" \| "accent" \| "accent-fg" \| "border" \| "positive" \| "negative"` | The role the number takes its colour from. Default `heading`. |
| `charts.table` | `object` | Tables. |
| `charts.table.header` | `"display" \| "headline" \| "title" \| "lead" \| "body" \| "small" \| "caption" \| "label" \| "stat" \| "quote" \| "code"` | The type step of the header row. Default `label`. |
| `charts.table.body` | `"display" \| "headline" \| "title" \| "lead" \| "body" \| "small" \| "caption" \| "label" \| "stat" \| "quote" \| "code"` | The type step of the cells. Default `small`. |
| `charts.table.emphasis` | `"fill" \| "text" \| "bar"` | How emphasized rows are marked: an accent-tinted `fill`, accent `text`, or an accent `bar` at the row's edge. Default `fill`. |
| `charts.table.rule` | `"hairline" \| "regular" \| "bold"` | The stroke of the rule between rows. Default `hairline`. |
| `charts.table.zebra` | `boolean` | Whether alternate rows are tinted. Default `false`. |

(brand-schema.json, charts)

Optional. Gridlines, axes, the type steps of chart text, number formatting (`locale` such as `en-US`, `currency` as an ISO 4217 code such as `EUR`), and the look of big numbers and tables. Every field defaults from the roles and the type scale. Colours here are role names, not colours, so they follow the surface a chart is drawn on.

## Errors

The build, `deck lint` and `deck brand check` report every schema problem with its path and a fix, and a brand with errors does not load:

```console
$ deck brand check acme
brands/acme/brand.ts
  error   lable: "lable" is not a field of a brand.
          Fix: Rename it to "label".
  error   label: This field is required.
          Fix: Give the brand a human-readable name, for example `label: "Acme"`.
  error   typography.scale.caption.size: Expected a size of at least 20 canvas pixels, got 16.
          Fix: Write the size in canvas pixels, at least 20, for example `size: 32`.
acme: cannot be used (3 errors, 0 warnings).
```

After the schema, the checks follow palette references, gradient, surface and logo names, then contrast on every surface; [check a brand](https://sandrinodm.github.io/deckster/brands/check-a-brand/) walks through them.

## Resolved tokens

What the schema becomes once a brand loads: the `default` brand's palette, surfaces, type scale and diagram cards, with every reference and derivation resolved. `deck brand default --json` prints the full set.

**Default** (`brands/default`). The default brand: crisp, confident and light-first. Cool grays with one cobalt accent, Bricolage Grotesque for display type and labels (slightly condensed, with ink traps that show at slide sizes, set with open tracking so letters never touch) over Inter for reading, a dusk gradient from cobalt into ink, soft medium radii and quick, quiet motion. The logo sits top right, so nothing in the margin stacks on a footnote.

**Palette**

- ink: 0 `#ffffff`, 25 `#fcfcfd`, 50 `#f4f5f8`, 100 `#eaecf1`, 200 `#d9dce4`, 300 `#c2c7d1`, 400 `#9aa1ae`, 500 `#707786`, 600 `#555c6a`, 700 `#3d434f`, 800 `#272b34`, 900 `#161920`, 950 `#0c0e13`
- cobalt: 50 `#eef2ff`, 100 `#dde5ff`, 200 `#bccbff`, 300 `#8fa8ff`, 400 `#6283ff`, 500 `#3f62f5`, 600 `#2d4ae0`, 700 `#2439b8`, 800 `#1f2f8f`, 900 `#1b286b`
- violet: 400 `#9a7bff`, 600 `#6a3ff0`, 700 `#5530c9`, 800 `#42269c`
- amber: 200 `#fde3a7`, 400 `#f5b53d`, 600 `#b86e00`, 700 `#955700`
- teal: 300 `#5eead4`, 400 `#34c3b0`, 600 `#0b8a7c`, 700 `#086e64`
- cyan: 200 `#a5f3fc`, 700 `#0a7a8a`
- rose: 400 `#ff7a93`, 600 `#d6335a`
- mint: 200 `#b6f0d2`, 400 `#45d08f`, 700 `#11804f`
- coral: 200 `#ffd0c9`, 300 `#ffa98f`, 400 `#ff7d6b`, 600 `#d23c28`

**Surfaces**

| Surface | Scheme | bg | fg | heading | muted | accent | border |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `default` | light | #fcfcfd | #161920 | #161920 | #555c6a | #2d4ae0 | #d9dce4 |
| `inverse` | dark | #0c0e13 | #f4f5f8 | #f4f5f8 | #9aa1ae | #6283ff | #272b34 |
| `accent` | dark | #2d4ae0 | #ffffff | #ffffff | #dde5ff | #ffffff | #3f62f5 |
| `gradient` | dark | #2439b8 | #ffffff | #ffffff | #eef2ff | #ffffff | #ffffff3d |

**Typefaces**

| Role | Family | Source |
| --- | --- | --- |
| `display` | Bricolage Grotesque | @fontsource-variable/bricolage-grotesque |
| `body` | Inter | @fontsource-variable/inter |
| `mono` | JetBrains Mono | @fontsource-variable/jetbrains-mono |

**Type scale** (px on the 1920×1080 canvas)

| Step | Face | Size | Line height | Weight | Tracking | Case |
| --- | --- | --- | --- | --- | --- | --- |
| `display` | display | 160 | 0.98 | 640 | -0.014 | none |
| `headline` | display | 80 | 1.02 | 620 | -0.012 | none |
| `title` | display | 48 | 1.1 | 600 | -0.006 | none |
| `lead` | body | 40 | 1.36 | 400 | -0.014 | none |
| `body` | body | 36 | 1.4 | 400 | -0.01 | none |
| `small` | body | 26 | 1.45 | 400 | 0 | none |
| `caption` | body | 24 | 1.4 | 450 | 0 | none |
| `label` | display | 22 | 1.2 | 640 | 0.07 | upper |
| `stat` | display | 184 | 0.92 | 620 | -0.008 | none |
| `quote` | display | 84 | 1.08 | 520 | -0.02 | none |
| `code` | mono | 28 | 1.55 | 450 | 0 | none |

**Diagrams**

Edges: 2 px, round corners, `triangle` arrowheads. Groups: no outline, radius 20 px. Edge labels: `plain`, in the `caption` step. Kinds: `external` uses `outline`.

| Card | Fill | Border | Look | Title |
| --- | --- | --- | --- | --- |
| `default` | #f4f5f8 | #d9dce4 1 px | radius 12 px, sm shadow, solid icon | display 600 |
| `outline` | none | #d9dce4 1 px | radius 12 px, chip icon | display 600 |
| `solid` | #2d4ae0 | none | radius 12 px, plain icon | display 600 |
| `tint` | #2d4ae01f | #2d4ae0 1 px | radius 12 px, solid icon | display 600 |
| `raised` | #f4f5f8 | #d9dce4 1 px | radius 12 px, md shadow, chip icon | display 600 |

Colours on the `default` surface, sizes in px on the 1920×1080 canvas. A slide picks a card with `card="..."`; see [diagram look and cards](https://sandrinodm.github.io/deckster/brands/diagram-look-and-cards/).

Source: https://sandrinodm.github.io/deckster/reference/brand-schema/index.mdx
