There is a CustomEvent that is fired when the theme is changed. This event name is themeChanged
. The event contains the name of the theme that it has changed to.
I am still to figure out how you get the theme name on page load. The SDK.init
is supposed to emit this event but does not.