Skip to content

[FEATURE] Add dark mode toggle #339

Open

Description

@sahityasingh08

Feature Description

Add a theme switcher button in the navbar that allows users to manually toggle between light and dark themes, independent of their system preferences.

Problem It Solves

The CSS currently includes dark mode media queries that only respond to system preferences. Users have no manual control to choose their preferred theme, limiting accessibility and user choice. Students studying at night may prefer dark mode regardless of system settings, while others may prefer light mode during the day.

Proposed Solution

  • Create a ThemeToggle component with sun/moon icons
  • Add theme state management using localStorage for persistence
  • Integrate ThemeToggle in app/components/navbar.tsx
  • Update CSS to respect both system preferences and manual user selection
  • Add smooth transitions between theme changes
  • Ensure all components and pages properly support both themes
  • Consider adding a "system default" option

Additional Context

The dark mode CSS already exists in globals.css (lines 19-24), so this primarily requires adding the UI control and state management. The current implementation uses CSS variables for theming, making it straightforward to implement manual theme switching.

Activity

  1. added
    enhancement
    on Jul 4, 2026
  2. mayannkkk19 commented on Jul 5, 2026

    @mayannkkk19

    Hey @sahitya0xsingh , i would like to work upon this issue under GSSoC'26.
    Could you please assign this issue to me?

  3. ankurkrgupta22122006-oss commented on Jul 14, 2026

    @ankurkrgupta22122006-oss

    please assign this issue to me

  4. mahek-builds commented on Jul 26, 2026

    @mahek-builds

    Hey @sahitya0xsingh , i would like to work upon this issue under GSSoC'26.
    Could you please assign this issue to me?
    /assign

  5. saniya-s4 commented on Jul 31, 2026

    @saniya-s4

    Hi @sahitya0xsingh ,

    I have reviewed the issue and understood the proposed feature. I would like to work on this issue under GSSoC 2026.

    Could you please assign it to me if it's available?

    Thank you!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions