Skip to content

Theme definition

A Theme definition holds one Theme's design tokens, read by every Component that renders under it.

PropertyValue
Pathbrand/theme.mdx
HoldsTheme
Kindfile
Leadersdb-first, git-first
TeamProduct Team
Written byChange.merge
Compiled bySiteBuilder

Example

brand/theme.mdx in a Startup repository.

brand/theme.mdx
---
tokens:
  accent: { light: '#1f6f5c', dark: '#5fc2a7' }
  surface: { light: '#ffffff', dark: '#0f1412' }
  radius: { light: 6px, dark: 6px }
  font: { light: Inter, dark: Inter }
---

Props

The frontmatter keys the file takes. The body is its prose.

PropTypeRequiredDescription
tokensjsonrequiredThe design tokens, each with a light and a dark value.

Generates

SiteBuilder compiles it into these records, Verbs and routes.

KindWhat
RecordsTheme
VerbsNone.
RoutesNone.