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.
For examples of diagram defaults, see diagram brand settings.
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.
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
color
| Field | Type | Description |
|---|---|---|
colorrequired | object | Palettes, roles, surfaces, chart palettes and contrast waivers. |
.paletterequired | 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
| Field | Type | Description |
|---|---|---|
colorrequired | object | The base colour of each role. Layouts and components use only roles, never palette steps. |
.bgrequired | string | The slide background. Text roles are checked for contrast against it. |
.surfacerequired | string | The fill of cards, panels and diagram nodes. |
.fgrequired | string | Body text, at 4.5:1 on bg and surface. |
.heading | string | Headings, at 3:1 on bg and surface. Default fg. |
.mutedrequired | string | Secondary text, captions and labels, at 4.5:1 on bg and surface. |
.accentrequired | string | Marks, highlights and large accent text, at 3:1 on bg. |
.accent-fgrequired | string | Text on an accent fill, at 4.5:1 on it. |
.borderrequired | string | Borders, rules and node outlines. |
.positiverequired | string | Good news: positive deltas and marks, at 3:1 on bg. |
.negativerequired | string | Bad news: negative deltas and marks, at 3:1 on bg. |
color.surfaces
| Field | Type | Description |
|---|---|---|
colorrequired | 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. |
.<name> | string | Overrides the base bg on this surface. Required with an image or pattern layer: the colour contrast is checked against. |
.<name> | string | Overrides the base surface role on this surface. |
.<name> | string | Overrides the base fg role on this surface. |
.<name> | string | Overrides the base heading role on this surface. |
.<name> | string | Overrides the base muted role on this surface. |
.<name> | string | Overrides the base accent role on this surface. |
.<name> | string | Overrides the base accent-fg role on this surface. |
.<name> | string | Overrides the base border role on this surface. |
.<name> | string | Overrides the base positive role on this surface. |
.<name> | string | Overrides the base negative role on this surface. |
.<name> | string | A gradient from gradients, painted as the surface's background. |
.<name> | (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] 11 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "image" | A photo or texture that fills the slide. |
.filerequired | string | An .svg, .png, .webp or .jpg file inside the brand folder. |
.fit | "cover" | "contain" | cover crops the image to the slide around focal; contain shows all of it. Default cover. |
.focal | object | The point cover crops around, in percent of the image. Default {"x":50,"y":50}. |
.focalrequired | number (0 to 100) | |
.focalrequired | number (0 to 100) | |
.opacity | number (0 to 1) | The layer's opacity. Default 1. |
.treatment | string | An image treatment from imagery.treatments. |
.tint | object | A translucent colour laid over the image, so text reads on a busy photo. |
.tintrequired | string | |
.tintrequired | number (0 to 1) |
color.surfaces.<name>.background[type=placed] 10 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "placed" | An image at a fixed place: a corner mark, an edge band, a watermark. |
.filerequired | string | An .svg, .png, .webp or .jpg file inside the brand folder. |
.aspectrequired | number (> 0, at most 50) | The image's width divided by its height. |
.anchorrequired | "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. |
.widthrequired | number (1 to 1920) | The image's width in canvas pixels. |
.offset | object | Moves the image from its anchor in canvas pixels; negative runs it off the edge. Default {"x":0,"y":0}. |
.offsetrequired | number (-1920 to 1920) | |
.offsetrequired | number (-1920 to 1920) | |
.opacity | number (0 to 1) | The layer's opacity. Default 1. |
.rotate | number (-360 to 360) | Rotation in degrees. Default 0. |
color.surfaces.<name>.background[type=pattern] 8 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "pattern" | An image repeated across the slide. |
.filerequired | string | An .svg, .png, .webp or .jpg file inside the brand folder. |
.aspectrequired | number (> 0, at most 50) | The tile image's width divided by its height. |
.tilerequired | number (4 to 960) | The width of one tile in canvas pixels. |
.offset | object | Shifts the pattern from the top left corner in canvas pixels. Default {"x":0,"y":0}. |
.offsetrequired | number (-1920 to 1920) | |
.offsetrequired | number (-1920 to 1920) | |
.opacity | number (0 to 1) | The layer's opacity. Default 1. |
color.surfaces.<name>.background[type=gradient] 3 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "gradient" | One of the brand's gradients laid over the layers below: a scrim over a photo, a glow over a pattern. |
.gradientrequired | string | A gradient from gradients. |
.opacity | number (0 to 1) | The layer's opacity. Default 1. |
color.surfaces (continued)
| Field | Type | Description |
|---|---|---|
.<name> | string | The logo.variants entry shown on this surface instead of logo.default. |
.<name> | object | Chart palettes for this surface, for colours that only work on its background. Lists left out are the brand's. |
.<name> | 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. |
.<name> | string[] | Colours for unordered series. |
.<name> | string[] | A scale from low to high. |
.<name> | string[] | A scale from one extreme through a neutral midpoint to the other. |
.<name> | string | The muted colour of everything a chart does not highlight. |
.<name> | object | Code colours on this surface; they win over the top-level code. |
.<name> | string | The code block's background. |
.<name> | string | Code text no other token colours. |
.<name> | string | Comments, set in italic. |
.<name> | string | Keywords. |
.<name> | string | Strings. |
.<name> | string | Numbers. |
.<name> | string | Function names. |
.<name> | string | Type names. |
.<name> | string | Punctuation, braces and operators. |
.<name> | string | The background of a highlighted line. |
.<name> | string | The tint of an added line in a diff. |
.<name> | string | The tint of a removed line in a diff. |
.<name> | object | Diagram colours and card colours on this surface; they win over the top-level diagram. |
.<name> | string | Node fill; derived from surface. |
.<name> | string | Node outline; derived from border. |
.<name> | string | Text on a node, at 4.5:1 on the node fill. |
.<name> | string | The fill of a group box. |
.<name> | string | Edge lines, at 3:1 on the background. |
.<name> | string | Edge and group labels and node subtitles, at 4.5:1 on the background. |
.<name> | string | The fill of a highlighted node; derived from accent. |
.<name> | string | Text on a highlighted node, at 4.5:1 on its fill. |
.<name> | string | Packets that travel along edges; derived from accent. |
.<name> | 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. |
.<name> | string | The card's fill on this surface. |
.<name> | string | The card's border on this surface. |
.<name> | string | The card's title colour on this surface. |
.<name> | string | The card's subtitle colour on this surface. |
.<name> | object | The card's icon colours on this surface. |
.<name> | string | The icon glyph's colour on this surface. |
.<name> | string | The tile colour of a solid icon on this surface. |
.<name> | string | |
.<name> | object | The card's accent stripe on this surface. |
.<name> | string | The stripe's colour on this surface. |
.<name> | object | Shadows for this surface (sm, md, lg), such as deeper ones on a dark background. |
.<name>one each for sm, md, lg | "none" | object[] (at least 1) | "none", or the shadow's layers, top first. |
.<name> | number (-1920 to 1920) | Horizontal offset in canvas pixels; positive moves the shadow right. Default 0. |
.<name>required | number (-1920 to 1920) | Vertical offset in canvas pixels; positive moves the shadow down. |
.<name>required | number (0 to 1920) | Blur radius in canvas pixels. |
.<name> | number (-1920 to 1920) | How far the shadow grows (positive) or shrinks (negative) before blurring. A PowerPoint export approximates it. Default 0. |
.<name>required | string | The shadow colour with its opacity, usually a palette reference such as ink.950/14. |
.<name> | boolean | Draws the shadow inside the box instead of outside. Default false. |
color.data
| Field | Type | Description |
|---|---|---|
colorrequired | object | The brand's chart palettes. |
.categoricalrequired | string[] | Colours for unordered series. |
.sequentialrequired | string[] | A scale from low to high. |
.divergingrequired | string[] | A scale from one extreme through a neutral midpoint to the other. |
.contextrequired | string | The muted colour of everything a chart does not highlight. |
color.waivers
| Field | Type | Description |
|---|---|---|
color | 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. |
[]required | "bg" | "surface" | "fg" | "heading" | "muted" | "accent" | "accent-fg" | "border" | "positive" | "negative" | The role of the text or mark. |
[]required | "bg" | "surface" | "fg" | "heading" | "muted" | "accent" | "accent-fg" | "border" | "positive" | "negative" | The role it sits on. |
[] | string | The one surface the waiver applies to; left out, it applies on every surface. |
[]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.
gradients
gradients
| Field | Type | Description |
|---|---|---|
gradientsrequired | 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] 6 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "linear" | A straight gradient at an angle. |
.anglerequired | number (-360 to 360) | CSS degrees: 0 points up, 90 points right. |
.stopsrequired | (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. |
.stopsrequired | string | |
.stopsrequired | number (0 to 100) | The stop's position in percent. |
.grain | number (0 to 0.4) | Noise over the gradient, as its opacity. |
gradients.<name>[type=radial] 9 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "radial" | A gradient from a centre outward. |
.shape | "circle" | "ellipse" | The gradient's shape. Default ellipse. |
.at | object | The centre, in percent of the slide. Default {"x":50,"y":50}. |
.atrequired | number (0 to 100) | |
.atrequired | number (0 to 100) | |
.stopsrequired | (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. |
.stopsrequired | string | |
.stopsrequired | number (0 to 100) | The stop's position in percent. |
.grain | number (0 to 0.4) | Noise over the gradient, as its opacity. |
gradients.<name>[type=mesh] 8 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "mesh" | Soft glows of colour layered over a base colour. |
.baserequired | string | The colour under the glows. |
.pointsrequired | object[] (at least 1) | The glows, at least one. |
.pointsrequired | string | |
.pointsrequired | number (0 to 100) | The glow's centre, in percent of the slide's width. |
.pointsrequired | number (0 to 100) | The glow's centre, in percent of the slide's height. |
.points | number (0 to 100) | How far the glow reaches, in percent of the slide. Default 60. |
.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
typography
| Field | Type | Description |
|---|---|---|
typographyrequired | object | The three font families and the eleven type steps. |
typography.families
| Field | Type | Description |
|---|---|---|
typographyrequired | object | The display, body and mono families that type steps pick from. |
.<name>requiredone each for display, body, mono | object | One family, with the fields below. |
.<name>required | string | The CSS family name, such as IBM Plex Sans. |
.<name>required | string[] | Families to fall back to, ending in a generic family such as sans-serif. |
.<name>required | object (kind "fontsource") | object (kind "files") | object (kind "system") | object (kind "unavailable") | Where the font files come from, by kind. |
.<name>required | "fontsource" | A Fontsource package installed with npm. |
.<name>required | string | The package, such as @fontsource-variable/inter. |
.<name> | string | The file set a variable package loads, such as wght, standard or full. Default wght. |
.<name> | (number (1 to 1000))[] | The weights a static package loads. |
.<name> | ("normal" | "italic")[] | The styles to load. Default ["normal"]. |
.<name> | string[] | The character subsets to load. Default ["latin","latin-ext"]. |
.<name>required | "files" | Font files in the brand folder. |
.<name>required | object[] (at least 1) | The font files, at least one. |
.<name>required | string | A .woff2, .woff, .ttf or .otf file inside the brand folder. |
.<name>required | number (1 to 1000) | [number (1 to 1000), number (1 to 1000)] | The file's weight, or [min, max] for a variable file. |
.<name> | "normal" | "italic" | The file's style. Default normal. |
.<name> | string | A CSS unicode-range, such as U+0000-00FF. |
.<name>required | "system" | A font the viewer's system provides; nothing is loaded. |
.<name>required | "unavailable" | A font the brand cannot ship yet: text renders in the fallback and every build warns. |
.<name>required | string (non-empty) | Why the files are missing, shown in the warning. |
.<name> | object | The installed family an exported PowerPoint file names as a stand-in when the brand font is neither embedded nor installed. |
.<name>required | string | The stand-in family, such as Arial. |
.<name> | string | The ten PANOSE bytes as 20 hex digits; known families have them built in. |
.<name> | integer (0 to 255) | The pitch-and-family byte PowerPoint writes; known families have it built in. |
.<name> | integer (0 to 255) | The charset byte PowerPoint writes; known families have it built in. |
typography.scale
| Field | Type | Description |
|---|---|---|
typographyrequired | object | All eleven type steps; each becomes a type-<step> class. |
.<name>requiredone each for display, headline, title, lead, body, small, caption, label, stat, quote, code | object | One type step, with the fields below. |
.<name>required | "display" | "body" | "mono" | The family role the step uses. |
.<name>required | number (20 to 1920) | Size in canvas pixels, at least 20. |
.<name>required | number (0.7 to 2.5) | Unitless line height. |
.<name>required | number (-0.1 to 0.5) | Letter spacing in em. |
.<name>required | number (1 to 1000) | Font weight on the CSS scale. |
.<name> | "none" | "upper" | upper sets the step in capitals. Default none. |
.<name> | "normal" | "italic" | The font style. Default normal. |
.<name> | string[] | OpenType features to turn on, such as tnum or ss01. |
.<name> | 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.
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
shape
| Field | Type | Description |
|---|---|---|
shaperequired | object | Corner radii, stroke widths and shadows. |
shape.radius
| Field | Type | Description |
|---|---|---|
shaperequired | object | Corner radii in canvas pixels; each becomes a rounded-<name> class. |
.smrequired | number (0 to 1920) | |
.mdrequired | number (0 to 1920) | |
.lgrequired | number (0 to 1920) | |
.xlrequired | number (0 to 1920) |
shape.stroke
| Field | Type | Description |
|---|---|---|
shaperequired | object | Stroke widths in canvas pixels, for borders, rules and diagram edges. |
.hairlinerequired | number (0 to 1920) | |
.regularrequired | number (0 to 1920) | |
.boldrequired | number (0 to 1920) |
shape.shadow
| Field | Type | Description |
|---|---|---|
shaperequired | object | The sm, md and lg shadows; each becomes a shadow-<name> class. |
.<name>requiredone each for sm, md, lg | "none" | object[] (at least 1) | "none", or the shadow's layers, top first. |
.<name> | number (-1920 to 1920) | Horizontal offset in canvas pixels; positive moves the shadow right. Default 0. |
.<name>required | number (-1920 to 1920) | Vertical offset in canvas pixels; positive moves the shadow down. |
.<name>required | number (0 to 1920) | Blur radius in canvas pixels. |
.<name> | number (-1920 to 1920) | How far the shadow grows (positive) or shrinks (negative) before blurring. A PowerPoint export approximates it. Default 0. |
.<name>required | string | The shadow colour with its opacity, usually a palette reference such as ink.950/14. |
.<name> | 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
spacing
| Field | Type | Description |
|---|---|---|
spacingrequired | object | The spacing scale, slide margins and column grid, in canvas pixels. |
spacing.scale
| Field | Type | Description |
|---|---|---|
spacingrequired | object | Eight spacing steps; each becomes p-<step>, gap-<step> and so on. |
.2xsrequired | number (0 to 1920) | |
.xsrequired | number (0 to 1920) | |
.smrequired | number (0 to 1920) | |
.mdrequired | number (0 to 1920) | |
.lgrequired | number (0 to 1920) | |
.xlrequired | number (0 to 1920) | |
.2xlrequired | number (0 to 1920) | |
.3xlrequired | number (0 to 1920) |
spacing.margin
| Field | Type | Description |
|---|---|---|
spacingrequired | object | The slide margins. |
.xrequired | number (0 to 1920) | Left and right margin in canvas pixels. |
.yrequired | number (0 to 1920) | Top and bottom margin in canvas pixels. |
spacing.grid
| Field | Type | Description |
|---|---|---|
spacingrequired | object | The layout grid. |
.columnsrequired | integer (1 to 24) | The number of columns. |
.gutterrequired | 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
logo
| Field | Type | Description |
|---|---|---|
logorequired | object | Logo files and where the chrome places the logo. |
logo.variants
| Field | Type | Description |
|---|---|---|
logorequired | Record<string, object> | Named logo files, such as primary and reversed. |
.<name>required | string | An .svg, .png or .webp file inside the brand folder. |
.<name>required | number (> 0, at most 50) | Width divided by height, to reserve space before the file loads. |
logo (continued)
| Field | Type | Description |
|---|---|---|
.defaultrequired | string | The variant shown unless a surface picks another with its logo. |
.clearSpacerequired | number (0 to 10) | Clear space around the logo, as a multiple of its height. |
logo.placement
| Field | Type | Description |
|---|---|---|
logorequired | object | Where the chrome draws the logo. |
.cornerrequired | "top-left" | "top-right" | "bottom-left" | "bottom-right" | The slide corner. |
.heightrequired | 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 |
|---|---|---|
iconsrequired | object | The icon set slides draw icons from. |
iconsrequired | string | An Iconify collection, such as lucide or tabler. |
iconsrequired | 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.
imagery
imagery
| Field | Type | Description |
|---|---|---|
imageryrequired | object | Image treatments and the one images get by default. |
imagery.treatments
| Field | Type | Description |
|---|---|---|
imageryrequired | 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] 1 field
| Field | Type | Description |
|---|---|---|
.typerequired | "none" | Draws the picture as it is. |
imagery.treatments.<name>[type=rounded] 2 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "rounded" | Rounds the picture's corners. |
.radiusrequired | "sm" | "md" | "lg" | "xl" | A radius from shape.radius. |
imagery.treatments.<name>[type=grayscale] 1 field
| Field | Type | Description |
|---|---|---|
.typerequired | "grayscale" | Draws the picture in grey. |
imagery.treatments.<name>[type=duotone] 3 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "duotone" | Maps the picture's dark and light tones to two colours. |
.shadowrequired | string | The colour of the dark tones. |
.highlightrequired | string | The colour of the light tones. |
imagery.treatments.<name>[type=tint] 3 fields
| Field | Type | Description |
|---|---|---|
.typerequired | "tint" | Lays a translucent colour over the picture. |
.colorrequired | string | The tint colour. |
.opacityrequired | number (0 to 1) | The tint's opacity. |
imagery (continued)
| Field | Type | Description |
|---|---|---|
.defaultrequired | 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
chrome
| Field | Type | Description |
|---|---|---|
chromerequired | object | What the engine draws around every slide. |
chrome.pageNumber
| Field | Type | Description |
|---|---|---|
chromerequired | object | The slide number. |
.showrequired | boolean | Whether it is drawn. |
.formatrequired | string | Text with {n} for the slide number and, optionally, {total} for the count: {n} / {total}. |
.cornerrequired | "top-left" | "top-right" | "bottom-left" | "bottom-right" | The slide corner. |
chrome.footer
| Field | Type | Description |
|---|---|---|
chromerequired | object | A line of footer text. |
.showrequired | boolean | Whether it is drawn. |
.textrequired | string | The footer text. |
.cornerrequired | "top-left" | "top-right" | "bottom-left" | "bottom-right" | The slide corner. |
chrome.progress
| Field | Type | Description |
|---|---|---|
chromerequired | object | A progress bar along one edge. |
.showrequired | boolean | Whether it is drawn. |
.edgerequired | "top" | "bottom" | The edge it runs along. |
.thicknessrequired | number (0 to 1920) | Its thickness in canvas pixels. |
chrome.logo
| Field | Type | Description |
|---|---|---|
chromerequired | object | The logo, placed by logo.placement. |
.showrequired | boolean | Whether it is drawn. |
chrome (continued)
| Field | Type | Description |
|---|---|---|
.skipFirstrequired | 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 has no page number.
motion
motion
| Field | Type | Description |
|---|---|---|
motionrequired | object | Easing curves, durations and the default slide transition. |
.easingsrequired | 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. |
.durationsrequired | Record<string, number (0 to 3000)> | Named durations in milliseconds. The kit reads fast, base and slow. |
motion.transition
| Field | Type | Description |
|---|---|---|
motionrequired | object | The slide transition used unless a slide sets transition:. |
.kindrequired | "none" | "fade" | "slide" | "rise" | "push" | "cover" | "wipe" | "zoom" | The kind of transition. |
.durationrequired | string | The name of a duration in motion.durations. |
.easingrequired | 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 | string | The code block's background. |
code | string | Code text no other token colours. |
code | string | Comments, set in italic. |
code | string | Keywords. |
code | string | Strings. |
code | string | Numbers. |
code | string | Function names. |
code | string | Type names. |
code | string | Punctuation, braces and operators. |
code | string | The background of a highlighted line. |
code | string | The tint of an added line in a diff. |
code | 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
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. |
.node | string | Node fill; derived from surface. |
.node-border | string | Node outline; derived from border. |
.node-text | string | Text on a node, at 4.5:1 on the node fill. |
.group | string | The fill of a group box. |
.edge | string | Edge lines, at 3:1 on the background. |
.label | string | Edge and group labels and node subtitles, at 4.5:1 on the background. |
.highlight | string | The fill of a highlighted node; derived from accent. |
.highlight-text | string | Text on a highlighted node, at 4.5:1 on its fill. |
.packet | string | Packets that travel along edges; derived from accent. |
.align | "left" | "center" | "right" |
diagram.edges
| Field | Type | Description |
|---|---|---|
diagram | object | How edges are drawn. |
.stroke | "hairline" | "regular" | "bold" | number (0 to 1920) | The line width, from shape.stroke. Default regular. |
.lineStyle | "solid" | "dashed" | "dotted" | |
.corners | "round" | "sharp" | round bends with the brand's lg radius; sharp bends square. Default round. |
.arrow | "triangle" | "open" | "dot" | A filled triangle, an open chevron or a dot. Default triangle. |
diagram.groups
| Field | Type | Description |
|---|---|---|
diagram | object | How group outlines are drawn. |
.stroke | "none" | "hairline" | "regular" | "bold" | number (0 to 1920) | The outline width, from shape.stroke, or none for no outline. Default hairline. |
.lineStyle | "solid" | "dashed" | "dotted" | |
.dashed | boolean | Draws the outline dashed. Default false. |
.radius | "none" | "sm" | "md" | "lg" | "xl" | The corner radius, from shape.radius, or none. Default lg. |
diagram.labels
| Field | Type | Description |
|---|---|---|
diagram | object | How edge labels are set. |
.style | "plain" | "chip" | plain text on a knock-out, or a bordered chip. Default plain. |
.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
| Field | Type | Description |
|---|---|---|
diagram | object | |
.width | number (0 to 1920) | |
.height | number (0 to 1920) | |
.subtitle | "caption" | "label" | "small" | "body" | object | |
.subtitle | "caption" | "label" | "small" | "body" | |
.subtitle | string | |
.subtitle | number (1 to 1000) | |
.subtitle | number (-0.1 to 0.5) | |
.subtitle | "none" | "upper" |
diagram.notes
| Field | Type | Description |
|---|---|---|
diagram | object | |
.type | "caption" | "label" | "small" | "body" | |
.family | string | |
.weight | number (1 to 1000) | |
.tracking | number (-0.1 to 0.5) | |
.case | "none" | "upper" |
diagram (continued)
| Field | Type | Description |
|---|---|---|
.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
| Field | Type | Description |
|---|---|---|
diagram | 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. |
.<name> | 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. |
.<name> | string | The outline colour, written as fill is. Left out: the diagram node-border colour, none for solid, accent for tint. |
.<name> | "solid" | "dashed" | "dotted" | |
.<name> | "hairline" | "regular" | "bold" | The outline width, from shape.stroke. Left out: the brand's default card's, else regular; the standard raised keeps hairline. |
.<name> | "none" | "sm" | "md" | "lg" | "xl" | The corner radius, from shape.radius, or none. Left out: the brand's default card's, else md. |
.<name> | "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. |
.<name> | "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. |
.<name> | 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. |
.<name> | string | The subtitle colour, derived and checked as text is. |
.<name> | object | How the node's icon is drawn. |
.<name> | "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. |
.<name> | string | The glyph's colour. Left out, it is derived to reach 3:1 on what it sits on. |
.<name> | string | The tile colour of a solid icon. Default accent. |
.<name> | string | |
.<name> | "hairline" | "regular" | "bold" | number (0 to 1920) | |
.<name> | "solid" | "dashed" | "dotted" | |
.<name> | 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. |
.<name> | "left" | "top" | "right" | "bottom" | The side the stripe runs along. Default left. |
.<name> | string | The stripe's colour, written as fill is. Default accent. |
.<name> | "hairline" | "regular" | "bold" | The stripe's depth, from shape.stroke. Default bold. |
.<name> | 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. |
.<name> | string | A family role: display, body or mono. |
.<name> | number (1 to 1000) | A font weight from 1 to 1000. |
.<name> | number (-0.1 to 0.5) | Letter spacing in em. |
.<name> | "none" | "upper" | upper sets the title in capitals. Default none. |
.<name> | "caption" | "label" | "small" | "body" | object | null | |
.<name> | "caption" | "label" | "small" | "body" | |
.<name> | string | |
.<name> | number (1 to 1000) | |
.<name> | number (-0.1 to 0.5) | |
.<name> | "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.
charts
charts
| Field | Type | Description |
|---|---|---|
charts | object | Gridlines, axes, chart text, number formatting, big numbers and tables. |
charts.grid
| Field | Type | Description |
|---|---|---|
charts | object | The gridlines. |
.show | boolean | Whether the gridlines is drawn. Default true. |
.color | "bg" | "surface" | "fg" | "heading" | "muted" | "accent" | "accent-fg" | "border" | "positive" | "negative" | The role it takes its colour from on each surface. Default border. |
.stroke | "hairline" | "regular" | "bold" | A stroke width from shape.stroke. Default hairline. |
.dash | "solid" | "dashed" | "dotted" | The line style. Default solid. |
charts.axis
| Field | Type | Description |
|---|---|---|
charts | object | The axis line. |
.show | boolean | Whether the axis line is drawn. Default true. |
.color | "bg" | "surface" | "fg" | "heading" | "muted" | "accent" | "accent-fg" | "border" | "positive" | "negative" | The role it takes its colour from on each surface. Default muted. |
.stroke | "hairline" | "regular" | "bold" | A stroke width from shape.stroke. Default hairline. |
.dash | "solid" | "dashed" | "dotted" | The line style. Default solid. |
.ticks | boolean | Whether the axis has tick marks. Default false. |
charts.labels
| Field | Type | Description |
|---|---|---|
charts | object | The type steps of chart text. |
.axis | "display" | "headline" | "title" | "lead" | "body" | "small" | "caption" | "label" | "stat" | "quote" | "code" | Axis labels. Default caption. |
.value | "display" | "headline" | "title" | "lead" | "body" | "small" | "caption" | "label" | "stat" | "quote" | "code" | Data labels. Default small. |
.legend | "display" | "headline" | "title" | "lead" | "body" | "small" | "caption" | "label" | "stat" | "quote" | "code" | Legend text. Default caption. |
.annotation | "display" | "headline" | "title" | "lead" | "body" | "small" | "caption" | "label" | "stat" | "quote" | "code" | Annotation text. Default caption. |
.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
| Field | Type | Description |
|---|---|---|
charts | object | Number formatting for charts, stats and tables, as Intl.NumberFormat options. |
.locale | string | A locale such as de-DE. Default en-US. |
.notation | "standard" | "compact" | compact writes 1.2M, standard 1,200,000. Default compact. |
.currency | string | An ISO 4217 code such as EUR. Default USD. |
.maximumFractionDigits | integer (0 to 4) | The most decimals a number shows. Default 1. |
.signDisplay | "auto" | "always" | "exceptZero" | When a delta shows its sign. Default exceptZero. |
charts.stat
| Field | Type | Description |
|---|---|---|
charts | object | Big numbers. |
.step | "display" | "headline" | "title" | "lead" | "body" | "small" | "caption" | "label" | "stat" | "quote" | "code" | The type step of the number. Default stat. |
.label | "display" | "headline" | "title" | "lead" | "body" | "small" | "caption" | "label" | "stat" | "quote" | "code" | The type step of its label. Default caption. |
.color | "bg" | "surface" | "fg" | "heading" | "muted" | "accent" | "accent-fg" | "border" | "positive" | "negative" | The role the number takes its colour from. Default heading. |
charts.table
| Field | Type | Description |
|---|---|---|
charts | object | Tables. |
.header | "display" | "headline" | "title" | "lead" | "body" | "small" | "caption" | "label" | "stat" | "quote" | "code" | The type step of the header row. Default label. |
.body | "display" | "headline" | "title" | "lead" | "body" | "small" | "caption" | "label" | "stat" | "quote" | "code" | The type step of the cells. Default small. |
.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. |
.rule | "hairline" | "regular" | "bold" | The stroke of the rule between rows. Default hairline. |
.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:
$ 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 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
- 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
- 50#eef2ff
- 100#dde5ff
- 200#bccbff
- 300#8fa8ff
- 400#6283ff
- 500#3f62f5
- 600#2d4ae0
- 700#2439b8
- 800#1f2f8f
- 900#1b286b
- 400#9a7bff
- 600#6a3ff0
- 700#5530c9
- 800#42269c
- 200#fde3a7
- 400#f5b53d
- 600#b86e00
- 700#955700
- 300#5eead4
- 400#34c3b0
- 600#0b8a7c
- 700#086e64
- 200#a5f3fc
- 700#0a7a8a
- 400#ff7a93
- 600#d6335a
- 200#b6f0d2
- 400#45d08f
- 700#11804f
- 200#ffd0c9
- 300#ffa98f
- 400#ff7d6b
- 600#d23c28
Surfaces
surface: defaultlightbg #fcfcfdfg #161920heading #161920muted #555c6aaccent #2d4ae0border #d9dce4
surface: inversedarkbg #0c0e13fg #f4f5f8heading #f4f5f8muted #9aa1aeaccent #6283ffborder #272b34
surface: accentdarkbg #2d4ae0fg #ffffffheading #ffffffmuted #dde5ffaccent #ffffffborder #3f62f5
surface: gradientdarkbg #2439b8fg #ffffffheading #ffffffmuted #eef2ffaccent #ffffffborder #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 | — |
headline | display | 80 | 1.02 | 620 | -0.012 | — |
title | display | 48 | 1.1 | 600 | -0.006 | — |
lead | body | 40 | 1.36 | 400 | -0.014 | — |
body | body | 36 | 1.4 | 400 | -0.01 | — |
small | body | 26 | 1.45 | 400 | 0 | — |
caption | body | 24 | 1.4 | 450 | 0 | — |
label | display | 22 | 1.2 | 640 | 0.07 | upper |
stat | display | 184 | 0.92 | 620 | -0.008 | — |
quote | display | 84 | 1.08 | 520 | -0.02 | — |
code | mono | 28 | 1.55 | 450 | 0 | — |
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.