-
Hi again, |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.