-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Code snippet/blocks barely readable on black theme #374
Comments
I'm also concerned about this. The issue persists even if we write our own custom dark-theme. I'm trying to see if we can use a different syntax highlighting theme. If that is possible, it might be nice to implement that and turn it on for dark-themes. Its too bad cause:
For these reasons I think it should be prioritized. |
Would any of the Pygments Syntax Highlighting themes be suitable? If so, perhaps Jekyll/Rouge could be configured to use it in dark mode. |
Try setting a Pygments theme id in highlight_theme: dark2 Then add the following line to <link rel="stylesheet" title="Highlight theme" href="https://stylishthemes.github.io/Syntax-Themes/pygments/css-github/pygments-{{ site.highlight_theme }}.css"> That produces the specified code highlighting. Would that be OK? |
... except that the background colour of each line is still the @pmarsceill I tried copying But perhaps it would be better to make |
In https://github.com/pdmosses/just-the-docs/tree/dark-highlight, the Pygments GitHub Dark colours have been added to If there is a set of colours that would be more harmonious with the dark option of Just the Docs, it would be good to update to use them before submitting a PR. |
@MrBartusek, @SirLich Would either of you like to submit a PR to fix this issue? If not, I could submit one based on the solution suggested in my previous comment, but it would help if you could select a nice set of colours to use from the Pygments Syntax Highlighting themes. |
@pdebruic Yeah, you can submit a PR. I think the best suit for the theme would be |
@MrBartusek thanks for the quick response. I'll try both those sets of colours, and submit a PR for one of them. |
@MrBartusek I tried to add the Pygments theme name as a configuration option, but I don't see how to make If you're happy with the implementation, I'll update the relevant page in the docs before requesting a review. |
Should be resolved by #578! |
Describe the bug
Code blocks main text colour is
#555555
while background is#302d36
that makes them not readableScreenshots
![image](https://user-images.githubusercontent.com/23432278/86512349-a888be00-be01-11ea-8fb2-b9aab625af41.png)
The text was updated successfully, but these errors were encountered: