Add dark theme support with theme switcher using Zustand#75
Add dark theme support with theme switcher using Zustand#75LittleLittleCloud merged 5 commits intomainfrom
Conversation
Co-authored-by: LittleLittleCloud <16876986+LittleLittleCloud@users.noreply.github.com>
Co-authored-by: LittleLittleCloud <16876986+LittleLittleCloud@users.noreply.github.com>
| undefined | ||
| ) | ||
|
|
||
| export function ThemeProvider({ |
There was a problem hiding this comment.
@copilot
Don't use useContext; use zustand to manage theme store
There was a problem hiding this comment.
Refactored to use Zustand for theme management in commit 74c7f86. The implementation now uses a Zustand store instead of React Context, eliminating the need for the provider wrapper and simplifying the state management API.
Changes:
useThemeis now a Zustand hook that directly accesses the store- Added
useThemeEffecthook to apply theme changes to the DOM - Removed ThemeProvider component wrapper from main.tsx
- Components use Zustand selectors for better performance
Screenshots:
Co-authored-by: LittleLittleCloud <16876986+LittleLittleCloud@users.noreply.github.com>
|
@copilot |
Co-authored-by: LittleLittleCloud <16876986+LittleLittleCloud@users.noreply.github.com>
Updated all components and pages with comprehensive dark mode Tailwind CSS classes in commit efd811b. Changes made:
All pages (Home, Components, Docs) now fully support both light and dark themes with proper color contrasts and styling. Screenshots: |



Adds dark theme support to the website with a toggle in the app bar that cycles through System/Light/Dark modes, defaulting to system preference. Theme state is managed using Zustand for optimal performance and simplicity. All components and pages now have comprehensive dark mode support with proper Tailwind CSS classes.
Changes
darkMode: 'class'to enable manual theme controlImplementation
Theme management uses Zustand instead of React Context for better performance and simpler API:
Benefits of Zustand:
Theme preference persists to localStorage and survives page reloads.
Dark Mode Enhancements
Components Updated:
dark:text-blue-400,dark:text-violet-400,dark:text-green-400)atomOneDark(dark) anddocco(light) themesAll pages (Home, Components, Docs) now provide a cohesive dark mode experience with proper contrast and accessibility.
Screenshots
Light theme:

Dark theme (Home):

Dark theme (Components):

Dark theme (Docs):

Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.