From b3653c0a6d448d215c96511ae88c5f3bc741e52f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 16 Nov 2024 21:19:34 -0800 Subject: get system theme --- src/routes/+layout.server.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/routes/+layout.server.ts') 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 { -- cgit v1.2.3