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
commitb3653c0a6d448d215c96511ae88c5f3bc741e52f (patch)
tree89dbc4e3f01be23883fb542df18b275d3454db33 /src/routes/+layout.server.ts
parent1b6ac8df832ad6f4b469b2197c6b529f8d9d757f (diff)
downloadcoinos-ui-b3653c0a6d448d215c96511ae88c5f3bc741e52f.tar.gz
coinos-ui-b3653c0a6d448d215c96511ae88c5f3bc741e52f.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 {