method to change stylesheets and or colors dynamically

Would it be possible (or is it already) to change stylesheets via a method?

And/or is it possible to change colors etc dynamically. Like a background color?