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
| Property | Type | Description |
|---|---|---|
primaryColor | hex color (#RRGGBB or #RGB) | Primary brand color for the player UI. |
accentColor | hex color | Accent color. |
logo | string | Logo image URL/path. |
controls
All toggles are booleans and default to true (shown):
| Property | Default | Controls |
|---|---|---|
showLanguageToggle | true | The language switcher (relevant for multi-locale works — see Localization). |
showAutoplayToggle | true | The autoplay on/off control. |
showSfxToggle | true | The sound-effects toggle. |
showSpeechToggle | true | The Speech toggle. It shows or hides the balloons; since format 1.12 it no longer silences their spoken lines. |
showVoicesToggle | true | The reader's Voices toggle (format 1.12): the spoken lines of the balloons and the voice-over bus. See Reader Interface. |
showToc | true | The table of contents. |
showThumbnails | true | The 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.
| Property | Type | Default | Description |
|---|---|---|---|
mode | "light" | "dark" | "auto" | "dark" | Built-in palette; auto follows the reader's prefers-color-scheme. Explicit colours win in every mode |
colors | ThemeColors | — | Colour tokens, below |
fonts.ui / fonts.body | ThemeFont { family, fallback? } | — | Widget chrome (titles, buttons, times) / the default scroll text font. The player does not download fonts; the host provides them |
shape.radius | number 0–32 | 12 | Corner radius in CSS px (not scaled with the panel) |
shape.borderWidth | number 0–4 | 1 | Border 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
| Concern | Section |
|---|---|
| Brand colors, logo, widget theme, which controls are visible | top-level ui (UISettings, this page) |
Reader behavior defaults: mangaMode, autoplayDefault, secondsPerPanel, speechDefault, audioDefault, sfxDefault, voicesDefault (format 1.12), scrollingDefault, videoPlayModeDefault, videoStartModeDefault, videoMutedDefault | settings.ui — see Settings |
Related pages
- Settings — behavior defaults, typography, preload, output presets
- Player: Reader Interface — what these controls look like at runtime
- Player: Configuration — host-side configuration that can further constrain the UI