From 0b609598f05359002f8f706283a69b1bd115c315 Mon Sep 17 00:00:00 2001 From: "johannes.vos" Date: Fri, 15 May 2026 10:09:56 +0200 Subject: [PATCH 1/7] style: add dark mode CSS varivale --- src/styles/variables/colors.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/styles/variables/colors.css b/src/styles/variables/colors.css index 6f1e1aa..48dc034 100644 --- a/src/styles/variables/colors.css +++ b/src/styles/variables/colors.css @@ -59,4 +59,19 @@ --dark-bg: var(--black-l-2); --light-bg: oklch(1 0 0); +} +.dark { + color-scheme: dark; + background-color: var(--dark-bg); + color: var(--white-d-1); + + --light: var(--black-l-8); + --light-d-1: var(--black-l-7); + --light-d-2: var(--black-l-6); + --light-d-3: var(--black-l-5); + --light-d-4: var(--black-l-4); + --light-d-5: var(--black-l-3); + --light-d-6: var(--black-l-2); + --light-d-7: var(--black-l-1); + --light-d-8: var(--black); } \ No newline at end of file -- 2.39.5 From a0eaf36db39049b817775d2ee1ccf4494e71c5d0 Mon Sep 17 00:00:00 2001 From: "johannes.vos" Date: Fri, 15 May 2026 10:12:23 +0200 Subject: [PATCH 2/7] add isDark state in App.vue --- src/App.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8cbcbe8..f1f07cb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,16 +17,21 @@ limitations under the License. \ No newline at end of file -- 2.39.5 From 67adb1793664975cfd80de50b51bfe2bd94007fa Mon Sep 17 00:00:00 2001 From: "johannes.vos" Date: Fri, 15 May 2026 10:19:44 +0200 Subject: [PATCH 6/7] feat: persist dark mode preference in localStorage --- src/App.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index f1f07cb..daa0c52 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,9 +17,11 @@ limitations under the License.