How to make different color "themes" for my app?

Hi everyone.

I was wondering if anyone knows a way to create their own color schemes/themes. I’m trying to make an app in which the user can select among a few predetermined color schemes that will apply to all screens once chosen. For example, a “light” theme, a “dark theme,” etc. Some things that the selection will determine is the background color/image, text colors and possibly button colors.

The thing is, I know how to set each individual element of the theme to a certain color, but how can I get it to apply to all my screens? I run into problems because each screen is not the same and has a different number of buttons, text labels, etc. Is there a good way to do this, if it’s possible at all? I’ve tried looking it up and there don’t seem to be any tutorials available.

All help and suggestions are tremendously appreciated!

Maybe this can help you :