Programmatic way to detect theme (light/dark mode)?

I reckon this might not be possible, since theme appears to be a frontend property, but is there a way to detect whether the app is displayed in light/dark mode from the python side?
Solution:
GitHub
feat: marimo.app_meta.theme and custom themers to auto switch plott...
📝 Summary This pull request introduces a new mechanism for managing and applying themes across different plotting libraries used within Marimo notebooks. Changes Made App Metadata: A new AppMeta ...
Jump to solution
3 Replies
Myles Scolnick
Myles Scolnick5mo ago
Not yet. There is an open issue out for this https://github.com/marimo-team/marimo/issues/1624
GitHub
marimo.app_meta.theme · Issue #1624 · marimo-team/marimo
Description Add a marimo.settings, to control or only read the settings if controlling setting in cell will interrupt the notebook. Suggested solution Why this feature can be useful: We can use the...
Georgios Varnavides
Oh oops, apologies for not searching the issues first— discord is making me lazy 😬 Next couple of weeks are rather hectic, but I’ll see if I can find time and take this issue!
Solution
Myles Scolnick
Myles Scolnick3mo ago
GitHub
feat: marimo.app_meta.theme and custom themers to auto switch plott...
📝 Summary This pull request introduces a new mechanism for managing and applying themes across different plotting libraries used within Marimo notebooks. Changes Made App Metadata: A new AppMeta ...