Add per-post classes and colors.

According to the number of categories.