move color definition out of the template