Skip to content

Commit 1f84afd

Browse files
authored
PIN: myst-nb>=1.3.0,<1.4.0 to fix dark mode code cells (#825)
myst-nb 1.4.0 (released 4 days ago) changed its CSS generation to use @media (prefers-color-scheme: dark) for system dark mode detection. Since this site does not set data-theme on the html element, users with OS dark mode enabled see dark code cell backgrounds on the light-themed site. Pinning to myst-nb 1.3.0 restores the previous CSS behavior which only activates dark mode via the explicit html[data-theme='dark'] selector. Closes QuantEcon/quantecon-book-theme#372
1 parent 7b343ce commit 1f84afd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dependencies:
77
- pip
88
- pip:
99
- jupyter-book>=1.0.4post1,<2.0
10+
- myst-nb>=1.3.0,<1.4.0
1011
- quantecon-book-theme==0.18.0
1112
- sphinx-tojupyter==0.6.0
1213
- sphinxext-rediraffe==0.3.0

0 commit comments

Comments
 (0)