aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+layout.server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-16 21:19:34 -0800
committerAdam Soltys <[email protected]>2024-11-16 21:19:34 -0800
commita2a574549a10ba405e5226852cd640ab8ed78e7f (patch)
tree89dbc4e3f01be23883fb542df18b275d3454db33 /src/routes/+layout.server.ts
parent2cec9643e2e00b0dae56051b9e3018f3b939b204 (diff)
downloadcoinos-ui-a2a574549a10ba405e5226852cd640ab8ed78e7f.tar.gz
coinos-ui-a2a574549a10ba405e5226852cd640ab8ed78e7f.zip
get system theme
Diffstat (limited to 'src/routes/+layout.server.ts')
-rw-r--r--src/routes/+layout.server.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts
index 7fa95931..584e836c 100644
--- a/src/routes/+layout.server.ts
+++ b/src/routes/+layout.server.ts
@@ -37,6 +37,7 @@ export const load = async ({ cookies, request, url }) => {
}
await loadTranslations(locale, pathname); // keep this just before the `return`
+
const theme = cookies.get("theme") || "light";
return {