Themes, pencil marks and the alternatives layer
A theme is the set of colors Mayhap draws the page and its bars in. Mayhap has two of its own, Paper and Ink, and any other theme is a small file in your themes folder. The marks on the page are a separate choice, and so is whether they show at all.
Choosing a theme
To choose a theme, open Settings with Ctrl,⌘,. The first time, it opens on Look, where Theme offers System, Paper, Ink and Custom. Paper is dark ink on light paper, and Ink is light ink on a dark page.
Click the one you'd like. Every open window takes it at once, and Mayhap remembers it for the next start.
Following the system
By default, the theme is System. While your system is set to light, Mayhap draws with Paper, and while it's dark, with Ink. When the system changes, Mayhap changes with it.
If you would like System to switch between other themes, you may name them in settings.json as light_theme and dark_theme under look. Either may be Paper, Ink or one of your own. You can learn more about the file in Settings.
Your own themes
Any theme besides Paper and Ink is a file in the themes folder, beside settings.json. To see yours, click Custom. A small menu opens with each theme by its name, a dot beside the one in use, and three ways to add one: New theme, Follow a palette file… and Open themes folder. Press ↑ or ↓ and Return to pick, or click. Esc closes the menu.
Once you pick a theme, every window draws in it, and its name shows after the choices in Look.
Making a theme
To start from the theme you're using, choose New theme. Mayhap writes my-theme.json to the themes folder with every color of the theme in use, each with a short note on what it paints. It switches to the new theme and opens the file in your system's app for JSON.
Now change a color and save the file. Every window draws it again a moment later, so you may tune a theme while you look at your own page.
A theme file needs only three colors, and Mayhap works out the rest from them so that hints and highlighted text stay readable:
- surface
- The page.
- default
- The text.
- accent
- The caret, links and whatever is chosen.
Colors are written as #rrggbb, or #rrggbbaa with an opacity. The file may also give the theme a name, which the menu shows, and an appearance of light or dark. Without one, Mayhap decides by how bright the page is.
A theme added to the folder, renamed or taken out shows in the Custom menu straight away. If you would like to see the folder itself, choose Open themes folder; Mayhap makes it first if it isn't there yet.
Following another app's colors
Sometimes you may wish Mayhap to wear the same colors as your desktop or your terminal, and to keep doing so when they change. To do so, choose Follow a palette file… and pick the file that app keeps its colors in. Mayhap reads these:
- Omarchy's colors.toml
- an Alacritty theme, a .toml file
- a Kitty theme, a .conf file
- a Ghostty config
Mayhap makes a theme named for the palette and switches to it. From then on, whenever that file changes, every window takes its new colors a moment later. For example, on Omarchy, pick colors.toml in ~/.config/omarchy/current/theme. The theme is called Omarchy, and Mayhap follows every theme you switch Omarchy to.
Of course, a followed theme is still a file in your themes folder. A color you give in it yourself wins over the palette's.
When a theme has problems
If a theme file has a mistake, Mayhap says so after the document's name in the top bar, for example themes/dawn.json has 1 problem. Click it to see each problem with its line, and Open themes/dawn.json to fix it. Until then, Mayhap draws what it can, and a theme it can't use at all leaves the look as it was.
The names system, paper and ink belong to Mayhap's own choices, so a file with one of those names isn't offered.
Pencil or clean marks
By default, every mark Mayhap puts on the page is drawn as if with a pencil: the line under a word that has versions, its rings, the corners beside a paragraph, the highlighter. Each mark is a little different, like handwriting.
If you would rather have them drawn exactly, choose Clean under Marks in Settings › Look. You get the same marks in the same places, as straight lines, round dots and flat bands. Pencil brings the hand-drawn ones back.
Hiding the alternatives layer
The alternatives layer is everything Mayhap draws for text that has versions: the lines, the rings and the corners. When you'd like to read the page as plain text, press CtrlAltA⌥⌘A, or click Alternatives layer in the top bar. The marks go, and the page looks like any other editor's.
Nothing is lost while the layer is hidden. Each version stays where it was, and the one shown is the text of your document. Resting the mouse on text and pressing ↑ or ↓ simply moves the caret, but Alt↑⌥↑ and Alt↓⌥↓ still switch the version at the caret. Press CtrlAltA⌥⌘A again to bring the marks back. You can learn more about versions in Adding versions.
When you start Settle with the layer hidden, Mayhap shows it for the pass and hides it again afterwards.
The layer's toggle changes one window at a time. By default, each new window shows the layer. If you would like every new window to start without it, turn off Alternatives layer in new windows in Settings › Writing.
Keys
| Command | |
|---|---|
| Settings… | Ctrl,⌘, |
| Alternatives layer | CtrlAltA⌥⌘A |
| Next / previous version at the caret | Alt↓ / Alt↑⌥↓ / ⌥↑ |