We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffa0af9 commit 51fb8a0Copy full SHA for 51fb8a0
src/doc/common/static/jupyter-sphinx-furo.js
@@ -2,8 +2,9 @@
2
function changeTheme(editor, theme) {
3
if (theme === 'dark') {
4
editor.setOption('theme', 'monokai'); // the same with pygments dark style in conf.py
5
- }
6
- else {
+ } else if (theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
+ editor.setOption('theme', 'monokai');
7
+ } else {
8
editor.setOption('theme', 'default');
9
}
10
0 commit comments