If you're doing dynamic themes, then simply load a stylesheet from the server, and implement all your generation logic there. Any other styling should be done by toggling classes, including most animation. The exceptions I would make are for height and width IF you're doing animation that would otherwise prevent these from being observable via getComputedStyle. At that point, you can use a can.compute with the dom.style object for fine grain control.
↧