Fix/adding dark light mode functionality #1167
Open
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
Adding dark-light mode functionality to the application
Related Issues
Fixes #1165
##Detailed Description
This PR introduces dark-light mode functionality to the application. The key changes include:
#Theme Context: Created a ThemeContext to manage the current theme state (light or dark) and provide a method to toggle
between themes.
#Theme Provider: Wrapped the application with a ThemeProvider to ensure the theme state is accessible throughout the app.
#Theme Toggle Component: Added a ThemeToggle component that allows users to switch between light and dark modes.
#Styling Adjustments: Updated CSS to support both light and dark themes, ensuring a consistent and visually appealing user experience.
##Changes
#ThemeContext.jsx:
Created a context to manage theme state.
Added a toggleTheme function to switch between light and dark modes.
Stored the current theme in localStorage.
#ThemeProvider.jsx:
Wrapped the application with ThemeProvider to provide theme context to all components.
#ThemeToggle.jsx:
Added a toggle switch to allow users to change themes.
Integrated the toggle with the ThemeContext.
#CSS Updates:
Updated styles to support both themes.
Ensured all components adapt to the selected theme.