This would require a map between alert state names and warning/error classes. I could include a map in the data passed from Go to the template, but it seemed a bit silly to me last night, so I just copied the colors. If you feel strongly, I can change it.