Skip to content

Commit 3135c63

Browse files
committed
fix: adjust primary blue to guarantee 10:1 contrast ratio
1 parent fee1b0e commit 3135c63

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
--color-border-light: #999999;
102102
--color-surface: #f5f5f5;
103103
--color-surface-alt: #ebebeb;
104-
--color-primary: #0022cc;
104+
--color-primary: #0020b3;
105105
--color-primary-hover: #001999;
106106
--color-primary-text: #ffffff;
107107
--color-nav-bg: #000000;

scripts/check-contrast.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const pairs = [
44
{ fg: "#000000", bg: "#ffffff", name: "text on bg (solar)", required: 10 },
55
{ fg: "#1a1a1a", bg: "#ffffff", name: "text-secondary on bg (solar)", required: 10 },
66
{ fg: "#2a2a2a", bg: "#ffffff", name: "text-tertiary on bg (solar)", required: 10 },
7-
{ fg: "#0022cc", bg: "#ffffff", name: "primary on bg (solar)", required: 10 },
7+
{ fg: "#0020b3", bg: "#ffffff", name: "primary on bg (solar)", required: 10 },
88
{ fg: "#001999", bg: "#ffffff", name: "primary-hover on bg (solar)", required: 10 },
9-
{ fg: "#ffffff", bg: "#0022cc", name: "primary-text on primary (solar)", required: 10 },
9+
{ fg: "#ffffff", bg: "#0020b3", name: "primary-text on primary (solar)", required: 10 },
1010
{ fg: "#004d00", bg: "#ffffff", name: "secondary on bg (solar)", required: 10 },
1111
{ fg: "#8b0000", bg: "#ffffff", name: "danger on bg (solar)", required: 10 },
1212
{ fg: "#8b0000", bg: "#ffffff", name: "danger-text on bg (solar)", required: 10 },
@@ -62,7 +62,7 @@ for (const { fg, bg, name, required } of pairs) {
6262
let status;
6363
if (required === 0) {
6464
status = "INFO";
65-
} else if (metdsRequired) {
65+
} else if (meetsRequired) {
6666
status = "PASS";
6767
} else {
6868
status = "FAIL";

src/styles/themes/solar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--color-text: #000000;
44
--color-text-secondary: #1a1a1a;
55
--color-text-tertiary: #2a2a2a;
6-
--color-primary: #0022cc;
6+
--color-primary: #0020b3;
77
--color-primary-hover: #001999;
88
--color-primary-text: #ffffff;
99
--color-secondary: #004d00;

0 commit comments

Comments
 (0)