|
Hi again, |
Answered by
garronej
Feb 14, 2023
Replies: 1 comment 1 reply
|
Unless you planning to use https://github.com/InseeFrLab/onyxia-ui it's not rellevent to try to reverse engeneer how the dark mode works. You'll be beter off reading this: https://mui.com/material-ui/customization/dark-mode/ https://github.com/garronej/powerhooks/blob/main/src/test/spa/src/TestUseGlobalState/useIsDarkModeEnabled.tsx can be used to switch the global state and persist across reloads. |
1 reply
Answer selected by
garronej
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unless you planning to use https://github.com/InseeFrLab/onyxia-ui it's not rellevent to try to reverse engeneer how the dark mode works.
You'll be beter off reading this: https://mui.com/material-ui/customization/dark-mode/
https://github.com/garronej/powerhooks/blob/main/src/test/spa/src/TestUseGlobalState/useIsDarkModeEnabled.tsx can be used to switch the global state and persist across reloads.