Fun demo by Emanuel Kluge that processes an image and renders them in a grid of checkboxes. The colouring is done using
Note that not all browsers support
accent-color at the time of writing. Embedded below is a Pen that indicates whether your browser supports it or not.
See the Pen
CSS accent-color Support test by Bramus (@bramus)