From 3255476fc1319e0ff2c1ea67ca1f14b243f36f6b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 23 Sep 2026 22:54:19 +0200 Subject: [PATCH] Support dark mode color-scheme lets the browser pick background and text colours from the user's preference. The light grey text shadow behind chords looks wrong on a dark background, and the bold red is legible without it. --- chordpro.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chordpro.css b/chordpro.css index 20bc7f9..020cbe5 100644 --- a/chordpro.css +++ b/chordpro.css @@ -1,3 +1,7 @@ +:root { + color-scheme: light dark; +} + body { font-family: sans-serif; } @@ -34,6 +38,5 @@ h2, .comment { padding-right: 0.3ex; color: #F33; font-weight: bold; - text-shadow: #CCC 1px 1px; } } -- 2.47.3