Battery-card: color icons on logic evaluation

It’d be rather cool to have a set of cells of a battery displayed like this: - where the highest- and lowest-voltage cells are marked up differently to the others.

Some other dashboard card would also be fine. However I’ve not found a way to get one to color icons dependent on a value comparison against max and min. I can create sensors that track max & min simply enough.

Is this possible?