Is there any way to "store" the theme mode in a sensor?

Hi Everyone, i’m not sure about the category, but, is there any way to somehow get the theme mode (dark/clear) with jinjia2 script or sensor ( including third-party integration)