Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/adding dark light mode functionality #1167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dakshmehta007
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is there an option for Dark/Light Mode?
1 participant