From 35db1d65f26a4a30510626364989de8963f16c78 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Sun, 31 May 2026 23:18:14 +0200 Subject: [PATCH] Add --invert CSS variable for the invertion (according to the color scheme) --- src/styles/variables/colors.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/styles/variables/colors.css b/src/styles/variables/colors.css index e79a738..cc2b21f 100644 --- a/src/styles/variables/colors.css +++ b/src/styles/variables/colors.css @@ -82,6 +82,8 @@ limitations under the License. --blue-box-shadow: oklch(0.52 0.15 268 / 0.25); --light-hover: var(--light-d-2); + + --invert: invert(0); } @media (prefers-color-scheme: dark) { @@ -114,6 +116,8 @@ limitations under the License. --gray-box-shadow: oklch(0.25 0.0001 271 / 0.7); --light-hover: var(--light-d-5); + + --invert: invert(1); } } @@ -146,4 +150,6 @@ limitations under the License. --gray-box-shadow: oklch(0.25 0.0001 271 / 0.7); --light-hover: var(--light-d-5); + + --invert: invert(1); } \ No newline at end of file