diff options
Diffstat (limited to 'examples/docs/src/components/HeadCommon.astro')
-rw-r--r-- | examples/docs/src/components/HeadCommon.astro | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/docs/src/components/HeadCommon.astro b/examples/docs/src/components/HeadCommon.astro index bc3a3955a..275aa315a 100644 --- a/examples/docs/src/components/HeadCommon.astro +++ b/examples/docs/src/components/HeadCommon.astro @@ -1,6 +1,6 @@ --- -import "../styles/theme.css"; -import "../styles/index.css"; +import '../styles/theme.css'; +import '../styles/index.css'; --- <!-- Global Metadata --> @@ -28,11 +28,11 @@ import "../styles/index.css"; <!-- This is intentionally inlined to avoid FOUC --> <script is:inline> const root = document.documentElement; - const theme = localStorage.getItem("theme"); - if (theme === "dark" || (!theme && window.matchMedia("(prefers-color-scheme: dark)").matches)) { - root.classList.add("theme-dark"); + const theme = localStorage.getItem('theme'); + if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) { + root.classList.add('theme-dark'); } else { - root.classList.remove("theme-dark"); + root.classList.remove('theme-dark'); } </script> |