From b96d21c6c6059ebc5fcc8bfa21c5af20ad27078e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 24 Mar 2023 13:07:23 -0400 Subject: [PATCH] Add an automatic light theme --- theme-fred/static/css/main.css | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/theme-fred/static/css/main.css b/theme-fred/static/css/main.css index a77ec8c..3dc920b 100644 --- a/theme-fred/static/css/main.css +++ b/theme-fred/static/css/main.css @@ -182,3 +182,54 @@ footer p { font-size: 75%; color: #999; } + +@media (prefers-color-scheme: light) { + body { + background: #eee; + color: #1e1e1e; + } + + h2 { + color: #222; + } + + h3, + h4 { + color: #333; + } + + time { + color: #444; + } + + #site-title, + #site-title:visited { + color: #222; + } + + #site-title:hover { + color: #444; + } + + #sitesubtitle { + color: #666; + } + + blockquote { + border-left: 1px solid #555; + } + + a:hover, + a:visited:hover{ + color: hsl(300, 33%, 40%); + } + + a:visited { + color: #6f6144; + } + + footer { + background: #e2e2e2; + color: #222; + } +}