Feature request: programmatically apply theme

Please add functionality to make the theming API more useful.

Two absent mechanisms we would like to see:

  • The ability to programmatically apply a given theme to part of the dom. The use case is to provide our users with the ability to preview a macro in different themes to see how their content will look to users who are not all using the same theme.
  • The ability to programmatically set the global Confluence theme