From 05927b6db7e683eeb72594898c29811acfea3c74 Mon Sep 17 00:00:00 2001 From: Caesar Schinas Date: Sun, 28 Oct 2018 10:52:19 -0300 Subject: [PATCH] feat: dark mode support --- style.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/style.css b/style.css index cc523aa..e812218 100644 --- a/style.css +++ b/style.css @@ -1,5 +1,6 @@ html { background: #eee; + color: #444; font-family: "Gentium Basic", serif; min-height: 80%; display: flex; @@ -13,7 +14,6 @@ body { padding: 2em; font-size: 20px; line-height: 1.5em; - color: #444; } h1, p { margin: 0; @@ -65,3 +65,10 @@ img.profile { .contact a:hover { color: #08f; } + +@media (prefers-color-scheme: dark) { + html { + background: #333; + color: #aaa; + } +}