summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/default.vue8
1 files changed, 7 insertions, 1 deletions
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 />