From 42b20ee768efb31e536d81c53093ad101314a5a2 Mon Sep 17 00:00:00 2001 From: "i.seliverstov" Date: Tue, 10 Nov 2026 10:52:02 +0500 Subject: [PATCH] style: soften dark theme using DeepSeek Harness palette --- .../ui/roundCheckbox/RoundCheckbox.vue | 18 +++++- .../src/features/calendar/ui/HourGrid.vue | 2 +- alfy-bot-frontend/src/style.css | 64 ++++++++++--------- 3 files changed, 49 insertions(+), 35 deletions(-) diff --git a/alfy-bot-frontend/src/components/ui/roundCheckbox/RoundCheckbox.vue b/alfy-bot-frontend/src/components/ui/roundCheckbox/RoundCheckbox.vue index 784ff4b..3d33e13 100644 --- a/alfy-bot-frontend/src/components/ui/roundCheckbox/RoundCheckbox.vue +++ b/alfy-bot-frontend/src/components/ui/roundCheckbox/RoundCheckbox.vue @@ -12,17 +12,17 @@ :class="[ 'w-5 h-5 rounded-full border-2 flex items-center justify-center transition-all duration-200', modelValue - ? 'bg-blue-500 border-blue-500' + ? 'bg-blue-500 border-blue-500 dark:bg-primary dark:border-primary' : overdue ? 'border-red-500' - : 'border-gray-300', + : 'border-gray-300 dark:border-muted-foreground', disabled && !overdue && 'opacity-50' ]" > @@ -104,4 +104,16 @@ const handleChange = (event: Event) => { font-size: 0.875rem; color: #374151; } + +.dark .round-checkbox__label { + color: var(--foreground); +} + +.dark .round-checkbox__input:disabled ~ .round-checkbox__label { + color: var(--muted-foreground); +} + +.dark .round-checkbox:hover .round-checkbox__input:not(:disabled):not(:checked) ~ .round-checkbox__icon div { + border-color: var(--primary); +} diff --git a/alfy-bot-frontend/src/features/calendar/ui/HourGrid.vue b/alfy-bot-frontend/src/features/calendar/ui/HourGrid.vue index dd95444..8a8aaa1 100644 --- a/alfy-bot-frontend/src/features/calendar/ui/HourGrid.vue +++ b/alfy-bot-frontend/src/features/calendar/ui/HourGrid.vue @@ -15,7 +15,7 @@ class="absolute right-0 z-30 pointer-events-none flex items-center -translate-y-1/2" :style="{ top: `${currentTimeTop}px` }" > - {{ currentTimeLabel }} + {{ currentTimeLabel }}
diff --git a/alfy-bot-frontend/src/style.css b/alfy-bot-frontend/src/style.css index c19197d..382e139 100644 --- a/alfy-bot-frontend/src/style.css +++ b/alfy-bot-frontend/src/style.css @@ -4,6 +4,7 @@ @custom-variant dark (&:is(.dark *)); :root { + color-scheme: light; --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); --card: oklch(1 0 0); @@ -39,37 +40,38 @@ } .dark { - --background: oklch(0.145 0 0); - --foreground: oklch(0.985 0 0); - --card: oklch(0.205 0 0); - --card-foreground: oklch(0.87 0 0); - --popover: oklch(0.205 0 0); - --popover-foreground: oklch(0.985 0 0); - --primary: oklch(0.588 0.243 264.376); - --primary-foreground: oklch(0.985 0 0); - --secondary: oklch(0.269 0.01 264); - --secondary-foreground: oklch(0.985 0 0); - --muted: oklch(0.269 0.01 264); - --muted-foreground: oklch(0.708 0 0); - --accent: oklch(0.269 0.01 264); - --accent-foreground: oklch(0.985 0 0); - --destructive: oklch(0.65 0.245 27.325); - --border: oklch(1 0 0 / 10%); - --input: oklch(1 0 0 / 10%); - --ring: oklch(0.588 0.243 264.376); - --chart-1: oklch(0.588 0.243 264.376); - --chart-2: oklch(0.65 0.2 264); - --chart-3: oklch(0.75 0.15 264); - --chart-4: oklch(0.6 0.18 240); - --chart-5: oklch(0.7 0.12 280); - --sidebar: oklch(0.205 0 0); - --sidebar-foreground: oklch(0.985 0 0); - --sidebar-primary: oklch(0.588 0.243 264.376); - --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.269 0.01 264); - --sidebar-accent-foreground: oklch(0.985 0 0); - --sidebar-border: oklch(1 0 0 / 10%); - --sidebar-ring: oklch(0.588 0.243 264.376); + color-scheme: dark; + --background: #151517; + --foreground: #ebeef2; + --card: #232324; + --card-foreground: #cfd3d6; + --popover: #2c2c2e; + --popover-foreground: #ebeef2; + --primary: #7aaaff; + --primary-foreground: #0f1115; + --secondary: #2c2c2e; + --secondary-foreground: #cfd3d6; + --muted: #232324; + --muted-foreground: #adb2b8; + --accent: #353638; + --accent-foreground: #ebeef2; + --destructive: #f25a5a; + --border: rgb(255 255 255 / 12%); + --input: rgb(255 255 255 / 16%); + --ring: var(--primary); + --chart-1: #7aaaff; + --chart-2: #4ed17e; + --chart-3: #a78bfa; + --chart-4: #f7ad31; + --chart-5: #f25a5a; + --sidebar: #1b1b1c; + --sidebar-foreground: #cfd3d6; + --sidebar-primary: var(--primary); + --sidebar-primary-foreground: var(--primary-foreground); + --sidebar-accent: #353638; + --sidebar-accent-foreground: #ebeef2; + --sidebar-border: rgb(255 255 255 / 6%); + --sidebar-ring: var(--ring); } @theme inline {