kotlin-playground-wp-plugin
kotlin-playground-wp-plugin copied to clipboard
Support for "automatic" light/dark theme
In the context of Mojave (macOS 10.14) adding system-level Dark Mode and Safari developer preview (https://developer.apple.com/safari/technology-preview/) respecting the @media (prefers-color-scheme: dark)
selector, it would be great if it was possible to embed a kotlin snippet that automatically switches between 'idea' and 'darcula' mode.
If my understanding is correct, [kotlin]
snippets are processed when the page is loaded / rendered, and there is no way right now to switch to different CSS-provided colors after that.