Add Light/Dark Theme Toggle with UI Enhancements and Bug Fixes#90
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Pull Request
Description
This PR implements a comprehensive theming system that enables users to seamlessly switch between Light Mode and Dark Mode throughout the application. It also resolves critical bugs in the Profile section affecting both themes.
What's New:
🎨 Complete Theme Toggle System - Switch between light and dark modes with a single click
🆕
ThemeContext.jsx- New context provider for global theme management🔘 Interactive Toggle Button - Added to Navbar with smooth animations
✨ Enhanced Light Mode UI - Carefully designed color schemes and improved UX
🐛 Profile Section Bug Fixes - Resolved rendering errors in both themes
💾 Theme Persistence - User preference saved to localStorage
🔧 Changes Made
New File Created:
src/context/ThemeContext.jsx- Theme provider with context management and localStorage integrationModified Files (8):
Navbar.jsx| Added theme toggle button, theme-aware stylingProfile.jsx| Fixed bugs + theme integrationHome.jsx| Updated with theme-responsive sectionsFooter.jsx| Applied dynamic theme colorsAbout.jsx| Theme-aware cards and contentAuthForms.jsx| Theme-compatible form inputs and buttons UI fixContact.jsx| Theme-aware form and layoutDashboard.jsx| Dashboard components with theme support🐛 Bugs Fixed
Profile Section:
✅ Fixed component rendering errors
✅ Resolved UI breaks in specific scenarios
✅ Corrected inconsistent styling
✅ Fixed data display issues
General UI:
✅ Improved contrast ratios (WCAG AA compliant)
✅ Fixed spacing inconsistencies
✅ Added missing hover states
✅ Resolved theme-related prop issues
Related Issue
Link the issue this PR closes or addresses
Example: Closes #89
How Has This Been Tested?
Testing Completed:
Screenshots
Previous Website
After Update
Dark Mode:

Light Mode:
FIXED:

Checklist