From f07fe00abd0b917d15c00dd11b86a16c5cdabd5b Mon Sep 17 00:00:00 2001 From: HenriDellal Date: Fri, 14 May 2021 22:18:16 +0000 Subject: [PATCH] Add dark theme for homepage (MR 5) Adds @media query to set dark theme for systems with dark theme preference --- src/homepage/head.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/homepage/head.html b/src/homepage/head.html index 67cfb05..2ea24a2 100644 --- a/src/homepage/head.html +++ b/src/homepage/head.html @@ -52,6 +52,23 @@ a { color: black; padding: 0px; } + +@media (prefers-color-scheme: dark) { + body { + color: #f0f0f0; + background-color: #222; + } + a { + background: #111; + color: #0b0; + } + .text a { + color: white; + } + h1, h2 { + color: unset; + } +}