Dark Mode
Control how your site appears in light and dark color schemes. Choose between automatic switching based on system preferences or fixed color modes.
Customization Steps#
- Navigate to ⛭ Settings → Design
- Click Customize
- Click Theme
- Find the Dark mode option
- Select your preferred mode
- Click Save
Available Options#
| Option | Description |
|---|---|
Light | Always display light theme |
Dark | Always display dark theme |
Auto | Automatically match visitor's system preferences (recommended) |
Dark Mode Toggle#
Visitors can manually switch between light and dark modes using the toggle button. To enable this feature:
- Go to ⛭ Settings → Design → Customize
- Find the Additional features setting
- Make sure
toggle-dark-modeis included in the list - Click Save
See Additional Features for more details.
How It Works#
The theme uses two methods to determine which color scheme to display:
With Toggle Enabled#
When toggle-dark-mode is included in Additional Features:
- Visitors see a toggle button to switch between modes
- Their preference is saved in browser localStorage
- The saved preference overrides the default setting
- Preference persists across visits
Without Toggle#
When toggle-dark-mode is not in Additional Features:
- No toggle button is shown
- The site uses the mode selected in settings (Light, Dark, or Auto)
- Auto mode follows the visitor's system preferences