Open ladydarkja opened 2 months ago
I added a dark-mode to our capstone-project and I used ThemeProvider in app.js and lighttheme and darktheme in styles.js as well. And I just createt a setter-function with localStorageState in app.js and just passed the state to the button as prop. I didn't need a new component. But I think your way will also work.
Value proposition
As a user I want to have the possibility to switch between light and dark mode In order to use my preferred colorscheme
Description
Acceptance criteria
Tasks
ThemeProvider
Theme.js