cdnV2

git clone https://github.com/notamitgamer/cdnV2.git
· rebuilt hourlyOpen on GitHub
commit 16d15f72bdfd79ffc0ee47cdf20017cfa92db157
parent df69d870f290d615e2aeb4c049b9db0c9d6f2bd5
Author: notamitgamer-bot <noreply@github.com>
Date:   Wed, 30 Sep 2026 09:47:23 +0000

fix(ui): contrast on filled buttons/badges in dark mode, darker GET badge green in light

- add --ui-accent-solid for white-on-blue surfaces (was 3.2:1 in dark mode, now above 4.5:1)
- darken light-mode success green for badge text

Diffstat:
Mapp/templates/_styles.html | 4+++-
Mapp/templates/index.html | 10+++++-----
Mapp/templates/url_shortener.html | 6+++---
3 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/app/templates/_styles.html b/app/templates/_styles.html @@ -11,8 +11,9 @@ --ui-muted: #59636e; --ui-accent: #0b5fff; --ui-accent-bg: #eaf1ff; + --ui-accent-solid: #0b5fff; /* filled buttons/badges with white text */ --ui-danger: #cf222e; - --ui-success: #1a7f37; + --ui-success: #116329; --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --ui-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --ui-radius: 6px; @@ -27,6 +28,7 @@ --ui-muted: #9198a1; --ui-accent: #4c8dff; --ui-accent-bg: #12233f; + --ui-accent-solid: #2f6feb; --ui-danger: #f85149; --ui-success: #3fb950; } diff --git a/app/templates/index.html b/app/templates/index.html @@ -39,7 +39,7 @@ --text-dim: var(--ui-muted); --accent-primary: var(--ui-accent); --accent-primary-hover: var(--ui-accent); - --accent-secondary: var(--ui-accent); + --accent-secondary: var(--ui-accent-solid); --success: var(--ui-success); --danger: var(--ui-danger); --border: var(--ui-border); @@ -438,15 +438,15 @@ .btn:disabled { opacity: 0.6; cursor: not-allowed; } .btn-primary { - background: var(--accent-primary) !important; + background: var(--ui-accent-solid) !important; color: #ffffff !important; - border-color: var(--accent-primary) !important; + border-color: var(--ui-accent-solid) !important; font-weight: 600; transition: none !important; } .btn-primary:hover:not(:disabled), .btn-primary:focus:not(:disabled), .btn-primary:active:not(:disabled) { - background: var(--accent-primary) !important; - border-color: var(--accent-primary) !important; + background: var(--ui-accent-solid) !important; + border-color: var(--ui-accent-solid) !important; color: #ffffff !important; } .btn-primary svg { stroke: #ffffff !important; } diff --git a/app/templates/url_shortener.html b/app/templates/url_shortener.html @@ -26,7 +26,7 @@ --text-dim: var(--ui-muted); --accent-primary: var(--ui-accent); --accent-primary-hover: var(--ui-accent); - --accent-secondary: var(--ui-accent); + --accent-secondary: var(--ui-accent-solid); --success: var(--ui-success); --danger: var(--ui-danger); --border: var(--ui-border); @@ -145,8 +145,8 @@ .btn:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-hover); text-decoration: none; color: var(--text-main); } .btn:active:not(:disabled) { transform: scale(0.97); } .btn:disabled { opacity: 0.6; cursor: not-allowed; } - .btn-primary { background: var(--accent-primary) !important; color: #ffffff !important; border-color: var(--accent-primary) !important; font-weight: 600; transition: none !important; } - .btn-primary:hover:not(:disabled), .btn-primary:focus:not(:disabled), .btn-primary:active:not(:disabled) { background: var(--accent-primary) !important; border-color: var(--accent-primary) !important; color: #ffffff !important; } + .btn-primary { background: var(--ui-accent-solid) !important; color: #ffffff !important; border-color: var(--ui-accent-solid) !important; font-weight: 600; transition: none !important; } + .btn-primary:hover:not(:disabled), .btn-primary:focus:not(:disabled), .btn-primary:active:not(:disabled) { background: var(--ui-accent-solid) !important; border-color: var(--ui-accent-solid) !important; color: #ffffff !important; } .btn-primary svg { stroke: #ffffff !important; } .icon-btn { display: inline-flex;