feat: replace theme-based text color with WCAG luminance contrast (Closes #7) #69
Reference in New Issue
Block a user
Delete Branch "feature/issue-7-accessible-color-contrast"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
contrastTextColor(backgroundColor)utility in theme package that calculates WCAG 2.1 relative luminance and picks black or white text for >= 4.5:1 contrast ratioif (isInDarkMode) Color.Black else Color.Whitepattern in bothAttribute.ktandTalent.ktwith luminance-based calculationTest plan
Closes #7