Just realized the getCategoryColor() function is being used elsewhere. Restoring and using function to build CSS.