The Documentation theme supports automatic and manual light/dark mode, helping users read comfortably in any environment.
๐ How It Works:
- Automatic Mode
By default, the theme adapts to the userโs system preference (light or dark). - Manual Toggle
A toggle switch is available in the header, letting users override system settings.
โ๏ธ Customization Options (Customizer):
- Go to Documentation from sidebar
- Toggle light/dark mode behavior:
- Auto-detect system preference
- Always Light
- Always Dark
- Upload a separate logo for dark mode (optional)
๐ Styling Considerations:
- Color schemes are optimized for readability
- Icons and images adapt to maintain contrast
- Code blocks and tables are styled for both modes
๐ Pro Tip: Add a tooltip to the toggle switch so users know itโs for dark mode!