Trying to change the theme colors programmatically

Jan 27 at 1:44 AM
I've been looking everywhere on how to change the theme colors but i can't seem to figure it out, can anyone help me out ?