Skip to content

Commit 195cfde

Browse files
authored
Merge pull request #83 from ravidsrk/ravidsrk/ui-ux-audit
UI/UX audit: fix muted + footer text contrast to WCAG AA
2 parents 1b848eb + eaf2022 commit 195cfde

4 files changed

Lines changed: 15 additions & 12 deletions

File tree

apps/web/functions/_brand.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@ export const BRAND_CSS = `
2626
/* borders + hairlines (light) */
2727
--border:#DBDDD6; --border-2:#E4E6DF; --row:#E7E8E2; --row-inner:#EDEEE8;
2828
--border-btn:#C9CBC3; --border-chip:#D7D9D2; --track:#E2E4DD; --neutral:#CDCFC8;
29-
/* ink tints on light, high contrast first */
30-
--text:#181815; --text-2:#3A3B33; --text-3:#46473F; --text-4:#6E6F63;
31-
--text-5:#7E7F72; --text-6:#9A9B8E;
29+
/* ink tints on light, high contrast first. text-4/5 darkened to clear WCAG
30+
AA (4.5:1) on the paper AND the tinted code-panel backgrounds, where the
31+
old values measured 3.5-3.7:1 — the slop detector's own low-contrast-text
32+
axis flags that. text-6 stays as the single faint, decorative-only tone. */
33+
--text:#181815; --text-2:#3A3B33; --text-3:#46473F; --text-4:#565750;
34+
--text-5:#5E5F57; --text-6:#9A9B8E;
3235
/* verdict core hues (fills + dots) */
3336
--clean:#1FA85E; --mild:#D89A2E; --heavy:#C9402E;
34-
/* verdict text hues (AA on paper) */
35-
--clean-text:#15824A; --mild-text:#9A6B12; --heavy-text:#B23A2A;
37+
/* verdict text hues — nudged to actually clear AA 4.5:1 on paper (were 4.3-4.4) */
38+
--clean-text:#11703F; --mild-text:#835A0E; --heavy-text:#B23A2A;
3639
--system-text:#2C6E8F; --clean-dark:#3FBE7A;
3740
/* ink tints on the dark register */
3841
--d-text:#F4F5F2; --d-text-2:#C9CABF; --d-text-3:#B6B7AC; --d-text-4:#8A8B7E;

apps/web/functions/_ui.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ export const UI_CSS = `
111111
.ft-inner{max-width:1080px;margin:0 auto;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap}
112112
.ft-id{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
113113
.ft-word{font-family:var(--mono);font-weight:700;font-size:var(--fs-wordmark);letter-spacing:-0.01em;color:var(--d-text)}
114-
.ft-meta{font-family:var(--mono);font-size:12px;color:var(--text-4)}
114+
.ft-meta{font-family:var(--mono);font-size:12px;color:var(--d-text-4)}
115115
.ft-links{display:flex;gap:16px;flex-wrap:wrap;font-family:var(--mono);font-size:12px}
116116
.ft-links a{color:var(--d-text-3)}
117117
.ft-links a:hover{color:var(--d-text)}
118118
.ft-note{max-width:1080px;margin:16px auto 0;display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
119119
.ft-fp{font-family:var(--serif);font-style:italic;font-size:15px;color:var(--d-text-3)}
120-
.ft-repro{font-family:var(--mono);font-size:12px;color:var(--text-4)}
120+
.ft-repro{font-family:var(--mono);font-size:12px;color:var(--d-text-4)}
121121
122122
/* scan input — the primary action; one bordered row, no slop styling */
123123
.scan{display:flex;align-items:stretch;overflow:hidden;background:var(--panel);border:1px solid var(--text);border-radius:4px}

apps/web/public/compare/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
color-scheme:light;
2121
--bg:#F4F5F2; --bg-2:#EEF0EB; --panel:#FBFBF9; --ink-deep:#16170F;
2222
--border:#DBDDD6; --border-2:#E4E6DF; --border-btn:#C9CBC3;
23-
--text:#181815; --text-2:#3A3B33; --text-3:#46473F; --text-4:#6E6F63; --text-6:#9A9B8E;
24-
--clean:#1FA85E; --clean-text:#15824A;
23+
--text:#181815; --text-2:#3A3B33; --text-3:#46473F; --text-4:#565750; --text-6:#9A9B8E;
24+
--clean:#1FA85E; --clean-text:#11703F;
2525
--d-text:#F4F5F2; --d-text-3:#B6B7AC; --d-text-4:#8A8B7E;
2626
--serif:'Newsreader',Georgia,'Times New Roman',serif;
2727
--sans:'Libre Franklin',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

apps/web/public/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@
210210
--ink-deep:#16170F; --ink-deeper:#0F0F0B;
211211
--border:#DBDDD6; --border-2:#E4E6DF; --row:#E7E8E2; --row-inner:#EDEEE8;
212212
--border-btn:#C9CBC3; --border-chip:#D7D9D2; --track:#E2E4DD; --neutral:#CDCFC8;
213-
--text:#181815; --text-2:#3A3B33; --text-3:#46473F; --text-4:#6E6F63;
214-
--text-5:#7E7F72; --text-6:#9A9B8E;
213+
--text:#181815; --text-2:#3A3B33; --text-3:#46473F; --text-4:#565750;
214+
--text-5:#5E5F57; --text-6:#9A9B8E;
215215
--clean:#1FA85E; --mild:#D89A2E; --heavy:#C9402E;
216-
--clean-text:#15824A; --mild-text:#9A6B12; --heavy-text:#B23A2A;
216+
--clean-text:#11703F; --mild-text:#835A0E; --heavy-text:#B23A2A;
217217
--system-text:#2C6E8F; --clean-dark:#3FBE7A;
218218
--d-text:#F4F5F2; --d-text-2:#C9CABF; --d-text-3:#B6B7AC; --d-text-4:#8A8B7E;
219219
--d-border:#2A2B22; --d-border-2:#3A3B30;

0 commit comments

Comments
 (0)