kotlin-playground-wp-plugin icon indicating copy to clipboard operation
kotlin-playground-wp-plugin copied to clipboard

Support for "automatic" light/dark theme

Open kirill-grouchnikov opened this issue 6 years ago • 0 comments

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.

kirill-grouchnikov avatar Nov 29 '18 15:11 kirill-grouchnikov