Skip to content

[FEATURE] Dark/Light Mode Toggle #26

@soumyadeep6845

Description

@soumyadeep6845

Feature Request: Dark Mode / Light Mode Toggle

📌 Description

Introduce a toggle switch in the frontend UI that allows users to seamlessly switch between dark mode and light mode, depending on their preference.

🎯 Motivation

  • Enhances user experience and accessibility
  • Reduces eye strain during night-time usage
  • Matches modern UX expectations for personalization

🖼 Design Proposal

  • Toggle can be placed in the navbar or settings dropdown
  • Icons like 🌞 / 🌙 can indicate modes for better intuitiveness
  • Can use localStorage or useContext to persist user preference

💡 Technical Suggestions

  • Leverage Tailwind CSS's built-in dark mode feature
    • Configure tailwind.config.js with:
      darkMode: 'class'
  • Use a theme context to manage and apply dark class to <html> or <body>
  • Store theme preference in localStorage to persist across sessions

📚 Reference in README

This aligns with the project's focus on a modern, responsive UI as highlighted in the README.md under:

✅ Responsive and modern UI using Tailwind CSS


✅ Acceptance Criteria

  • A toggle switch is present in the UI
  • Toggling changes theme across all pages/components
  • User preference is persisted (e.g., via localStorage)
  • UI is visually appealing in both themes
  • Follows accessibility and contrast best practices

🙌 Want to work on this?

  • Comment on this issue thread to get yourself assigned right away!
  • Fork this repository, and raise a PR with the necessary changes!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions