Extract styles to stylesheet