theme
The colours of the interface, the rendered Markdown and the code blocks, light and dark.
| Type | Default | Notes |
|---|---|---|
string | { light: string; dark: string } |
"default" |
Site option, JAAB reads it too |
Use cases
A named theme
theme: 'catppuccin',
| Name | Light | Dark |
|---|---|---|
default |
Paper | GitHub Dark |
catppuccin |
Latte | Mocha |
gruvbox |
Gruvbox Light | Gruvbox Dark |
rose-pine |
Dawn | Rosé Pine |
rose-pine-moon |
Dawn | Moon |
dracula |
Dracula | Dracula |
nord |
Nord | Nord |
one-dark |
One Dark | One Dark |
tokyo-night |
Tokyo Night | Tokyo Night |
A theme with one palette, as dracula, looks the same in light and dark mode:
pair it with appearance: 'dark' to drop the switcher.
Only the code blocks
A pair of Shiki themes changes the highlighting and leaves the interface as it is:
theme: { light: 'github-light', dark: 'github-dark' },
Colours of your own
Set the colours in src/jaamd.css instead: see
Colour tokens.
Limits
An unknown name stops the build.