theme
The Shiki theme of the code blocks.
| Type | Default |
|---|---|
string | { light: string; dark: string } |
github-light, or markdown.shikiConfig’s |
Use cases
One theme
jaamd({ theme: 'github-light' })
A light and a dark theme
jaamd({ theme: { light: 'github-light', dark: 'github-dark' } })
The code follows the page’s dark mode: see Dual-theme Shiki.
Astro’s own setting
Leave it unset. A markdown.shikiConfig you set stays as configured; Astro’s
untouched default, github-dark, becomes github-light, which suits JAAMD’s
light pages.
Limits
A name has no effect while markdown.shikiConfig.themes is set, since Shiki
reads themes first: the build warns and keeps your themes.