From 2d4eb2561fa65d5e7bd83caa9b975791f0f6664e Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 21 Apr 2024 21:02:12 +0200 Subject: unicode: Dark mode --- modules/unicode/index.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/modules/unicode/index.html b/modules/unicode/index.html index 781090c..407d6b5 100644 --- a/modules/unicode/index.html +++ b/modules/unicode/index.html @@ -39,6 +39,26 @@ code { padding: 3px; border-radius: 5px; } + +@media (prefers-color-scheme: dark) { + body { + color: #eee; + background-color: #181818; + } + .table > div:nth-child(even) { + background-color: #1b1b1b; + } + .table > div:nth-child(odd) { + background-color: #262626; + } + input[type="text"] { + background-color: #444; + color: #fff; + } + code { + background-color: #252525; + } +}