How can i toggle dark/light themes via an iframe or other methods?

Hi, I am developing chat application using rocket.chat with iframe.

I know there are some externalCommands to send events to the iframe but I can’t see how to change the themes through it.

Is there any APIs or other methods?

Thanks in advance.

sorry but it’s solved