Rather than set styles, set a class name based on color index.

Yeah I had it in the cs. I'll remove.