DevPath icon indicating copy to clipboard operation
DevPath copied to clipboard

dark mode toggle

Open Kashish-1105 opened this issue 6 months ago • 11 comments

Title: [Feature]: Add Dark Mode Toggle with Theme Persistence

What problem does this solve? Currently, the application only supports a single theme. Users who prefer working in low-light environments may experience eye strain during extended usage. A dark mode option would improve accessibility, user comfort, and overall user experience.

Proposed Solution Implement a dark mode toggle that allows users to switch between Light Mode and Dark Mode.

Features:

  • Add a theme toggle button in the navbar/header.
  • Support both Light and Dark themes across the application.
  • Persist the user's preference using localStorage.
  • Automatically detect and apply the system theme on first visit.
  • Ensure smooth theme transition without layout shifts.

UI Expectations

  • Clean toggle switch or moon/sun icon.
  • Consistent styling across all pages and components.
  • Proper contrast ratios for readability.
  • Responsive behavior on mobile and desktop devices.

Benefits

  • Improved accessibility and usability.
  • Better experience for users working at night.
  • Modern and professional interface.
  • User preference persistence across sessions.

Acceptance Criteria

  • Users can switch between Light and Dark themes.
  • Theme preference is saved and restored on refresh.
  • All major UI components support both themes.
  • No visual inconsistencies or unreadable text.
  • Mobile and desktop compatibility maintained.

Which part of the app does this affect?

  • Navbar/Header
  • Global Layout
  • All UI Components
  • Theme Management

Before Submitting

  • I searched existing issues and did not find a dedicated dark mode implementation request.
  • This feature would improve accessibility and user experience for all users.

Kashish-1105 avatar May 30 '26 04:05 Kashish-1105

Thank you for opening your first issue in DevPath.

Please make sure to:

  • Read CONTRIBUTING.md
  • Wait for assignment before starting work
  • Follow repository guidelines carefully

Happy contributing.

github-actions[bot] avatar May 30 '26 04:05 github-actions[bot]

Hi @komalharshita, I am a GSSoC 2026 contributor and would love to work on this issue. I have prior experience implementing dark mode using CSS variables - I recently fixed a dark mode bug in the aliviahossain/Disease-prediction project (PR #297). I can implement the toggle button, CSS variables for theming, localStorage persistence, and system theme detection. Please assign this to me!

paramramit305-a11y avatar May 30 '26 05:05 paramramit305-a11y

Hi @komalharshita , I am corrently participating in GSSoC 2026 and would love to work on this issue Currently, the application only supports a single light theme. Users who prefer working in low-light environments may experience eye strain during extended usage. A dark mode option would significantly improve accessibility, user comfort, and the overall modern feel of the application.

-The application is locked into a light theme across all pages. -There is no UI toggle available for users to change the appearance. -The application ignores the user's system-level dark mode preferences, which can cause visual discomfort in low-light settings.

Expected Behavior -A toggle switch (e.g., sun/moon icon) should be available in the navbar/header to switch between Light and Dark themes. -The user's theme preference should be saved using localStorage and persist across page reloads and future sessions. -The application should automatically detect and apply the system's preferred theme (window.matchMedia) on the user's first visit. -All major UI components must support both themes with proper contrast ratios for readability, without causing visual layout shifts.

Proposed Solution -Implement CSS variables (custom properties) in the static/ CSS files to easily switch background and text colors. -Write a vanilla JavaScript function to handle localStorage, detect system theme preferences, and toggle a data-theme="dark" attribute on the document root.

I have a strong grasp of HTML/CSS styling and Vanilla JavaScript state management, and I can deliver a clean, persistent dark mode fix for this quickly. Could you please assign this issue to me for GSSoC 2026?

shrey363 avatar May 30 '26 06:05 shrey363

hey @komalharshita i would like to work on this issue as gssoc contributor

AQUA1310 avatar May 30 '26 16:05 AQUA1310

Hi 👋

I would like to work on this issue under GSSoC'26.

I have previously contributed to open-source projects and have 2 PRs successfully merged. I have gone through the issue requirements and would be happy to work on the implementation while following the project's guidelines and maintaining code quality.

Please assign this issue to me if it is available.

Thank you!

sakshiwankhade026-coder avatar May 30 '26 16:05 sakshiwankhade026-coder

Hi @komalharshita I'm a GSSoC 2026 contributor interested in working on this issue. If it's still available and not already assigned, could you please assign it to me? Thank you!

/assign

aasheeshhh avatar May 31 '26 14:05 aasheeshhh

Hi @komalharshita I am a GSSoC'26 contributor and is interested in resolving this issue. Please assign this issue to me !!

Ankitjsr-dev05 avatar Jun 04 '26 13:06 Ankitjsr-dev05

/assign under GSSoC26

Y-o-ULA avatar Jun 11 '26 04:06 Y-o-ULA

Hi @Kashish-1105 I would like to work on this issue under GSSoC 2026. Could you please assign it to me?

VarankaTyagi avatar Jun 21 '26 08:06 VarankaTyagi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Nov 21 '26 08:11 github-actions[bot]

This issue was closed because it has been inactive for an extended period. If this issue is still relevant, feel free to reopen it or create a new one.

github-actions[bot] avatar Nov 28 '26 08:11 github-actions[bot]