Skip to content

Conversation

@deepanshu-prajapati01
Copy link
Contributor

Hi team 👋

This PR addresses Issue #17 by introducing a fully functional Dark/Light Theme Toggle that enhances user accessibility and visual experience across the app.


✅ What’s Implemented:


🌗 Dark/Light Mode Toggle Functionality

  • Added a toggle button in the Navbar to switch between light and dark modes.
  • Developed a custom useTheme hook to encapsulate the theme toggling logic, improving code separation and reusability.
  • The theme preference is stored in localStorage to ensure persistence across sessions.
  • Theme switching is powered by Tailwind's dark: class utility, ensuring efficient styling with minimal overhead.
  • Implemented smooth transitions between theme changes for better UX.

🎯 Pages Updated for Theme Compatibility:

  • Home Page
  • Ideas Page
  • About Page

All three have been updated to fully support theme switching with proper text, background, and interactive element contrast.

📸 Screenshots


Home Page
localhost_3000_


Ideas Page
localhost_3000_ (2)


About Page
localhost_3000_ (1)


🏷 Labels:

  • gssoc2025
  • level 2
  • feature
  • ui

Let me know if you'd like refinements in theme logic or further improvements across more pages.
Thanks! 🙌

@vinit105 vinit105 merged commit 72b09b6 into vinit105:main Aug 5, 2025
1 check failed
@deepanshu-prajapati01 deepanshu-prajapati01 deleted the feat/added-light-and-dark-theme branch August 5, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants