The Gatekeeper and The Nurse

Adding a dark mode to this site last night turned up four colour-pairs that had been failing the WCAG AA contrast threshold since launch. I wrote about that yesterday . The way I found them was a small Python script that reads the tokens out of style.css and measures every foreground against every background the stylesheet actually paints, in both themes. That post closed by arguing that the dull…