Chapter 75

The theme editors

There are two kinds of theme, and each has its own editor. Open either from Settings ▸ Library ▸ Themes: New creates a theme, Edit changes a custom one, and Duplicate copies a built-in theme so you can change the copy. Built-in themes cannot be edited.

The Render Theme editor#

Edit Render Theme styles Preview, HTML, PDF, image and print output. Its Pilcrow custom properties also set Word styles. A Render Theme does not style the app or the editor.

PartWhat it does
NameThe theme's name.
AppearanceAutomatic, Light or Dark.
CSSThe stylesheet, in a code editor. See Chapter 80 for the properties and classes.
Rendered previewA specimen document drawn with your CSS as you type, so you can see the effect.
CSS diagnosticsProblems Pilcrow found in the CSS, such as a remote resource that is not allowed.
Cancel, SaveClose or keep the theme. Closing with changes asks Discard theme changes? with Discard Changes or Keep Editing.
BaselineReset to Baseline discards every change since the theme was created, duplicated or imported (after you confirm). Set as New Baseline saves the theme and makes its current state the restore point.

The Application Theme editor#

Edit Application Theme styles Pilcrow itself: its appearance, accent, sidebar, bars and editor.

PartWhat it does
NameThe theme's name.
AppearanceAutomatic, Light or Dark. An Automatic theme has two palettes.
Editing colours forFor an Automatic theme, Light or Dark: which of its two palettes you are editing.
Colours, in five groupsApp (the accent), Sidebar (background and foreground), Status and formatting bars (background and foreground), Editor (background, foreground, cursor, selection, gutter background, gutter foreground, current-line rule), and Syntax (heading, marker, code, link, muted, and code keyword, string, number and comment). Each colour shows Default until you set one, and a Reset button puts it back.
PreviewA miniature of Pilcrow, with a sidebar, an editor and a status bar, in the colours you chose, in light or dark.
Cancel, Save, BaselineAs above.

A theme may also colour individual syntax tokens. Those colours are kept, but are edited in the theme's JSON file (syntax.tokens); see Chapter 79.