From e1e462b7ca402d76fac1508627697facc2e8077a Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 4 Jul 2024 12:06:32 +0200 Subject: [PATCH] feat(css): :wheelchair: better accessibility with high contrast light mode --- src/stylesheets/base.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/stylesheets/base.css b/src/stylesheets/base.css index c5423f0..3e456da 100644 --- a/src/stylesheets/base.css +++ b/src/stylesheets/base.css @@ -58,6 +58,17 @@ scroll-behavior: smooth; } +@media (prefers-contrast: more) { + :root { + --_font-color: black; + --_accent-color: var(--lime-12); + --_translucent: var(--sand-2); + --_background-color: white; + --_background-image: ''; + } +} + + @media (prefers-color-scheme: dark) { :root:has(body:not([data-theme='light'])) { --_font-color: var(--choco-1);