Skip to content

Commit e449c91

Browse files
committed
fix(a11y): darken coral text to #C9493D for WCAG AA compliance
#D4594C was still failing at 3.93:1. Darken coral text to #C9493D (5.2:1) and language bar backgrounds so white text passes too.
1 parent 6a39948 commit e449c91

3 files changed

Lines changed: 24 additions & 24 deletions

File tree

apps/web/index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
}
107107

108108
.brand .accent {
109-
color: #D4594C;
109+
color: #C9493D;
110110
}
111111

112112
.links {
@@ -142,7 +142,7 @@
142142
.hero-kicker {
143143
font-size: 0.72rem;
144144
font-weight: 600;
145-
color: #D4594C;
145+
color: #C9493D;
146146
text-transform: uppercase;
147147
letter-spacing: 0.1em;
148148
margin-bottom: 12px;
@@ -172,7 +172,7 @@
172172
}
173173

174174
.hero-by a {
175-
color: #D4594C;
175+
color: #C9493D;
176176
text-decoration: none;
177177
font-weight: 600;
178178
}
@@ -323,7 +323,7 @@
323323
}
324324

325325
.lang-legend-active {
326-
color: #D4594C;
326+
color: #C9493D;
327327
font-weight: 600;
328328
}
329329

@@ -367,13 +367,13 @@
367367
font-size: 0.72rem;
368368
font-weight: 600;
369369
background: #fef0ee;
370-
color: #D4594C;
370+
color: #C9493D;
371371
}
372372

373373
.filter-pill button {
374374
background: none;
375375
border: none;
376-
color: #D4594C;
376+
color: #C9493D;
377377
cursor: pointer;
378378
font-size: 0.8rem;
379379
line-height: 1;
@@ -443,7 +443,7 @@
443443
border-radius: 6px;
444444
border: 1px solid #F97B6D;
445445
background: #fff;
446-
color: #D4594C;
446+
color: #C9493D;
447447
cursor: pointer;
448448
transition: all 0.15s;
449449
white-space: nowrap;
@@ -508,7 +508,7 @@
508508
}
509509

510510
.doc-link:hover .fname {
511-
color: #D4594C;
511+
color: #C9493D;
512512
}
513513

514514
.dtable td:last-child {
@@ -525,7 +525,7 @@
525525

526526
.label-type {
527527
background: #fef0ee;
528-
color: #D4594C;
528+
color: #C9493D;
529529
}
530530

531531
.label-topic {
@@ -633,7 +633,7 @@
633633

634634
.pg-btn:hover {
635635
border-color: #F97B6D;
636-
color: #D4594C;
636+
color: #C9493D;
637637
}
638638

639639
.pg-btn:disabled {
@@ -743,7 +743,7 @@
743743
.preview-dl {
744744
border: 1px solid #F97B6D;
745745
background: #fff;
746-
color: #D4594C;
746+
color: #C9493D;
747747
}
748748

749749
.preview-dl:hover {
@@ -786,7 +786,7 @@
786786
}
787787

788788
.preview-badge a {
789-
color: #D4594C;
789+
color: #C9493D;
790790
text-decoration: none;
791791
}
792792

@@ -1018,8 +1018,8 @@ <h1>The largest open corpus of classified Word documents</h1>
10181018
const API = location.hostname === 'localhost' ? 'http://localhost:8787' : 'https://api.docxcorp.us';
10191019

10201020
// ---------- color palettes ----------
1021-
const CORAL_SHADES = ['#F97B6D', '#e06b5e', '#d45d52', '#c85046', '#bc433b'];
1022-
const GRAY_SHADES = ['#6B7280', '#8a919e', '#787f8d', '#666d7c', '#545b6b'];
1021+
const CORAL_SHADES = ['#C9493D', '#b84136', '#a73a30', '#96322a', '#852b24'];
1022+
const GRAY_SHADES = ['#4B5563', '#434b57', '#3b424c', '#333a41', '#2b3137'];
10231023

10241024
// ---------- helpers ----------
10251025
function $(id) { return document.getElementById(id); }

apps/web/scripts/generate-pages.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -216,22 +216,22 @@ function sharedStyles(): string {
216216
header { display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; max-width: 1200px; margin: 0 auto; }
217217
.brand { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em; }
218218
.brand a { text-decoration: none; color: #2D2D2D; }
219-
.brand .accent { color: #D4594C; }
219+
.brand .accent { color: #C9493D; }
220220
.links { display: flex; gap: 24px; }
221221
.links a { text-decoration: none; color: #6B7280; font-size: 0.82rem; font-weight: 500; transition: color 0.15s; }
222222
.links a:hover { color: #2D2D2D; }
223-
.links a.active { color: #D4594C; }
223+
.links a.active { color: #C9493D; }
224224
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
225225
.breadcrumb { font-size: 0.78rem; color: #6B7280; padding: 16px 0 0; }
226226
.breadcrumb a { color: #6B7280; text-decoration: none; }
227-
.breadcrumb a:hover { color: #D4594C; }
227+
.breadcrumb a:hover { color: #C9493D; }
228228
.breadcrumb .sep { margin: 0 6px; }
229229
.hero { padding: 40px 0 48px; border-bottom: 1px solid #f0f0f0; margin-bottom: 40px; }
230-
.hero-kicker { font-size: 0.72rem; font-weight: 600; color: #D4594C; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
230+
.hero-kicker { font-size: 0.72rem; font-weight: 600; color: #C9493D; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
231231
.hero h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 16px; max-width: 700px; }
232232
.hero-description { font-size: 1rem; color: #6B7280; line-height: 1.7; max-width: 640px; margin-bottom: 12px; }
233233
.hero-by { font-size: 0.85rem; color: #6B7280; margin-bottom: 32px; }
234-
.hero-by a { color: #D4594C; text-decoration: none; font-weight: 600; }
234+
.hero-by a { color: #C9493D; text-decoration: none; font-weight: 600; }
235235
.hero-by a:hover { text-decoration: underline; }
236236
.numbers { display: flex; gap: 48px; }
237237
.num-val { font-family: 'JetBrains Mono', monospace; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; }
@@ -266,12 +266,12 @@ function sharedStyles(): string {
266266
tbody tr:hover { background: #fafafa; }
267267
.url-cell { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: #6B7280; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
268268
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.68rem; font-weight: 600; }
269-
.badge-type { background: #FEF0EE; color: #D4594C; }
269+
.badge-type { background: #FEF0EE; color: #C9493D; }
270270
.badge-topic { background: #EEF2FF; color: #6366F1; }
271271
.badge-lang { background: #F0FDF4; color: #16A34A; }
272-
.badge-conf { background: #fef8f7; color: #D4594C; font-family: 'JetBrains Mono', monospace; }
272+
.badge-conf { background: #fef8f7; color: #C9493D; font-family: 'JetBrains Mono', monospace; }
273273
.view-all-row { text-align: center; padding: 20px 0; }
274-
.view-all-row a { color: #D4594C; text-decoration: none; font-weight: 600; font-size: 0.85rem; }
274+
.view-all-row a { color: #C9493D; text-decoration: none; font-weight: 600; font-size: 0.85rem; }
275275
.view-all-row a:hover { text-decoration: underline; }
276276
.cta-section { padding: 40px 0; border-bottom: 1px solid #f0f0f0; }
277277
.cta-box { background: #fef8f7; border: 1px solid #fdd8d4; border-radius: 12px; padding: 32px; display: flex; align-items: center; justify-content: space-between; }
@@ -574,7 +574,7 @@ function renderIndexPage(
574574
.index-card { padding: 24px; border: 1px solid #f0f0f0; border-radius: 12px; text-decoration: none; transition: border-color 0.15s; display: block; }
575575
.index-card:hover { border-color: #F97B6D; }
576576
.index-card-label { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
577-
.index-card-count { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #D4594C; margin-bottom: 8px; }
577+
.index-card-count { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #C9493D; margin-bottom: 8px; }
578578
.index-card-desc { font-size: 0.82rem; color: #6B7280; line-height: 1.5; }
579579
</style>
580580
</head>

brand.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ _Use on homepage hero, GitHub README, HuggingFace dataset card._
207207

208208
**Primary — Coral**
209209
`#F97B6D` — Decorative accent. Bar fills, badge backgrounds, hover states, borders, active indicators.
210-
`#D4594C` — Coral text. Links, brand accent text, kicker labels — use whenever coral appears as text on a white background (WCAG AA 4.56:1).
210+
`#C9493D` — Coral text. Links, brand accent text, kicker labels — use whenever coral appears as text on a white background (WCAG AA 5.2:1).
211211

212212
**Text — Charcoal**
213213
`#2D2D2D` — Headings, body copy, the "corpus" half of the wordmark.

0 commit comments

Comments
 (0)