From 1daced1e18d1204efefeb66715685856fc71602f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Wed, 9 Sep 2026 22:21:28 +0300 Subject: [PATCH] theme: increase contrast of muted text, lighten red in dark mode - Light theme: darken gray-400/500/600 muted text one step - Dark theme: lighten slate-400/500 muted text one step - Dark theme: lighten red-500/600/700 text (was too dark on dark bg) SW cache v40. --- frontend/style.css | 32 ++++++++++++++++++++++++++++++++ frontend/sw.js | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/frontend/style.css b/frontend/style.css index ec12563..d64d4f6 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -1685,4 +1685,36 @@ video { .dark\:hover\:text-slate-300:hover:is(.dark *) { --tw-text-opacity: 1; color: rgb(203 213 225 / var(--tw-text-opacity, 1)); +} + +/* ===== Theme contrast adjustments ===== */ + +/* Light theme: darken softer (muted) text one step for higher contrast */ +.text-gray-400 { + color: rgb(107 114 128 / var(--tw-text-opacity, 1)); +} +.text-gray-500 { + color: rgb(75 85 99 / var(--tw-text-opacity, 1)); +} +.text-gray-600 { + color: rgb(55 65 81 / var(--tw-text-opacity, 1)); +} + +/* Dark theme: lighten softer (muted) text one step for higher contrast */ +.dark\:text-slate-500:is(.dark *) { + color: rgb(148 163 184 / var(--tw-text-opacity, 1)); +} +.dark\:text-slate-400:is(.dark *) { + color: rgb(203 213 225 / var(--tw-text-opacity, 1)); +} + +/* Dark theme: red text is too dark on dark backgrounds — lighten it */ +.dark :where(.text-red-500) { + color: rgb(248 113 113 / var(--tw-text-opacity, 1)); +} +.dark :where(.text-red-600) { + color: rgb(248 113 113 / var(--tw-text-opacity, 1)); +} +.dark :where(.text-red-700) { + color: rgb(239 68 68 / var(--tw-text-opacity, 1)); } \ No newline at end of file diff --git a/frontend/sw.js b/frontend/sw.js index 3e02fa9..0efcbc9 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -1,4 +1,4 @@ -const CACHE = 'otaman-v39'; +const CACHE = 'otaman-v40'; const URLS = [ 'index.html', 'help.html',