There is the Colorize method (see
[ABMaterial] Framework for WebApps), but if it is a project you already worked on and you've set themes yourself through the BuildTheme() methods, you've got to make sure it is not overriden by you yourself. It's easier to use when you start a program.
Some components have a UseTheme() but I haven't got the time to test them all.
Note: I see you mention 'dynamically', as in at run time? Then the answer is no for most components. When you start the server, a lot of css is generated and cannot be changed at runtime.