Eliott C commited on
🩹 No flicker for dark theme (#111)
Browse files4 unmodified lines567891011121314151617181920214 unmodified lines<link rel="icon" href="%sveltekit.assets%/favicon.png" /><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /><title>HuggingChat</title>%sveltekit.head%</head><body data-sveltekit-preload-data="hover" class="dark:bg-gray-900 h-full"><div class="contents h-full">%sveltekit.body%</div></body><script>if (localStorage.theme === "dark" ||(!("theme" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches)) {document.documentElement.classList.add("dark");}</script></html>4 unmodified lines567891011121314151617181920214 unmodified lines<link rel="icon" href="%sveltekit.assets%/favicon.png" /><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /><title>HuggingChat</title><script>if (localStorage.theme === "dark" ||(!("theme" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches)) {document.documentElement.classList.add("dark");}</script>%sveltekit.head%</head><body data-sveltekit-preload-data="hover" class="dark:bg-gray-900 h-full"><div class="contents h-full">%sveltekit.body%</div></body></html>
src/app.html+8-8