Skip to content

Conversation

@distantanswer
Copy link
Owner

  • Toggle dark-mode class on html element
  • Added sun icon when in dark mode

Potential Improvements:

  • moving the mode's state into a more globally accessible location
  • Access html element in a more declarative way

@distantanswer
Copy link
Owner Author

Refactor to useContext, so that child components would be able to access the current 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.

3 participants