cmc/cleberg.net

My personal web garden & blog.

clone: git clone https://gitbay.org/cmc/cleberg.net.git

76b3a3db90559ef252903b2c4fc6436e9cf932d6

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-03-13T23:22:11Z

add dark mode
 theme/static/styles.css | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/theme/static/styles.css b/theme/static/styles.css
index d7b08f1..348b9d7 100644
--- a/theme/static/styles.css
+++ b/theme/static/styles.css
@@ -1,4 +1,5 @@
 body { max-width: 800px; margin: 0 auto; }
+a, a:visited { color:blue; }
 nav ul { list-style: none; padding: 0; display: flex; flex-direction: row; }
 nav ul li { padding-right: 0.5rem;}
 img { max-width: 100%; }
@@ -11,3 +12,7 @@ pre, blockquote { margin: 1rem 0; padding: 0.5rem; background-color: lightgrey;
 pre { overflow: auto; white-space: pre; }
 blockquote p { margin: 0; }
 code { color: darkred; }
+@media (prefers-color-scheme: dark) {
+	body { background-color: #181a1b; color: #e8e6e3; }
+	a, a:visited { color: #66adff; }
+}