Skip to content

Brand schema

Every field of a brand definition.

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

FieldTypeDescription
colorrequiredobjectPalettes, roles, surfaces, chart palettes and contrast waivers.
.paletterequiredRecord<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

FieldTypeDescription
color.rolesrequiredobjectThe base colour of each role. Layouts and components use only roles, never palette steps.
.bgrequiredstringThe slide background. Text roles are checked for contrast against it.
.surfacerequiredstringThe fill of cards, panels and diagram nodes.
.fgrequiredstringBody text, at 4.5:1 on bg and surface.
.headingstringHeadings, at 3:1 on bg and surface. Default fg.
.mutedrequiredstringSecondary text, captions and labels, at 4.5:1 on bg and surface.
.accentrequiredstringMarks, highlights and large accent text, at 3:1 on bg.
.accent-fgrequiredstringText on an accent fill, at 4.5:1 on it.
.borderrequiredstringBorders, rules and node outlines.
.positiverequiredstringGood news: positive deltas and marks, at 3:1 on bg.
.negativerequiredstringBad news: negative deltas and marks, at 3:1 on bg.

color.surfaces

FieldTypeDescription
color.surfacesrequiredRecord<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>.bgstringOverrides the base bg on this surface. Required with an image or pattern layer: the colour contrast is checked against.
.<name>.surfacestringOverrides the base surface role on this surface.
.<name>.fgstringOverrides the base fg role on this surface.
.<name>.headingstringOverrides the base heading role on this surface.
.<name>.mutedstringOverrides the base muted role on this surface.
.<name>.accentstringOverrides the base accent role on this surface.
.<name>.accent-fgstringOverrides the base accent-fg role on this surface.
.<name>.borderstringOverrides the base border role on this surface.
.<name>.positivestringOverrides the base positive role on this surface.
.<name>.negativestringOverrides the base negative role on this surface.
.<name>.gradientstringA gradient from gradients, painted as the surface's background.
.<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] 11 fields
FieldTypeDescription
.typerequired"image"A photo or texture that fills the slide.
.filerequiredstringAn .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.
.focalobjectThe point cover crops around, in percent of the image. Default {"x":50,"y":50}.
.focal.xrequirednumber (0 to 100)
.focal.yrequirednumber (0 to 100)
.opacitynumber (0 to 1)The layer's opacity. Default 1.
.treatmentstringAn image treatment from imagery.treatments.
.tintobjectA translucent colour laid over the image, so text reads on a busy photo.
.tint.colorrequiredstring
.tint.opacityrequirednumber (0 to 1)
color.surfaces.<name>.background[type=placed] 10 fields
FieldTypeDescription
.typerequired"placed"An image at a fixed place: a corner mark, an edge band, a watermark.
.filerequiredstringAn .svg, .png, .webp or .jpg file inside the brand folder.
.aspectrequirednumber (> 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.
.widthrequirednumber (1 to 1920)The image's width in canvas pixels.
.offsetobjectMoves the image from its anchor in canvas pixels; negative runs it off the edge. Default {"x":0,"y":0}.
.offset.xrequirednumber (-1920 to 1920)
.offset.yrequirednumber (-1920 to 1920)
.opacitynumber (0 to 1)The layer's opacity. Default 1.
.rotatenumber (-360 to 360)Rotation in degrees. Default 0.
color.surfaces.<name>.background[type=pattern] 8 fields
FieldTypeDescription
.typerequired"pattern"An image repeated across the slide.
.filerequiredstringAn .svg, .png, .webp or .jpg file inside the brand folder.
.aspectrequirednumber (> 0, at most 50)The tile image's width divided by its height.
.tilerequirednumber (4 to 960)The width of one tile in canvas pixels.
.offsetobjectShifts the pattern from the top left corner in canvas pixels. Default {"x":0,"y":0}.
.offset.xrequirednumber (-1920 to 1920)
.offset.yrequirednumber (-1920 to 1920)
.opacitynumber (0 to 1)The layer's opacity. Default 1.
color.surfaces.<name>.background[type=gradient] 3 fields
FieldTypeDescription
.typerequired"gradient"One of the brand's gradients laid over the layers below: a scrim over a photo, a glow over a pattern.
.gradientrequiredstringA gradient from gradients.
.opacitynumber (0 to 1)The layer's opacity. Default 1.

color.surfaces (continued)

FieldTypeDescription
.<name>.logostringThe logo.variants entry shown on this surface instead of logo.default.
.<name>.dataobjectChart palettes for this surface, for colours that only work on its background. Lists left out are the brand's.
.<name>.data.platestringThe 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>.data.categoricalstring[]Colours for unordered series.
.<name>.data.sequentialstring[]A scale from low to high.
.<name>.data.divergingstring[]A scale from one extreme through a neutral midpoint to the other.
.<name>.data.contextstringThe muted colour of everything a chart does not highlight.
.<name>.codeobjectCode colours on this surface; they win over the top-level code.
.<name>.code.backgroundstringThe code block's background.
.<name>.code.foregroundstringCode text no other token colours.
.<name>.code.commentstringComments, set in italic.
.<name>.code.keywordstringKeywords.
.<name>.code.stringstringStrings.
.<name>.code.numberstringNumbers.
.<name>.code.functionstringFunction names.
.<name>.code.typestringType names.
.<name>.code.punctuationstringPunctuation, braces and operators.
.<name>.code.highlightstringThe background of a highlighted line.
.<name>.code.addedstringThe tint of an added line in a diff.
.<name>.code.removedstringThe tint of a removed line in a diff.
.<name>.diagramobjectDiagram colours and card colours on this surface; they win over the top-level diagram.
.<name>.diagram.nodestringNode fill; derived from surface.
.<name>.diagram.node-borderstringNode outline; derived from border.
.<name>.diagram.node-textstringText on a node, at 4.5:1 on the node fill.
.<name>.diagram.groupstringThe fill of a group box.
.<name>.diagram.edgestringEdge lines, at 3:1 on the background.
.<name>.diagram.labelstringEdge and group labels and node subtitles, at 4.5:1 on the background.
.<name>.diagram.highlightstringThe fill of a highlighted node; derived from accent.
.<name>.diagram.highlight-textstringText on a highlighted node, at 4.5:1 on its fill.
.<name>.diagram.packetstringPackets that travel along edges; derived from accent.
.<name>.diagram.cardsRecord<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>.diagram.cards.<name>.fillstringThe card's fill on this surface.
.<name>.diagram.cards.<name>.borderstringThe card's border on this surface.
.<name>.diagram.cards.<name>.textstringThe card's title colour on this surface.
.<name>.diagram.cards.<name>.subtextstringThe card's subtitle colour on this surface.
.<name>.diagram.cards.<name>.iconobjectThe card's icon colours on this surface.
.<name>.diagram.cards.<name>.icon.colorstringThe icon glyph's colour on this surface.
.<name>.diagram.cards.<name>.icon.fillstringThe tile colour of a solid icon on this surface.
.<name>.diagram.cards.<name>.icon.borderstring
.<name>.diagram.cards.<name>.accentobjectThe card's accent stripe on this surface.
.<name>.diagram.cards.<name>.accent.colorstringThe stripe's colour on this surface.
.<name>.shadowobjectShadows for this surface (sm, md, lg), such as deeper ones on a dark background.
.<name>.shadow.<name>one each for sm, md, lg"none" | object[] (at least 1)"none", or the shadow's layers, top first.
.<name>.shadow.<name>[].xnumber (-1920 to 1920)Horizontal offset in canvas pixels; positive moves the shadow right. Default 0.
.<name>.shadow.<name>[].yrequirednumber (-1920 to 1920)Vertical offset in canvas pixels; positive moves the shadow down.
.<name>.shadow.<name>[].blurrequirednumber (0 to 1920)Blur radius in canvas pixels.
.<name>.shadow.<name>[].spreadnumber (-1920 to 1920)How far the shadow grows (positive) or shrinks (negative) before blurring. A PowerPoint export approximates it. Default 0.
.<name>.shadow.<name>[].colorrequiredstringThe shadow colour with its opacity, usually a palette reference such as ink.950/14.
.<name>.shadow.<name>[].insetbooleanDraws the shadow inside the box instead of outside. Default false.

color.data

FieldTypeDescription
color.datarequiredobjectThe brand's chart palettes.
.categoricalrequiredstring[]Colours for unordered series.
.sequentialrequiredstring[]A scale from low to high.
.divergingrequiredstring[]A scale from one extreme through a neutral midpoint to the other.
.contextrequiredstringThe muted colour of everything a chart does not highlight.

color.waivers

FieldTypeDescription
color.waiversobject[]Accepted contrast shortfalls: the pair then needs only 3:1, and a pass below 4.5:1 is a warning that carries the reason.
[].colorrequired"bg" | "surface" | "fg" | "heading" | "muted" | "accent" | "accent-fg" | "border" | "positive" | "negative"The role of the text or mark.
[].onrequired"bg" | "surface" | "fg" | "heading" | "muted" | "accent" | "accent-fg" | "border" | "positive" | "negative"The role it sits on.
[].surfacestringThe one surface the waiver applies to; left out, it applies on every surface.
[].reasonrequiredstring (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

FieldTypeDescription
gradientsrequiredRecord<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
FieldTypeDescription
.typerequired"linear"A straight gradient at an angle.
.anglerequirednumber (-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.
.stops[].colorrequiredstring
.stops[].atrequirednumber (0 to 100)The stop's position in percent.
.grainnumber (0 to 0.4)Noise over the gradient, as its opacity.
gradients.<name>[type=radial] 9 fields
FieldTypeDescription
.typerequired"radial"A gradient from a centre outward.
.shape"circle" | "ellipse"The gradient's shape. Default ellipse.
.atobjectThe centre, in percent of the slide. Default {"x":50,"y":50}.
.at.xrequirednumber (0 to 100)
.at.yrequirednumber (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.
.stops[].colorrequiredstring
.stops[].atrequirednumber (0 to 100)The stop's position in percent.
.grainnumber (0 to 0.4)Noise over the gradient, as its opacity.
gradients.<name>[type=mesh] 8 fields
FieldTypeDescription
.typerequired"mesh"Soft glows of colour layered over a base colour.
.baserequiredstringThe colour under the glows.
.pointsrequiredobject[] (at least 1)The glows, at least one.
.points[].colorrequiredstring
.points[].xrequirednumber (0 to 100)The glow's centre, in percent of the slide's width.
.points[].yrequirednumber (0 to 100)The glow's centre, in percent of the slide's height.
.points[].sizenumber (0 to 100)How far the glow reaches, in percent of the slide. Default 60.
.grainnumber (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

FieldTypeDescription
typographyrequiredobjectThe three font families and the eleven type steps.

typography.families

FieldTypeDescription
typography.familiesrequiredobjectThe display, body and mono families that type steps pick from.
.<name>requiredone each for display, body, monoobjectOne family, with the fields below.
.<name>.familyrequiredstringThe CSS family name, such as IBM Plex Sans.
.<name>.fallbackrequiredstring[]Families to fall back to, ending in a generic family such as sans-serif.
.<name>.sourcerequiredobject (kind "fontsource") | object (kind "files") | object (kind "system") | object (kind "unavailable")Where the font files come from, by kind.
.<name>.source[kind=fontsource].kindrequired"fontsource"A Fontsource package installed with npm.
.<name>.source[kind=fontsource].packagerequiredstringThe package, such as @fontsource-variable/inter.
.<name>.source[kind=fontsource].axesstringThe file set a variable package loads, such as wght, standard or full. Default wght.
.<name>.source[kind=fontsource].weights(number (1 to 1000))[]The weights a static package loads.
.<name>.source[kind=fontsource].styles("normal" | "italic")[]The styles to load. Default ["normal"].
.<name>.source[kind=fontsource].subsetsstring[]The character subsets to load. Default ["latin","latin-ext"].
.<name>.source[kind=files].kindrequired"files"Font files in the brand folder.
.<name>.source[kind=files].filesrequiredobject[] (at least 1)The font files, at least one.
.<name>.source[kind=files].files[].pathrequiredstringA .woff2, .woff, .ttf or .otf file inside the brand folder.
.<name>.source[kind=files].files[].weightrequirednumber (1 to 1000) | [number (1 to 1000), number (1 to 1000)]The file's weight, or [min, max] for a variable file.
.<name>.source[kind=files].files[].style"normal" | "italic"The file's style. Default normal.
.<name>.source[kind=files].files[].unicodeRangestringA CSS unicode-range, such as U+0000-00FF.
.<name>.source[kind=system].kindrequired"system"A font the viewer's system provides; nothing is loaded.
.<name>.source[kind=unavailable].kindrequired"unavailable"A font the brand cannot ship yet: text renders in the fallback and every build warns.
.<name>.source[kind=unavailable].reasonrequiredstring (non-empty)Why the files are missing, shown in the warning.
.<name>.substituteobjectThe installed family an exported PowerPoint file names as a stand-in when the brand font is neither embedded nor installed.
.<name>.substitute.familyrequiredstringThe stand-in family, such as Arial.
.<name>.substitute.panosestringThe ten PANOSE bytes as 20 hex digits; known families have them built in.
.<name>.substitute.pitchFamilyinteger (0 to 255)The pitch-and-family byte PowerPoint writes; known families have it built in.
.<name>.substitute.charsetinteger (0 to 255)The charset byte PowerPoint writes; known families have it built in.

typography.scale

FieldTypeDescription
typography.scalerequiredobjectAll eleven type steps; each becomes a type-<step> class.
.<name>requiredone each for display, headline, title, lead, body, small, caption, label, stat, quote, codeobjectOne type step, with the fields below.
.<name>.familyrequired"display" | "body" | "mono"The family role the step uses.
.<name>.sizerequirednumber (20 to 1920)Size in canvas pixels, at least 20.
.<name>.lineHeightrequirednumber (0.7 to 2.5)Unitless line height.
.<name>.trackingrequirednumber (-0.1 to 0.5)Letter spacing in em.
.<name>.weightrequirednumber (1 to 1000)Font weight on the CSS scale.
.<name>.case"none" | "upper"upper sets the step in capitals. Default none.
.<name>.style"normal" | "italic"The font style. Default normal.
.<name>.featuresstring[]OpenType features to turn on, such as tnum or ss01.
.<name>.axesRecord<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

FieldTypeDescription
shaperequiredobjectCorner radii, stroke widths and shadows.

shape.radius

FieldTypeDescription
shape.radiusrequiredobjectCorner radii in canvas pixels; each becomes a rounded-<name> class.
.smrequirednumber (0 to 1920)
.mdrequirednumber (0 to 1920)
.lgrequirednumber (0 to 1920)
.xlrequirednumber (0 to 1920)

shape.stroke

FieldTypeDescription
shape.strokerequiredobjectStroke widths in canvas pixels, for borders, rules and diagram edges.
.hairlinerequirednumber (0 to 1920)
.regularrequirednumber (0 to 1920)
.boldrequirednumber (0 to 1920)

shape.shadow

FieldTypeDescription
shape.shadowrequiredobjectThe 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>[].xnumber (-1920 to 1920)Horizontal offset in canvas pixels; positive moves the shadow right. Default 0.
.<name>[].yrequirednumber (-1920 to 1920)Vertical offset in canvas pixels; positive moves the shadow down.
.<name>[].blurrequirednumber (0 to 1920)Blur radius in canvas pixels.
.<name>[].spreadnumber (-1920 to 1920)How far the shadow grows (positive) or shrinks (negative) before blurring. A PowerPoint export approximates it. Default 0.
.<name>[].colorrequiredstringThe shadow colour with its opacity, usually a palette reference such as ink.950/14.
.<name>[].insetbooleanDraws 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

FieldTypeDescription
spacingrequiredobjectThe spacing scale, slide margins and column grid, in canvas pixels.

spacing.scale

FieldTypeDescription
spacing.scalerequiredobjectEight spacing steps; each becomes p-<step>, gap-<step> and so on.
.2xsrequirednumber (0 to 1920)
.xsrequirednumber (0 to 1920)
.smrequirednumber (0 to 1920)
.mdrequirednumber (0 to 1920)
.lgrequirednumber (0 to 1920)
.xlrequirednumber (0 to 1920)
.2xlrequirednumber (0 to 1920)
.3xlrequirednumber (0 to 1920)

spacing.margin

FieldTypeDescription
spacing.marginrequiredobjectThe slide margins.
.xrequirednumber (0 to 1920)Left and right margin in canvas pixels.
.yrequirednumber (0 to 1920)Top and bottom margin in canvas pixels.

spacing.grid

FieldTypeDescription
spacing.gridrequiredobjectThe layout grid.
.columnsrequiredinteger (1 to 24)The number of columns.
.gutterrequirednumber (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.

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

FieldTypeDescription
iconsrequiredobjectThe icon set slides draw icons from.
icons.setrequiredstringAn Iconify collection, such as lucide or tabler.
icons.strokeWidthrequirednumber (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

FieldTypeDescription
imageryrequiredobjectImage treatments and the one images get by default.

imagery.treatments

FieldTypeDescription
imagery.treatmentsrequiredRecord<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
FieldTypeDescription
.typerequired"none"Draws the picture as it is.
imagery.treatments.<name>[type=rounded] 2 fields
FieldTypeDescription
.typerequired"rounded"Rounds the picture's corners.
.radiusrequired"sm" | "md" | "lg" | "xl"A radius from shape.radius.
imagery.treatments.<name>[type=grayscale] 1 field
FieldTypeDescription
.typerequired"grayscale"Draws the picture in grey.
imagery.treatments.<name>[type=duotone] 3 fields
FieldTypeDescription
.typerequired"duotone"Maps the picture's dark and light tones to two colours.
.shadowrequiredstringThe colour of the dark tones.
.highlightrequiredstringThe colour of the light tones.
imagery.treatments.<name>[type=tint] 3 fields
FieldTypeDescription
.typerequired"tint"Lays a translucent colour over the picture.
.colorrequiredstringThe tint colour.
.opacityrequirednumber (0 to 1)The tint's opacity.

imagery (continued)

FieldTypeDescription
.defaultrequiredstringThe 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

FieldTypeDescription
chromerequiredobjectWhat the engine draws around every slide.

chrome.pageNumber

FieldTypeDescription
chrome.pageNumberrequiredobjectThe slide number.
.showrequiredbooleanWhether it is drawn.
.formatrequiredstringText 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

FieldTypeDescription
chrome.footerrequiredobjectA line of footer text.
.showrequiredbooleanWhether it is drawn.
.textrequiredstringThe footer text.
.cornerrequired"top-left" | "top-right" | "bottom-left" | "bottom-right"The slide corner.

chrome.progress

FieldTypeDescription
chrome.progressrequiredobjectA progress bar along one edge.
.showrequiredbooleanWhether it is drawn.
.edgerequired"top" | "bottom"The edge it runs along.
.thicknessrequirednumber (0 to 1920)Its thickness in canvas pixels.

chrome.logo

FieldTypeDescription
chrome.logorequiredobjectThe logo, placed by logo.placement.
.showrequiredbooleanWhether it is drawn.

chrome (continued)

FieldTypeDescription
.skipFirstrequiredbooleantrue 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

FieldTypeDescription
motionrequiredobjectEasing curves, durations and the default slide transition.
.easingsrequiredRecord<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.
.durationsrequiredRecord<string, number (0 to 3000)>Named durations in milliseconds. The kit reads fast, base and slow.

motion.transition

FieldTypeDescription
motion.transitionrequiredobjectThe slide transition used unless a slide sets transition:.
.kindrequired"none" | "fade" | "slide" | "rise" | "push" | "cover" | "wipe" | "zoom"The kind of transition.
.durationrequiredstringThe name of a duration in motion.durations.
.easingrequiredstringThe 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

FieldTypeDescription
codeobjectCode colours on every surface. Left out, they are derived from each surface's roles.
code.backgroundstringThe code block's background.
code.foregroundstringCode text no other token colours.
code.commentstringComments, set in italic.
code.keywordstringKeywords.
code.stringstringStrings.
code.numberstringNumbers.
code.functionstringFunction names.
code.typestringType names.
code.punctuationstringPunctuation, braces and operators.
code.highlightstringThe background of a highlighted line.
code.addedstringThe tint of an added line in a diff.
code.removedstringThe 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

FieldTypeDescription
diagramobjectDiagram 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.
.nodestringNode fill; derived from surface.
.node-borderstringNode outline; derived from border.
.node-textstringText on a node, at 4.5:1 on the node fill.
.groupstringThe fill of a group box.
.edgestringEdge lines, at 3:1 on the background.
.labelstringEdge and group labels and node subtitles, at 4.5:1 on the background.
.highlightstringThe fill of a highlighted node; derived from accent.
.highlight-textstringText on a highlighted node, at 4.5:1 on its fill.
.packetstringPackets that travel along edges; derived from accent.
.align"left" | "center" | "right"

diagram.edges

FieldTypeDescription
diagram.edgesobjectHow 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

FieldTypeDescription
diagram.groupsobjectHow 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"
.dashedbooleanDraws the outline dashed. Default false.
.radius"none" | "sm" | "md" | "lg" | "xl"The corner radius, from shape.radius, or none. Default lg.

diagram.labels

FieldTypeDescription
diagram.labelsobjectHow 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

FieldTypeDescription
diagram.nodesobject
.widthnumber (0 to 1920)
.heightnumber (0 to 1920)
.subtitle"caption" | "label" | "small" | "body" | object
.subtitle.type"caption" | "label" | "small" | "body"
.subtitle.familystring
.subtitle.weightnumber (1 to 1000)
.subtitle.trackingnumber (-0.1 to 0.5)
.subtitle.case"none" | "upper"

diagram.notes

FieldTypeDescription
diagram.notesobject
.type"caption" | "label" | "small" | "body"
.familystring
.weightnumber (1 to 1000)
.trackingnumber (-0.1 to 0.5)
.case"none" | "upper"

diagram (continued)

FieldTypeDescription
.kindsRecord<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

FieldTypeDescription
diagram.cardsRecord<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>.fillstringA 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>.borderstringThe outline colour, written as fill is. Left out: the diagram node-border colour, none for solid, accent for tint.
.<name>.borderStyle"solid" | "dashed" | "dotted"
.<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.
.<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.
.<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.
.<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.
.<name>.textstringThe 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>.subtextstringThe subtitle colour, derived and checked as text is.
.<name>.iconobjectHow the node's icon is drawn.
.<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.
.<name>.icon.colorstringThe glyph's colour. Left out, it is derived to reach 3:1 on what it sits on.
.<name>.icon.fillstringThe tile colour of a solid icon. Default accent.
.<name>.icon.borderstring
.<name>.icon.borderWidth"hairline" | "regular" | "bold" | number (0 to 1920)
.<name>.icon.borderStyle"solid" | "dashed" | "dotted"
.<name>.accentobjectA 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>.accent.side"left" | "top" | "right" | "bottom"The side the stripe runs along. Default left.
.<name>.accent.colorstringThe stripe's colour, written as fill is. Default accent.
.<name>.accent.width"hairline" | "regular" | "bold"The stripe's depth, from shape.stroke. Default bold.
.<name>.titleobjectHow 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>.title.familystringA family role: display, body or mono.
.<name>.title.weightnumber (1 to 1000)A font weight from 1 to 1000.
.<name>.title.trackingnumber (-0.1 to 0.5)Letter spacing in em.
.<name>.title.case"none" | "upper"upper sets the title in capitals. Default none.
.<name>.subtitle"caption" | "label" | "small" | "body" | object | null
.<name>.subtitle.type"caption" | "label" | "small" | "body"
.<name>.subtitle.familystring
.<name>.subtitle.weightnumber (1 to 1000)
.<name>.subtitle.trackingnumber (-0.1 to 0.5)
.<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.

charts

charts

FieldTypeDescription
chartsobjectGridlines, axes, chart text, number formatting, big numbers and tables.

charts.grid

FieldTypeDescription
charts.gridobjectThe gridlines.
.showbooleanWhether 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

FieldTypeDescription
charts.axisobjectThe axis line.
.showbooleanWhether 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.
.ticksbooleanWhether the axis has tick marks. Default false.

charts.labels

FieldTypeDescription
charts.labelsobjectThe 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

FieldTypeDescription
charts.numbersobjectNumber formatting for charts, stats and tables, as Intl.NumberFormat options.
.localestringA locale such as de-DE. Default en-US.
.notation"standard" | "compact"compact writes 1.2M, standard 1,200,000. Default compact.
.currencystringAn ISO 4217 code such as EUR. Default USD.
.maximumFractionDigitsinteger (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

FieldTypeDescription
charts.statobjectBig 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

FieldTypeDescription
charts.tableobjectTables.
.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.
.zebrabooleanWhether 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

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: default light

    bg #fcfcfdfg #161920heading #161920muted #555c6aaccent #2d4ae0border #d9dce4

  • surface: inverse dark

    bg #0c0e13fg #f4f5f8heading #f4f5f8muted #9aa1aeaccent #6283ffborder #272b34

  • surface: accent dark

    bg #2d4ae0fg #ffffffheading #ffffffmuted #dde5ffaccent #ffffffborder #3f62f5

  • surface: gradient dark

    bg #2439b8fg #ffffffheading #ffffffmuted #eef2ffaccent #ffffffborder #ffffff3d

Typefaces

RoleFamilySource
displayBricolage Grotesque@fontsource-variable/bricolage-grotesque
bodyInter@fontsource-variable/inter
monoJetBrains Mono@fontsource-variable/jetbrains-mono

Type scale (px on the 1920×1080 canvas)

StepFaceSizeLine heightWeightTrackingCase
displaydisplay1600.98640-0.014—
headlinedisplay801.02620-0.012—
titledisplay481.1600-0.006—
leadbody401.36400-0.014—
bodybody361.4400-0.01—
smallbody261.454000—
captionbody241.44500—
labeldisplay221.26400.07upper
statdisplay1840.92620-0.008—
quotedisplay841.08520-0.02—
codemono281.554500—

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.

CardFillBorderLookTitle
default#f4f5f8#d9dce4 1 pxradius 12 px, sm shadow, solid icondisplay 600
outlinenone#d9dce4 1 pxradius 12 px, chip icondisplay 600
solid#2d4ae0noneradius 12 px, plain icondisplay 600
tint#2d4ae01f#2d4ae0 1 pxradius 12 px, solid icondisplay 600
raised#f4f5f8#d9dce4 1 pxradius 12 px, md shadow, chip icondisplay 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.

Type to search…

↑↓ navigate↵ selectEsc close