mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-05 21:46:20 +00:00
enhance: improve diff contrast in light and dark themes (#37477)
Fixes https://github.com/go-gitea/gitea/issues/37448 Adjust the diff stat counter and syntax colors in both light and dark themes to github-like colors that meet a >= 5:1 contrast floor (>= 7:1 for syntax names on diff rows), and make the counters semibold. --------- Signed-off-by: cyphercodes <cyphercodes@users.noreply.github.com> Co-authored-by: cyphercodes <cyphercodes@users.noreply.github.com> Co-authored-by: Hermes Agent (GPT-5.5) <hermes-agent@nousresearch.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Hermes Agent <hermes@noreply.local> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -8,7 +8,7 @@ gitea-theme-meta-info {
|
||||
|
||||
/* blue/yellow colorblind-friendly colors */
|
||||
:root {
|
||||
--color-diff-added-fg: #2185d0;
|
||||
--color-diff-added-fg: #0860cc;
|
||||
--color-diff-added-linenum-bg: #b6e3ff;
|
||||
--color-diff-added-row-bg: #ddf4ff;
|
||||
--color-diff-added-word-bg: #b6e3ff;
|
||||
|
||||
Reference in New Issue
Block a user