-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pygments_style background ignored #2081
Comments
Hi @rtimms, what extensions are you using? This theme might not play well with notebooks and such. It works for 'plain' code blocks, but I never tested/developed it for notebooks. My guess is that whatever extension renders these notebook cells (if that's what they are) as code blocks overrides the background color of the |
I'm using the following extensions:
Yeah, I think that is what is happening. It looks like other themes do some custom stuff to overwrite pygments CSS files, e.g. see what pydata does. |
Ok, I'm going to check |
Great, thanks! I tried just adding a custom |
@rtimms does this look ok to you? I made a PR with some (hopefully) improvements. |
Looks good! Thanks for the quick fix. |
I may be doing something wrong, but simply setting
in
conf.py
results in notebook cells displaying with the wrong background color in dark mode. Are there other settings I should be editing too?Light mode looks as expected:
Dark mode has a light background instead of dark:
Thanks!
The text was updated successfully, but these errors were encountered: