Skip to content

ThemeOption

type ThemeOption =
| "light"
| "dark"
| "auto"
| CustomTheme;

Defined in: src/types/index.ts:551

Theme options: a built-in theme or a custom theme object.

'auto' follows the reader’s colour scheme: it draws the light palette inline plus an embedded @media (prefers-color-scheme: dark) stylesheet that repaints it in the dark palette. PNG and Mermaid output render it as light, and customColors and override colours stay fixed in both schemes.