jupyter-book
jupyter-book copied to clipboard
Poor visibility of "Show code cell source/output" text in dark mode
For code cells with "hide-input" or "hide-output" tags, in exported html the "Show code cell source/output" text has poor visibility in the dark mode due to too bright colours, please see the picture:
This is because --mystnb-source-bg-color is unaffected by the change in color scheme.
I'm not sure what the correct fix is.
A naïve fix is to add
:root {
--mystnb-source-bg-color: var(--pst-color-surface)!important;
--mystnb-stdout-bg-color: var(--pst-color-surface)!important;
}
to a css file in your _static dir.
This has been improved in JBv2, which has had a full style pass in both light and dark mode.
There is an upgrade guide available here. Please reach out if there are other style issues!