From e9f062e9138e677f77804f4be7882fe7abfd37ee Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Thu, 13 Oct 2022 20:29:50 +0200
Subject: Fix colormode on chrome

---
 layouts/default.vue | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'layouts/default.vue')

diff --git a/layouts/default.vue b/layouts/default.vue
index 35c816b..6a2f26f 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -1,5 +1,11 @@
 <template>
-  <div :class="$colorMode.preference == 'light' ? 'light' : 'dark'">
+  <div
+    :class="
+      $colorMode.preference == 'light' || $colorMode.preference == 'system'
+        ? 'light'
+        : 'dark'
+    "
+  >
     <VHeader />
     <main>
       <Nuxt />
-- 
cgit v1.2.3-18-g5258

