qfr
Re:How to have the browser pick a contrasting color in CSS
on Saturday May 17, 2025 @02:13PM (#44015990)
there is a way to do something close to this using lch:
--text: lch(from var(--bg) calc((49.44 - l) * infinity) 0 0);
source: https://til.jakelazaroff.com/css/swap-between-black-and-whit...