Comments (3)
hardcoded colors that could be made agnostic of BG color:
The following is subject to #733:
from nbsphinx.
Thanks for reporting this!
nbsphinx
is not supporting dark themes yet (see also #635).
I would like to fix this at some point, but I'm still too confused about how to do that. Sphinx has hardly any support for a dark theme, and many third party themes use quite different technologies for their dark themes. I think this makes it basically impossible to be working correctly on all themes.
The idea with transparency sounds nice, but I guess it can only be used in a few situation and not as a general strategy, right?
For comparison, this is how the JupyterLab dark theme looks like:
from nbsphinx.
Sphinx has hardly any support for a dark theme
I don't think dark mode is a Sphinx support issue. It can be done with HTML and CSS templates.
many third party themes use quite different technologies for their dark themes
Sort of. From what I've seen, light/dark modes are typically toggled using an attribute on the DOM <body>
. The only thing that is really inconsistent is the name of the attribute that is used.
CSS has a media
feature that can be used to compensate for these scenarios, but it might not fit all themes.
The idea with transparency sounds nice, but I guess it can only be used in a few situation and not as a general strategy, right?
If you absolutely want the color to be opaque, then it is harder to satisfy this. But I would recommend the aforementioned CSS media feature when transparency isn't preferrable.
Changing the foreground color makes sense, but it should really only be done if changing the background color to something opaque (as is done for certain rows of tables in nbsphinx).
from nbsphinx.
Related Issues (20)
- Links to local files are marked as "external"
- Download buttons/links HOT 7
- Non working internal links for manually added anchors in 0.9.2 HOT 4
- Unable to create gallery with notebooks out of the doc tree with nblinkgallery HOT 1
- Not compatible with the latest `pandoc` version HOT 2
- Failure on multi-line maths with leading indentation
- Scroll long output HOT 1
- 0.9.2: documentation build fails HOT 1
- `DataFrame` with long column labels is not rendered correctly with the `pydata` theme HOT 1
- What's the best way to add support for sphinx directives in markdown cells? HOT 3
- xelatex support HOT 3
- How to link to a notebook from another file ? HOT 2
- WARNING: toctree glob pattern '*.ipynb' didn't match any documents HOT 1
- Math rending issue after converting the doc HOT 1
- nbsphinx PDF don't render Ploty Plot HOT 2
- Backslashes in markdown cells are sometimes incorrectly interpreted as inline TeX HOT 4
- Error on cells using tqdm
- Error on cells using progress bar (tqdm) HOT 7
- Avoid sphinx searching on output cells HOT 10
- Custom nbsphinx-gallery.css does not take into account - sphinx 7.2.6 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbsphinx.