Let CSS choose black or white text with contrast-color()
Chrome 147 adds contrast-color(), letting labels and buttons choose black or white text for a given background color.
Chrome 147 adds contrast-color(), letting labels and buttons choose black or white text for a given background color.
A look at customizable native selects, progressive enhancement, and the browser-support tradeoffs.