Referencing theme algorithm in other files
I'm trying to change the color of my logo depending on the selected theme algorithm. I want to check which theme algorithm is chosen inside my themedLayoutV2 swizzled title.tsx file so I can change my logo depending on the app mode.
4 Replies
Hi @jayp_digitalartist. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the refine documentation (https://refine.dev/docs) for more information on theming and customization.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------Overview | refine
What is refine?
<@718190521612501134> kapa.ai is still learning and improving, please let us how it did by reacting below
passive-yellow•17mo ago
Hi, when you use
create refine-app
, we provide ColorModeContext
provider
You get the selected algorithm like this
mode: "light" is equal to defaultAlgorithm
mode: "dark is equal to darkAlgorithm