# Install dependencies (if not already installed)
npm install
# Start the development server
npm run dev-
Open the website in your browser (usually
http://localhost:5173) -
Locate the theme toggle button in the top navigation bar (right side)
- Light mode shows a Moon icon (🌙)
- Dark mode shows a Sun icon (☀️)
-
Click the toggle to switch between themes
- Watch all components smoothly transition
- Check different pages: Home, About, Courses
-
Test persistence:
- Switch to dark mode
- Refresh the page
- Theme should remain dark
-
Test different pages:
- Navigate to About page - see theme-aware gradients
- Check course cards - backgrounds should adapt
- Verify footer and sidebar match the theme
- White/light backgrounds
- Blue primary color (
#216fff) - Dark text on light surfaces
- Light navbar
- Dark slate backgrounds (
#0f172a,#1e293b) - Same blue accents maintained
- Light text on dark surfaces
- Dark navbar with proper contrast
- Press
Tabto focus the theme toggle - Press
EnterorSpaceto toggle
Theme not switching?
- Check browser console for errors
- Ensure
ThemeContext.jsxis properly imported - Verify
localStorageis enabled
Styles not applying?
- Check if CSS files are loaded
- Clear browser cache
- Restart dev server
Icons not showing?
- Verify
react-iconsis installed:npm install react-icons - Check import statements in
navbar.jsx
react-icons- For Sun/Moon icons- React Context API - For state management
- localStorage API - For persistence
- CSS variables - For theming