diff options
| author | Adam Soltys <[email protected]> | 2024-11-03 20:48:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-03 20:48:42 -0800 |
| commit | 769f9b34781f010db426fef1af7d85e6fcb9a291 (patch) | |
| tree | 8cf18059bc730dc005a69ff66f96b53f80fa1f01 /src/routes/(static) | |
| parent | d792236a58a932181cbc2e13ba5c3609b91e0164 (diff) | |
| download | coinos-ui-769f9b34781f010db426fef1af7d85e6fcb9a291.tar.gz coinos-ui-769f9b34781f010db426fef1af7d85e6fcb9a291.zip | |
dark mode
Diffstat (limited to 'src/routes/(static)')
| -rw-r--r-- | src/routes/(static)/+layout.svelte | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/routes/(static)/+layout.svelte b/src/routes/(static)/+layout.svelte index 8b14fd38..f09852fb 100644 --- a/src/routes/(static)/+layout.svelte +++ b/src/routes/(static)/+layout.svelte @@ -1,6 +1,7 @@ <script> import { SvelteToast } from "@zerodevx/svelte-toast"; import Footer from "$comp/Footer.svelte"; + import { theme } from "$lib/store"; import LandingHeader from "$comp/LandingHeader.svelte"; export let data; @@ -9,7 +10,10 @@ <SvelteToast options={{ reversed: true, intro: { y: 192 } }} /> <LandingHeader {user} /> -<main class="container flex px-4 md:px-40 mx-auto min-h-[600px]"> +<main + class="container flex px-4 md:px-40 mx-auto min-h-[600px]" + data-theme={$theme} +> <slot /> </main> <Footer /> |
