update styles for template (forked from spiritus)