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.
The browser features from Google I/O 2025 that ordinary frontend projects may actually use soon.