[STYLE] improve code block
alexanderniebuhr opened this issue · comments
Alexander Niebuhr commented
Anthony Fu commented
Use this to check the theme and rewrite <html class="dark">
when serving the HTML
Alexander Niebuhr commented
It actually does not work that way.. if i set it, it is set in HTML, but on load it is switched back to light mode. Is it because the vue darkMode button switch overrides it on load?
Anthony Fu commented
Try injecting script
localStorage.setItem('vueuse-color-scheme', 'dark' | 'light')