aboutsummaryrefslogtreecommitdiff
path: root/blog
diff options
context:
space:
mode:
Diffstat (limited to 'blog')
-rw-r--r--blog/blog/html.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/blog/blog/html.py b/blog/blog/html.py
index a2c5eee1..1cda61c1 100644
--- a/blog/blog/html.py
+++ b/blog/blog/html.py
@@ -40,8 +40,15 @@ def html_template(*content, page_title=None, path, full):
padding-left: 2em;
padding-right: 2em;
background-color: #fffffa;
+ color: #000000;
font-family: system-ui;
}
+ @media (prefers-color-scheme: dark) {
+ body {
+ background-color: #000000;
+ color: #fffffa;
+ }
+ }
p, blockquote, li {
/* from Mozilla reader mode */
line-height: 1.6em;