Configuring Dark Mode
The theme supports four dark mode strategies, configured via params.mode in your hugo.yaml.
Mode Options
auto (recommended)
Follows the operating system preference using prefers-color-scheme: dark. When the user switches their OS to dark mode, the site follows automatically.
params:
mode: autotoggle
Adds a toggle button in the header. Users can switch between light and dark mode regardless of their OS setting. Their preference is stored in localStorage.
params:
mode: toggledark
Forces dark mode for all visitors.
params:
mode: darklight
Forces light mode for all visitors. This is the default if no mode is specified.
params:
mode: lightCSS Variables
The theme uses CSS custom properties for all colours. Override them in your custom CSS:
:root {
--text-color: #000;
--bg-color: #fff;
--accent-color: hsl(27, 100%, 35%);
--link-color: #007acc;
}
[data-theme="dark"] {
--text-color: #e0e0e0;
--bg-color: #1a1a1a;
--accent-color: hsl(27, 100%, 55%);
--link-color: #4db8ff;
}Tip
When using 'auto' mode, test your site with both OS light and dark mode to ensure all content is readable in both.
When using 'auto' mode, test your site with both OS light and dark mode to ensure all content is readable in both.

Cockapoo Wolf Exploding Sun