From ad49793bc85271f37ac12df3de14bf87c4a28520 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 6 Jan 2023 14:07:12 -0700 Subject: [PATCH] Add dark mode (fixes #46) --- static/dark.css | 18 ++++++++++++++++++ static/index.html | 1 + 2 files changed, 19 insertions(+) create mode 100644 static/dark.css diff --git a/static/dark.css b/static/dark.css new file mode 100644 index 0000000..21c92fc --- /dev/null +++ b/static/dark.css @@ -0,0 +1,18 @@ +@media (prefers-color-scheme: dark) { + html { + background-color: black; + color: white; + } + + .box { + color: #eee; /* Make this darker to make the on-screen lighter. I don't know why. */ + } + + .button.is-primary { + background-color: #096; + } + + input[type=range] { + accent-color: #096; + } +} \ No newline at end of file diff --git a/static/index.html b/static/index.html index 3691c00..a7d987f 100644 --- a/static/index.html +++ b/static/index.html @@ -24,6 +24,7 @@ +