Skip to content

Using Darkmode with Keycloakify #494

Answered by garronej
chmcquee asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chmcquee
Comment options

Answer selected by garronej
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants