diff --git a/src/routes/tutorial/[slug]/Loading.svelte b/src/routes/tutorial/[slug]/Loading.svelte index a565b51e..6f148823 100644 --- a/src/routes/tutorial/[slug]/Loading.svelte +++ b/src/routes/tutorial/[slug]/Loading.svelte @@ -191,11 +191,9 @@ height: 10rem; } - @media (prefers-color-scheme: dark) { - .loading { - --faded: #444; - --progress: #555; - --cutout: var(--sk-back-2); - } + :global(.dark) .loading { + --faded: #444; + --progress: #555; + --cutout: var(--sk-back-2); }