summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-13 20:29:50 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-10-13 20:29:50 +0200
commite9f062e9138e677f77804f4be7882fe7abfd37ee (patch)
treedf5fe44519a11a3ce6295acbfbbeb74d261da2dc
parent565dbed5b61b0d2113bc072a1d5f3be68dc5c5ea (diff)
Fix colormode on chrome
-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 />