How can i change the color of all my texts and backgrounds?

I am trying to implement a dark theme and a light theme and is there a way where i can change the color of all the texts and or game Objects instead of individually changing them? Thank You.

You can add a text tag to every Text Object and than just do GameObject.FindWithTag(“Tag”). Than you can go thruth the array with a for each loop and change the coolors.