compile styles and templates