feature: add light mode toggle and global theme support#29
Open
aadya284 wants to merge 1 commit intobetterbugs:developfrom
Open
feature: add light mode toggle and global theme support#29aadya284 wants to merge 1 commit intobetterbugs:developfrom
aadya284 wants to merge 1 commit intobetterbugs:developfrom
Conversation
Collaborator
|
@aadya284 please raise pr against develop branch instead of main. |
Author
|
@rishima17 Thank you for pointing that out. I’ve updated the PR to target the develop branch. |
Author
|
@SyedFahad7 @rishima17 kindly review my pr and merge it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Description
This PR introduces a Light Mode toggle functionality to the application.
A theme toggle button (Sun/Moon icon) has been added to the navbar, allowing users to switch between Dark Mode (default) and Light Mode. The selected theme is persisted using local storage and applied globally via a theme context and class-based styling.
The implementation ensures:
Fixes #[ISSUENO]
Dependencies
No additional external dependencies were added.
The implementation uses:
themeContext)darkclass)Future Improvements
prefers-color-scheme).Mentions
@maintainers
(Replace with actual maintainer usernames if required)
Screenshots of relevant screens
Dark Mode (Default)
Add screenshot here

Light Mode
Add screenshot here
Developer's checklist
If changes are made in the code:
Give a summary of the change that you have made
Fixes #[ISSUENO]
Dependencies
Mention any dependencies/packages used
Future Improvements
Mention any improvements to be done in future related to any file/feature
Mentions
Mention and tag the people
Screenshots of relevant screens
Add screenshots of relevant screens
Developer's checklist
If changes are made in the code:
Note:
The only remaining visual inconsistency is the logo in Light Mode.
Since the current logo asset is a JPG with a dark background, it does not adapt well to the light theme.
If a light-mode compatible logo (transparent PNG/SVG or alternate variant) is provided, I would be happy to open a separate PR to improve this further.