diff --git a/static/style.css b/static/style.css index 2ba09d7..a1ab463 100644 --- a/static/style.css +++ b/static/style.css @@ -1,3 +1,4 @@ +/* Default theme */ /* Node styling */ .node { max-width: min(650px, 100ex); @@ -88,3 +89,21 @@ article.post { max-width: min(650px, 100ex); margin: 0 auto; } + +/* Dark mode. */ +@media (prefers-color-scheme: dark) { + html { + background-color: #0f110e; + color: #fafafe; + } + h2 a { + color: #fafafe; + } + a { + color: #aaf; + } + h1,h2,h3,h4,h5,h6 { + margin-top: 0; + color: #adbac7; + } +}