Applying a custom theme (style)

What would be a good way to switch between themes?
To disable style script I change space-style to css space-style.
If themes are built with css scoping (prefixing styles with top level class), then I think, in main SETTINGS, we could use page decorators.

  • to apply theme to all pages
pageDecoration:
  cssClasses:
  - custom-theme
  • to apply to some pages
objectDecorators:
- where: 'name =~ /^Inbox\//'
  attributes:
     pageDecoration.cssClasses: "custom-theme"