feat: replace theme-based text color with WCAG luminance contrast (Closes #7) #69

Merged
shahondin1624 merged 1 commits from feature/issue-7-accessible-color-contrast into main 2026-03-13 14:08:05 +01:00

1 Commits

Author SHA1 Message Date
shahondin1624
e3a40b20a6 feat: replace theme-based text color with WCAG luminance contrast (Closes #7)
Add contrastTextColor() utility that calculates relative luminance per
WCAG 2.1 and picks black or white text to guarantee >= 4.5:1 contrast.
Attribute and Talent cards now derive text color from the background
color itself instead of checking dark/light theme, fixing mid-luminance
colors that were previously unreadable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:07:46 +01:00