Manifest ReferenceUI Settings

UI Settings

Reference for the UISettings section — branding colors and logo, the widget theme (format 1.10), and toggles for the player's reader controls, including the Voices toggle (format 1.12).

The optional top-level ui section lets a manifest customize the player chrome for this work: branding colors and a logo, the theme of the content widgets (format 1.10), and which reader controls are shown. It configures appearance and control visibility — reader behavior defaults (autoplay, audio on/off, manga mode, video defaults) live in settings.ui instead (see Settings).

UISettings

Defined as $defs/UISettings. All groups are optional.

branding

PropertyTypeDescription
primaryColorhex color (#RRGGBB or #RGB)Primary brand color for the player UI.
accentColorhex colorAccent color.
logostringLogo image URL/path.

controls

All toggles are booleans and default to true (shown):

PropertyDefaultControls
showLanguageToggletrueThe language switcher (relevant for multi-locale works — see Localization).
showAutoplayToggletrueThe autoplay on/off control.
showSfxToggletrueThe sound-effects toggle.
showSpeechToggletrueThe Speech toggle. It shows or hides the balloons; since format 1.12 it no longer silences their spoken lines.
showVoicesToggletrueThe reader's Voices toggle (format 1.12): the spoken lines of the balloons and the voice-over bus. See Reader Interface.
showToctrueThe table of contents.
showThumbnailstrueThe thumbnail strip/navigation.

theme (format 1.10)

The look of the reader-facing widgets: the content widget layers, the video modal, info pop-ups (openModal), choice buttons, the branch chooser and toasts. Defined as $defs/UITheme; every property is optional. The CMS edits it on the Theme tab of Work Properties.

PropertyTypeDefaultDescription
mode"light" | "dark" | "auto""dark"Built-in palette; auto follows the reader's prefers-color-scheme. Explicit colours win in every mode
colorsThemeColors—Colour tokens, below
fonts.ui / fonts.bodyThemeFont { family, fallback? }—Widget chrome (titles, buttons, times) / the default scroll text font. The player does not download fonts; the host provides them
shape.radiusnumber 0–3212Corner radius in CSS px (not scaled with the panel)
shape.borderWidthnumber 0–41Border width in CSS px
shape.shadow"none" | "soft" | "hard""soft"Card shadow
density"regular" | "compact""regular"compact: smaller paddings and controls

ThemeColors keys, all hex colours (#rgb / #rrggbb): surface, onSurface, surfaceMuted, onSurfaceMuted, accent, onAccent, border, focus, track, progress, waveform, waveformProgress, link, and backdrop, which also accepts #rrggbbaa (ColorHexAlpha).

Cascade: a layer's themeOverrides → ui.theme.colors → derived from branding (accentColor → accent, primaryColor → surface, with readable text colours computed) → the built-in palette of mode. Hosts can override any token with the CSS custom properties --pw-theme-* (see Player configuration).

Example

{
  "ui": {
    "branding": {
      "primaryColor": "#0055ff",
      "accentColor": "#ffd400",
      "logo": "https://cdn.example.com/works/city-noir/logo.svg"
    },
    "theme": {
      "mode": "light",
      "colors": { "surface": "#fffdf7", "onSurface": "#1f2937", "accent": "#0e7490", "backdrop": "#0f172acc" },
      "fonts": { "body": { "family": "Georgia", "fallback": "serif" } },
      "shape": { "radius": 10, "borderWidth": 1, "shadow": "soft" }
    },
    "controls": {
      "showLanguageToggle": true,
      "showAutoplayToggle": true,
      "showSfxToggle": true,
      "showSpeechToggle": true,
      "showVoicesToggle": true,
      "showToc": true,
      "showThumbnails": false
    }
  }
}

ui vs. settings.ui

ConcernSection
Brand colors, logo, widget theme, which controls are visibletop-level ui (UISettings, this page)
Reader behavior defaults: mangaMode, autoplayDefault, secondsPerPanel, speechDefault, audioDefault, sfxDefault, voicesDefault (format 1.12), scrollingDefault, videoPlayModeDefault, videoStartModeDefault, videoMutedDefaultsettings.ui — see Settings