From: Rito Rhymes <rito@ritovision.com>
To: meta@public-inbox.org
Cc: e@80x24.org, Rito Rhymes <rito@ritovision.com>
Subject: [PATCH] css: adjust darkmode input bg colors for improved visibility
Date: Thu, 2 Apr 2026 17:22:33 -0400 [thread overview]
Message-ID: <20260402212233.22173-1-rito@ritovision.com> (raw)
In-Reply-To: <20260402022848.46293-1-rito@ritovision.com>
In the dark theme, form controls using browser defaults often lack
contrast with the page background, making them difficult to
identify as interactive fields. Give inputs and textareas a
distinct background so they are visually identifiable from
surrounding content without being distracting.
#033 is the best balance for dark mode. The contrast against the
black BG is visible and clear across low-to-high brightness
settings, but it's also not intense nor does it interfere with
text readability. It blends in enough while standing out enough.
#003 as suggested in
<https://public-inbox.org/meta/20260402002337.M31502@dcvr/>
is fine at full screen brightness but doesn't have enough contrast
to improve visibility on screens set at normal-to-low brightness.
Signed-off-by: Rito Rhymes <rito@ritovision.com>
---
contrib/css/216dark.css | 2 ++
lib/PublicInbox/UserContent.pm | 2 ++
2 files changed, 4 insertions(+)
diff --git a/contrib/css/216dark.css b/contrib/css/216dark.css
index 1277a49a..2aa5defe 100644
--- a/contrib/css/216dark.css
+++ b/contrib/css/216dark.css
@@ -7,6 +7,8 @@
*/
* { font-size: 100%; font-family: monospace; background:#000; color:#ccc }
pre { white-space: pre-wrap }
+input,
+textarea { background:#033 }
/*
* Underlined links add visual noise which make them hard-to-read.
diff --git a/lib/PublicInbox/UserContent.pm b/lib/PublicInbox/UserContent.pm
index 1ad8eba7..0e88a552 100644
--- a/lib/PublicInbox/UserContent.pm
+++ b/lib/PublicInbox/UserContent.pm
@@ -22,6 +22,8 @@ sub CSS () {
background:#000 !important;
color:#ccc !important }
pre { white-space: pre-wrap !important }
+ input,
+ textarea { background:#033 !important }
/*
* Underlined links add visual noise which make them hard-to-read.
--
2.51.0
next prev parent reply other threads:[~2026-04-02 21:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-02 2:28 [PATCH] css: adjust bg colors for improved visibility and page balance Rito Rhymes
2026-04-02 17:37 ` Eric Wong
2026-04-03 22:22 ` Rito Rhymes
2026-04-02 21:22 ` Rito Rhymes [this message]
2026-04-02 22:15 ` [PATCH] css: adjust darkmode input bg colors for improved visibility Eric Wong
2026-04-02 23:00 ` [PATCH] css: adjust lightmode " Rito Rhymes
2026-04-03 18:05 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260402212233.22173-1-rito@ritovision.com \
--to=rito@ritovision.com \
--cc=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).