Algorithmic hover states with contrast-color()

9 months ago by codeinabox to c/css

Firefox 146 added support for contrast-color() joining Safari 26 in the First Implementor’s Club. For those unfamiliar, contrast-color() is a new CSS function that will take a as input and returns either white or black depending on which has the most contrast.
css
css

@programming.dev

login for more options
847
363
73

go to feed...