This repository now includes multiple theme options for various projects to enhance user experience.
- Description: A dark theme with blue-grey backgrounds and cyan/purple accents
- Best for: Low-light environments, reducing eye strain
- Colors: Dark blue backgrounds with teal and purple gradient accents
- Description: A bright, clean theme with light backgrounds
- Best for: Well-lit environments, high contrast preference
- Colors: Light grey/white backgrounds with blue and green accents
- Description: A warm theme with brown, orange, and golden tones inspired by autumn
- Best for: Users who prefer warm color palettes
- Colors: Brown backgrounds with golden and orange gradient accents
- Himanshu/maitri-connect-track-main: Uses Tailwind CSS with CSS variables
- Themes are applied using CSS classes:
:root(default light),.dark,.autumn - Configure theme by adding the appropriate class to the root element
- Themes are applied using CSS classes:
- Theme Switcher: Located at the top of the left panel
- Buttons: 🌙 Dark, ☀️ Light, 🍂 Autumn
- Persistence: Selected theme is saved in localStorage
- Theme Switcher: Located at the top of the left panel
- Buttons: 🌙 Dark, ☀️ Light, 🍂 Autumn
- Persistence: Selected theme is saved in localStorage
All themes use CSS custom properties (variables) that are dynamically changed:
- Background colors (
--bg1,--bg2) - Accent colors (
--accent1,--accent2) - Text colors (
--text-color) - UI element backgrounds (
--glass,--panel-bg, etc.)
Themes are saved in the browser's localStorage:
- ToDoList:
todo-themekey - AttendanceTracker:
attendance-themekey
To add theme support to a new project:
- Define CSS variables in
:rootfor the default theme - Create theme classes (e.g.,
.light,.autumn) with overridden variables - Add theme switcher buttons to the UI
- Implement JavaScript to toggle theme classes and save preference
- Load saved theme on page load
- Dark Theme: Professional dark blue interface
- Light Theme: Clean white/grey interface
- Autumn Theme: Warm brown/orange interface
- Dark Theme: Navy blue professional interface
- Light Theme: Sky blue light interface
- Autumn Theme: Warm brown autumn palette
Potential theme additions:
- Spring theme (pastel greens and pinks)
- Winter theme (cool blues and whites)
- High contrast theme (for accessibility)
- Custom theme builder