Apply styles to an entire DOM tree