]> danix's work - danix.xyz-2.git/commit
fix: improve badge text color contrast for WCAG AA compliance
authorDanilo M. <redacted>
Tue, 21 Apr 2026 16:46:11 +0000 (18:46 +0200)
committerDanilo M. <redacted>
Tue, 21 Apr 2026 16:46:11 +0000 (18:46 +0200)
commit2236d07a5247cab38e0e6b524bdfb26c12c143a8
tree1a6a1d0e86ca22b800a971e499fdee13fe203f78
parent8e16e9f4665f2537225f1d21668c6a8002745770
fix: improve badge text color contrast for WCAG AA compliance

Added CSS custom properties --type-{name}-text for each article type with appropriate text colors per theme:
- Dark mode: all types use black text (#000000) for sufficient contrast
- Light mode: tech and photo types use white text (#ffffff), life/quote/link use black text (#000000)

Updated article-header.html and article-card.html to use color: var(--type-{name}-text) instead of hardcoded text-white class.

Improves contrast ratios:
- Quote type dark mode: 1.34:1 → 15.66:1 (white on #00ff88 was failing WCAG AA)
- All other types now pass 4.5:1 minimum for WCAG AA small text

Co-Authored-By: Claude Haiku 4.5 <redacted>
themes/danix-xyz-hacker/assets/css/main.css
themes/danix-xyz-hacker/assets/css/main.min.css
themes/danix-xyz-hacker/layouts/partials/article-card.html
themes/danix-xyz-hacker/layouts/partials/article-header.html