Extract styling to resources