# `theme`

> The Shiki theme of the code blocks, one or a light and dark pair.

The [Shiki](https://shiki.style/themes) theme of the code blocks.

| Type                                        | Default                                     |
| ------------------------------------------- | ------------------------------------------- |
| `string \| { light: string; dark: string }` | `github-light`, or `markdown.shikiConfig`'s |

## Use cases

### One theme

```ts
jaamd({ theme: 'github-light' })
```

### A light and a dark theme

```ts
jaamd({ theme: { light: 'github-light', dark: 'github-dark' } })
```

The code follows the page's dark mode: see
[Dual-theme Shiki](https://docs.jaamd.org/jaamd/styling/themes.md#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`.
