Below is a JupyterLite site running in an IFrame
Click the following button sends a message to the JupyterLab IFrame to toggle the theme.