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.
| Part | What it does |
|---|---|
| Name | The theme's name. |
| Appearance | Automatic, Light or Dark. |
| CSS | The stylesheet, in a code editor. See Chapter 80 for the properties and classes. |
| Rendered preview | A specimen document drawn with your CSS as you type, so you can see the effect. |
| CSS diagnostics | Problems Pilcrow found in the CSS, such as a remote resource that is not allowed. |
| Cancel, Save | Close or keep the theme. Closing with changes asks Discard theme changes? with Discard Changes or Keep Editing. |
| Baseline | Reset 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.
| Part | What it does |
|---|---|
| Name | The theme's name. |
| Appearance | Automatic, Light or Dark. An Automatic theme has two palettes. |
| Editing colours for | For an Automatic theme, Light or Dark: which of its two palettes you are editing. |
| Colours, in five groups | App (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. |
| Preview | A miniature of Pilcrow, with a sidebar, an editor and a status bar, in the colours you chose, in light or dark. |
| Cancel, Save, Baseline | As 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.