# Perspective Component Detect Theme Change

**URL:** <https://forum.inductiveautomation.com/t/perspective-component-detect-theme-change/107242>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [June 10, 2025, 5:16pm UTC](https://forum.inductiveautomation.com/t/perspective-component-detect-theme-change/107242 "2025-06-10T17:16:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [June 12, 2025, 10:35pm UTC](https://forum.inductiveautomation.com/t/perspective-component-detect-theme-change/107242/5 "2025-06-12T22:35:32Z")

</div>

You should be accessing the session properties from the tree attached to the `PageStore`:

```js
props.store.clientStore?.page?.sessionProps?.subscribe((tree) =>
  console.log(tree.read('theme'))
)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-component-detect-theme-change/107242)._
