Theme Colors
Color system used in DocuBook for styling UI elements
DocuBook comes with a carefully designed color system that ensures consistency and accessibility across your documentation. The theme includes both light and dark modes, automatically adapting to the user's system preferences.
You can override the default styles by adding your own CSS variables in the
globals.cssandoverrides.cssfiles to apply your own theme.
Default Theme
The theme color with a modern blue concept is used by the official DocuBook website.
Freshlime
The warm feel of the lime theme is designed for better contrast in dark mode.
Coffee
The brown color with coffee elements is elegant but looks simple and has an expensive impression.
Llms
This document explains how to create and implement custom color themes using AI with LLMS context. The context includes a consistent color palette for both light and dark modes, along with syntax highlighting colors for code.
Generate New Theme
- Step 1: Access LLM for Color Generation
- Step 2: Prepare Color Context
- Step 3: Define Color Requirements
- Step 4: Generate New Theme
Implementation
After receiving the new color palette:
- Copy the generated CSS code to your theme file
- Update CSS variables in
globals.css - Adjust syntax colors in
overrides.cssif needed - Test the theme across different devices and display modes
Example Implementation
Tips and Recommendations
- Always test color contrast to ensure accessibility
- Maintain consistency with existing themes
- Use tools like WebAIM Contrast Checker to verify contrast ratios
- Keep backups of previous theme versions before making major changes
Troubleshooting
- If colors don't change, ensure CSS variables are properly imported
- Check CSS selector specificity if styles conflict
- Verify dark/light mode toggling is working correctly
Last updated May 4, 2026