Currently I execute stuff like the following from module specific layouts via custom widgets or just plain html/js snippets placed in those layouts.
/* module1 */
mxui.dom.addCss( "css/module1/theme.css");
mxui.dom.removeCss( "css/module2/theme.css");
mxui.dom.removeCss( "css/module3/theme.css");
.
.
.
/* module2 */
mxui.dom.removeCss( "css/module1/theme.css");
mxui.dom.addCss( "css/module2/theme.css");
mxui.dom.removeCss( "css/module3/theme.css");
.
.
.
/* module3 */
mxui.dom.removeCss( "css/module1/theme.css");
mxui.dom.removeCss( "css/module2/theme.css");
mxui.dom.addCss( "css/module3/theme.css");
This seems uncool
You can set custom classes for your pages or layouts and create your CSS depending on these classes.