text coloring based on types