Skip to content

feat: implement comprehensive dark/light mode toggle across the platform (#16)#32

Open
nitishchaubeyy wants to merge 3 commits into
Mehren7:mainfrom
nitishchaubeyy:feat/dark-mode-toggle
Open

feat: implement comprehensive dark/light mode toggle across the platform (#16)#32
nitishchaubeyy wants to merge 3 commits into
Mehren7:mainfrom
nitishchaubeyy:feat/dark-mode-toggle

Conversation

@nitishchaubeyy

Copy link
Copy Markdown
Contributor

Description 🌓

This PR resolves #16 by fully integrating a robust Dark/Light mode theme system into the Parampara platform.

Rather than just adding a toggle button, this implementation ensures a seamless, full-site dark mode experience that transitions smoothly without flashes of incorrect themes.

Scope of Work & Enhancements 💡

  • Theme Provider Integration: Wrapped the application in next-themes to handle system preferences and client-side theme switching without hydration mismatches.
  • Tailwind CSS Configuration: Updated tailwind.config.ts to use the class strategy for precise control over dark mode tokens.
  • Comprehensive UI Update: Audited and updated hardcoded light classes across the entire application. Added respective dark: Tailwind variants to:
    • app/layout.tsx and app/globals.css (Global base styling)
    • components/Navbar.tsx (Including mobile hamburger menu)
    • app/page.tsx (Hero, Featured Cards, Info sections)
    • components/InstructorCard.tsx (Dynamic cards)
    • app/instructor/[id]/page.tsx (Dynamic profile pages)
    • app/about/page.tsx (Static info pages)
  • Smooth Transitions: Added transition-colors duration-300 to all major components so the theme switches elegantly without jarring instant color changes.

Testing ✅

  • Verified that clicking the Sun/Moon toggle seamlessly switches the theme.
  • Verified that system default preference is respected.
  • Tested across all main pages (Home, About, Instructors, Individual Instructor Profile).
  • Verified no layout shift or React hydration errors occur on load.

Closes #16

@vercel

vercel Bot commented May 1, 2026

Copy link
Copy Markdown

@nitishchaubeyy is attempting to deploy a commit to the Mehren's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented May 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
parampara Error Error May 19, 2026 2:49pm

@Mehren7 Mehren7 added enhancement New feature or request NSoC'26 NSoc'26 program tracking Level2 INTERMEDITE LEVEL labels May 6, 2026
@nitishchaubeyy

Copy link
Copy Markdown
Contributor Author

Hey @Mehren7 - following up on this PR. Let me know if I should make any changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Level2 INTERMEDITE LEVEL NSoC'26 NSoc'26 program tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add Dark/Light Mode Theme Toggle

2 participants