summaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'style.css')
-rw-r--r--style.css12
1 files changed, 12 insertions, 0 deletions
diff --git a/style.css b/style.css
index fad5100..9ccd723 100644
--- a/style.css
+++ b/style.css
@@ -42,6 +42,18 @@
--contrast-color: hsl(var(--contrast-hue), 100%, var(--contrast-lightness));
}
+@media (prefers-color-scheme: dark) {
+ :root {
+ --dark-theme-check: 1;
+ }
+}
+
+@media (prefers-color-scheme: light) {
+ :root {
+ --dark-theme-check: 0;
+ }
+}
+
::selection {
background-color: var(--contrast-color);
color: hsl(0, 0%, var(--background-lightness));