Auto-compute contrast text color for accent backgrounds
Add --primary-contrast CSS variable that auto-switches between white and dark text based on accent color luminance (WCAG relative luminance). Replace all hardcoded #fff/white on primary-color backgrounds with var(--primary-contrast) so light accent colors like yellow remain readable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -399,7 +399,7 @@ body.cs-drag-active .card-drag-handle {
|
||||
padding: 1px 5px;
|
||||
border-radius: 3px;
|
||||
background: var(--primary-color);
|
||||
color: #fff;
|
||||
color: var(--primary-contrast);
|
||||
font-weight: 600;
|
||||
vertical-align: middle;
|
||||
margin-right: 2px;
|
||||
|
||||
Reference in New Issue
Block a user