# zoomSdk.onThemeModeChange not working

**URL:** <https://devforum.zoom.us/t/zoomsdk-onthememodechange-not-working/81954>\
**Category:** Zoom Apps\
**Created:** [January 23, 2023, 2:51pm UTC](https://devforum.zoom.us/t/zoomsdk-onthememodechange-not-working/81954 "2023-01-23T14:51:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trey.schn](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/trey.schn/32/43537_2.png) [@trey.schn](https://devforum.zoom.us/u/trey.schn)\
**Post date:** [January 23, 2023, 2:51pm UTC](https://devforum.zoom.us/t/zoomsdk-onthememodechange-not-working/81954/1 "2023-01-23T14:51:57Z")

</div>

Hi Zoom team. The event onThemeModeChange is not working. I get the following error:

“Property ‘onThemeModeChange’ does not exist on type ‘ZoomSdk’.”

I’m on the latest version 0.16.7 of @zoom1234/appssdk. I’ve added the “onThemeModeChange” capability within the call to config, and also enabled the event within the features tab of the app in the Zoom marketplace.

Is this event supposed to work? There is no mention of it in the docs at [appssdk.zoom.us](http://appssdk.zoom.us) either. @MaxM

---

<div class="post-metadata">

**Author:** ![narmadaravali](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/narmadaravali/32/39496_2.png) [@narmadaravali](https://devforum.zoom.us/u/narmadaravali)\
**Post date:** [January 23, 2023, 9:03pm UTC](https://devforum.zoom.us/t/zoomsdk-onthememodechange-not-working/81954/2 "2023-01-23T21:03:46Z")

</div>

Hi,

We did not release this event in the SDK. This event is not supposed to work.

---

<div class="post-metadata">

**Author:** ![trey.schn](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/trey.schn/32/43537_2.png) [@trey.schn](https://devforum.zoom.us/u/trey.schn)\
**Post date:** [January 24, 2023, 5:11pm UTC](https://devforum.zoom.us/t/zoomsdk-onthememodechange-not-working/81954/3 "2023-01-24T17:11:41Z")

</div>

Thanks for the reply. It’s a little confusing since it’s listed as an event to enable in the marketplace. Is there an ETA on when/if this event will be available via the SDK? @MaxM

---

<div class="post-metadata">

**Author:** ![narmadaravali](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/narmadaravali/32/39496_2.png) [@narmadaravali](https://devforum.zoom.us/u/narmadaravali)\
**Post date:** [January 24, 2023, 5:28pm UTC](https://devforum.zoom.us/t/zoomsdk-onthememodechange-not-working/81954/4 "2023-01-24T17:28:37Z")

</div>

This event may or may not be released in the SDK. Would you try to use `prefers-color-scheme` media feature to detect theme changes? [prefers-color-scheme - CSS: Cascading Style Sheets | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme)
