do you know of a way that I can assign components to some kind of class and change them on all the pages?
What exactly do you want to change?
You want to change something inside components?
You want to change inside several components over several pages?
Can you elaborate more about your project-flow?
Your information are not enough to give to a solide answer (at least not enough for me).