Theme System
Meelio uses a sophisticated theme system built onnext-themes that provides dark mode, light mode, and automatic system-based theme switching.
Theme preferences are saved locally and persist across browser sessions.
Available Themes
Meelio offers three theme modes to match your preferences and environment.Light Mode
A bright, clean interface optimized for well-lit environments.
Dark Mode
A comfortable dark theme that reduces eye strain in low-light conditions.
System
Automatically matches your operating system’s theme preference.
Changing Your Theme
Access theme settings through the Settings dialog:- Light Theme
- Dark Theme
- System Theme
Light Mode
Perfect for daytime use and bright environments.Features:- High contrast for outdoor visibility
- Clean, professional appearance
- Reduced blue light compared to pure white backgrounds
- Optimized color palette for readability
Theme Implementation
Meelio’s theme system is powered by a React Context provider that manages theme state and persistence.Technical Details
Theme Provider Architecture
Theme Provider Architecture
The theme system uses the Key Features:
ThemeProvider component located at:- LocalStorage persistence with key
ui-theme - Automatic system theme detection via media queries
- Real-time theme updates without page reload
- CSS class-based theme switching on
<html>element
Using the useTheme Hook
Using the useTheme Hook
Developers can access the theme system in custom components:
System Theme Detection
System Theme Detection
Meelio listens to the system’s color scheme preference:The system theme updates automatically when your OS theme changes, without requiring a page refresh.
Visual Customization Beyond Themes
In addition to theme selection, Meelio offers other appearance customization options:Background Wallpapers
Dynamic Backgrounds
Choose from a curated collection of beautiful wallpapers to personalize your workspace.Options:
- Static wallpapers from the gallery
- Automatic wallpaper rotation (see General Settings)
- Custom shadow overlay for better text readability
- Blur effects for content focus
Dock Customization
Dock Appearance
Customize your dock’s visual presentation:Settings:
- Toggle icon labels for cleaner appearance
- Show/hide individual dock items
- Responsive dock layout on mobile devices
Accessibility Features
Meelio’s theme system is built with accessibility in mind:High Contrast
High Contrast
Both light and dark themes maintain WCAG AA contrast ratios for text readability:
- Text on background: minimum 4.5:1 ratio
- Interactive elements: clear focus indicators
- Muted text: maintains 3:1 minimum contrast
Reduced Motion Support
Reduced Motion Support
Meelio respects your system’s reduced motion preferences:
Color Blind Friendly
Color Blind Friendly
UI elements don’t rely solely on color:
- Icons accompany color-coded elements
- Text labels provide context
- Patterns and shapes distinguish states
Theme-Aware Components
Meelio’s components automatically adapt to your selected theme:UI Components
- Cards & Panels
- Text & Typography
All panels and cards adjust their background colors, borders, and shadows based on the active theme.
- Light: Subtle shadows with light backgrounds
- Dark: Elevated surfaces with subtle highlights
Color Palette
Meelio uses a sophisticated color system that adapts to your theme:The color system uses HSL values for precise color control and smooth theme transitions.
Best Practices
Choosing Your Theme
Choosing Your Theme
Recommendations:
- Use Light theme for daytime work in bright environments
- Switch to Dark theme in low-light conditions or evening
- Select System theme to automatically match your device’s settings
- Consider enabling dark mode 2-3 hours before bedtime to reduce blue light
Combining with Backgrounds
Combining with Backgrounds
Wallpaper Selection:
- Choose darker wallpapers for dark theme
- Use lighter, softer wallpapers for light theme
- Enable shadow overlay if text readability is reduced
- Test different wallpapers with your preferred theme
Consistency Across Devices
Consistency Across Devices
Multi-Device Setup:
- Use System theme for automatic consistency
- Export your settings to maintain preferences
- Consider different themes for desktop vs mobile
Troubleshooting
Theme not applying correctly
Theme not applying correctly
If your theme isn’t displaying correctly:
- Clear your browser cache and reload
- Check that JavaScript is enabled
- Verify localStorage is not disabled
- Try selecting the theme again in Settings
System theme not switching
System theme not switching
If System theme doesn’t update automatically:
- Refresh the page after changing OS theme
- Check browser permissions for system preferences
- Try selecting a specific theme, then switch back to System
Theme preference not saving
Theme preference not saving
If your theme resets on page reload:
- Check that cookies/localStorage are enabled
- Verify you’re not in private/incognito mode
- Check browser storage quota