fix(ui): meet AA on dark text-subtle and calendar event labels #470

Merged
nrupard merged 1 commit from fix/MAPPS-406-contrast into main 2026-08-04 21:00:38 +02:00
Owner

What

Dark --subtle token #64748b -> #9aa8bd; calendar type_color event fills -500 -> -600 (green -700).

Why

Regressions past the MAPPS-288 AA guard (MAPPS-399 F21/F22): --subtle was identical light/dark so text-subtle was 3.07:1 on dark surfaces; calendar white-on-fill labels failed AA (green-500 2.22:1). New values pass (subtle 6.07:1; all event fills >= 4.5, verified against Tailwind v4.1.18). Light --subtle untouched; type_color feeds only event-block backgrounds.

Closes MAPPS-406.

## What Dark `--subtle` token #64748b -> #9aa8bd; calendar `type_color` event fills -500 -> -600 (green -700). ## Why Regressions past the MAPPS-288 AA guard (MAPPS-399 F21/F22): `--subtle` was identical light/dark so `text-subtle` was 3.07:1 on dark surfaces; calendar white-on-fill labels failed AA (green-500 2.22:1). New values pass (subtle 6.07:1; all event fills >= 4.5, verified against Tailwind v4.1.18). Light `--subtle` untouched; `type_color` feeds only event-block backgrounds. Closes MAPPS-406.
fix(ui): meet AA on dark text-subtle and calendar event labels
All checks were successful
Check / fmt + clippy + tests (pull_request) Successful in 1m36s
Create release / Create release from merged PR (pull_request) Has been skipped
7ca3251e40
Two contrast regressions past the MAPPS-288 AA guard (2026-08-04 UI audit, MAPPS-399):
- F21: the --subtle token was identical in light and dark (#64748b), so text-subtle on the dark --surface (#1e293b) was 3.07:1 across ~175 sites (~87 at text-xs/text-sm). Lighten only the dark --subtle to #9aa8bd (6.07:1 on --surface, 7.40:1 on --bg); light --subtle unchanged.
- F22: calendar event blocks render text-white on the type fill from type_color, and bg-green-500 (2.22:1), bg-blue-500, bg-purple-500 at 10-12px failed AA. Bump the fills: blue-600 (5.25), green-700 (4.95; green-600 is only 3.22 in Tailwind v4), purple-600 (5.54), gray-600, slate-600. All five now pass white-text AA. type_color feeds only the three event-block backgrounds (no dot/legend reuse).

#MAPPS-406

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
nrupard deleted branch fix/MAPPS-406-contrast 2026-08-04 21:00:38 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!470
No description provided.