Can an Extension detect dark mode?

This is also something we’d like to see. I can imagine this being passed in using onContext (so we can immediately react to the user switching and rerender with a different text color), or using document.location (similar to how anchor, language and mode are passed in right now).

Our use-case right would specifically be the config mode, but I can imagine this also being generally relevant on dashboard, and on viewer specifically for panel extensions.