Skip to content

Add Light/Dark Theme Toggle with UI Enhancements and Bug Fixes#90

Merged
DeadIndian merged 1 commit into
DeadIndian:mainfrom
ayushpandey101:themetoggle
Oct 11, 2025
Merged

Add Light/Dark Theme Toggle with UI Enhancements and Bug Fixes#90
DeadIndian merged 1 commit into
DeadIndian:mainfrom
ayushpandey101:themetoggle

Conversation

@ayushpandey101
Copy link
Copy Markdown
Contributor

@ayushpandey101 ayushpandey101 commented Oct 10, 2025

🚀 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 integration

Modified Files (8):

  • Navbar.jsx | Added theme toggle button, theme-aware styling
  • Profile.jsx | Fixed bugs + theme integration
  • Home.jsx | Updated with theme-responsive sections
  • Footer.jsx | Applied dynamic theme colors
  • About.jsx | Theme-aware cards and content
  • AuthForms.jsx | Theme-compatible form inputs and buttons UI fix
  • Contact.jsx | Theme-aware form and layout
  • Dashboard.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:

  • Theme toggle works perfectly
  • Theme persists after reload
  • All 8 components render correctly in both themes
  • Profile bugs completely resolved
  • Responsive on all devices
  • Keyboard accessible

Screenshots

Previous Website

Image Image Image Image

After Update

Dark Mode:
Image

Light Mode:

Image Image Image Image

FIXED:
image

image

Checklist

  • I followed the Contributing Guide
  • My code follows the project’s style guidelines
  • I performed a self-review of my code
  • I updated documentation where necessary
  • My changes generate no new warnings

Copy link
Copy Markdown
Owner

@DeadIndian DeadIndian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work... keep it up 💯

@DeadIndian DeadIndian added GSSoC'25 Part of GSSoC'25 program level 3 Advanced/Hard hacktoberfest labels Oct 11, 2025
@DeadIndian DeadIndian merged commit b33a719 into DeadIndian:main Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GSSoC'25 Part of GSSoC'25 program hacktoberfest level 3 Advanced/Hard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Light/Dark Theme Toggle with UI Enhancements and Bug Fixes

2 participants