diff options
| author | Adam Soltys <[email protected]> | 2024-11-04 22:35:30 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-04 22:35:30 -0800 |
| commit | 0f097b189a8afdec09057d7babd6904e7497b534 (patch) | |
| tree | f99e8cb8be91dd8817c96140aa9bd0f2b082684a /src/routes/+layout.svelte | |
| parent | 520d5eb794bb0303b0d2b8b01f487d848a6567f4 (diff) | |
| download | coinos-ui-0f097b189a8afdec09057d7babd6904e7497b534.tar.gz coinos-ui-0f097b189a8afdec09057d7babd6904e7497b534.zip | |
dark styles
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index a07c42cb..78ce0fd9 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -4,7 +4,7 @@ import "../app.css"; import { loading, t } from "$lib/translations"; import { onMount } from "svelte"; - import { installPrompt } from "$lib/store"; + import { installPrompt, theme } from "$lib/store"; export let data; let { pathname } = data; @@ -44,7 +44,9 @@ </svelte:head> {#if !$loading} - <slot /> + <main data-theme={$theme}> + <slot /> + </main> {/if} <style global> |
