mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-12-06 09:57:39 +09:00
@coderabbitai ignore ## Summary - Tenant portals (Vocalstar yellow `#ffff00`, Singa green `#17E87A`) had unreadable text on primary-colored buttons and UI elements because `--primary-foreground` was hardcoded to white - Added WCAG luminance-based contrast computation to dynamically choose black or white foreground text - Applied fix in client-side branding, Cloudflare edge function, and all tenant-specific components - Fixed light mode to respect tenant colors instead of falling back to brand pink ## Test plan - [x] 6 new unit tests for `getContrastColor()` covering yellow, green, black, blue, pink, white inputs - [x] 2 existing branding tests updated to verify `--primary-foreground` is set correctly - [x] All 555 frontend tests pass - [ ] Visual verification on vocalstar.nomadkaraoke.com and singa.nomadkaraoke.com after deploy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>