automatically style components with css templates