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

Dark theme toggle #10721

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

Conversation

weuceda14
Copy link

Description

Added a button that allows the user to switch between dark mode and light mode.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • [x ] Feature

Issue

What is the current behavior?

Dark theme files are present in the codebase but don't have the option to toggle between them both

What is the new behavior?

New button that when clicked changes the themeing of the project.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

Added a use effect that reloads the Theme prop and rebuilds the css include
Added button with styling to toggle between dark theme mode and light theme mode. Controls the theme prop inside of theme.jsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants