Theme Mode (Light/Dark)
Controls the default color mode of your site. The theme supports following the system setting, or forcing light/dark.
Where to configure
Set in hugo.toml (or config.toml) at your site root:
toml
[params.theme]
# Note: Default mode for first-time visitors.
# Options:
# - 'auto' (recommended): follow the system/browser preference.
# - 'light': force light mode.
# - 'dark' : force dark mode.
defaultMode = 'auto'Priority rules
- User choice: if the reader changes the mode in the settings panel, it is stored locally and takes highest priority.
- Site config: for first-time visitors,
defaultModeis used. - Fallback: if unset, the theme defaults to
auto.