update styles for generated classes