Skip to Content

Theme

Audience: CMS editors, integrators, and developers.

Theme defines one identity: fonts, control shape, dimensions, logo, and favicon. It links one ColorVariant for each appearance. Changing appearance selects colors without changing the Theme’s identity.

Pages use Page.theme. Headers, footers, hero slides, and individual banner buttons can select a local Theme. See theme inheritance for scope rules.

Record fields

id●
string
required

CMS record identifier.

name●
string
required

Required, unique Theme name. Editors can change it.

userId●
string
required

CMS owner identifier. The CMS sets it during creation and preserves it during updates. It is not part of the public Theme payload.

Appearance

Both relationships are required. They can reference the same ColorVariant if both appearances use the same colors. A missing relationship is invalid.

lightColorVariant●required

Complete colors used for the light appearance.

darkColorVariant●required

Complete colors used for the dark appearance.

An appearance name does not describe every background. A light ColorVariant can contain dark surfaces. Each ThemeSurface declares its own text, artwork, and native control appearance.

Fonts

defaultFont●required

Required base font for the Theme.

additionalFonts●

Optional font assignments for specific text roles.

Dimensions and control shape

rootFontSize●
number
required

Root font size in pixels for mobile and tablet. Integer, minimum 1. Default: 16.

rootFontSizeLargeScreen●
number
required

Root font size in pixels for desktop. Integer, minimum 1. Default: 18.

borderWidth●
number
required

Theme border width in pixels. Minimum 0; decimal values are valid. Default: 2.

buttonShape●
'rounded' | 'pill' | 'square'
required

Shape for filled or outlined Theme controls. Default: rounded.

Brand assets

favIconUrl●
SVG asset | null

Optional SVG favicon upload. The public asset contains filename, filesize, and url.

logoImage●

Optional logo. Its image record supplies the default file and optional artwork variants.

Surfaces select artwork with default or onDark. If an onDark file is missing, the default file is used. Editors must make sure that the supplied artwork is suitable for the surface. Logo availability does not select text colors or a background tint.

Last updated on