mishig's picture
mishig HF staff
accept `/?__theme=dark`
f08464b
raw
history blame
280 Bytes
<script>
import "../app.css";
import { browser } from '$app/environment';
import { page } from '$app/stores';
$: if (browser && $page.url.searchParams.get('__theme') === 'dark') {
document.documentElement.classList.add('dark');
}
</script>
<slot></slot>
<style></style>