getTagColor is currently used in multiple components. Turn it into a mixin for re-use instead of code dupe.