Closed ghost closed 3 years ago
That's normal, the docs are static, I had to choose a theme by default. I don't think there is a way to handle the rendering without server-side logic, but I'm open to reasonable proposals (e.g. not something about including a service worker 😆 )
ooh I see what you mean now: the pages stays in dark mode. Yeah, the dark light mode is a WIP currently it only loads on the main page
I think I will focus on integrating dark mode directly into vitepress rather than hack further the layout to add the toggle
There's a toggle but it kinda in a strange place
It will be on the navbar
Is that helpful? https://vueuse.org/core/useDark/
Hi. I have bookmarked https://pinia.esm.dev/introduction.html and it's in dark mode by default. When I visit the main page from there (click logo) then it changes to light mode automatically.
The toggle to switch modes works right only for dark mode. Light mode is not saved properly I think.