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
Docs: Non-readable diagrams when the dark theme is on #16683
Comments
Transferred to eslint/eslint, as the code path analysis document is in this repo. |
@mdjermanovic hi! I believe that we have to change styles of the site itself too |
Styles for the docs pages are also in this repo. While at this, I'm not sure if we should change styles to invert colors or make sure that those images have a light background so that they look the same in both light and dark modes. @eslint/website-team thoughts? |
My suggestions are
PS: we cant change the styles of the site itself? |
As @harish-sethuraman suggested we use SVG or add common background color that works well with both themes. |
I like the idea of SVG themes, we can make a special id for them and then override them uniformly. |
at least it is more readable and the colors are distinguishable. But anyway I also like the idea with SVG. Btw SVG supports the media query |
I'd like to hear @eslint/eslint-tsc's thoughts on this too. We might want to make it consistent going forward where these kind of UI differences occurs. |
It's important to note that these SVG images are automatically generated through GraphViz, so any solution we choose should not involve manually editing the SVG. I think the easiest solution would be to just set the background-color to white on all SVGs that are in the content of a documentation page. |
If it's auto-generated, then maybe we can also consider the mermaid + light/dark theme option. Just a thought |
They are generated by hand right now. :) |
There's not enough contrast between the background and the black lines/dots. I think we can just start by applying a white background to these diagrams? |
If we choose white then there’s no border in light mode at all. If the website team wants to choose an off white color, they can. I’d just like to get this issue closed. :) |
URL(s)
https://eslint.org/docs/latest/developer-guide/code-path-analysis
What did you do?
Turn on the dark theme
What did you expect to happen?
Diagrams are readable
What actually happened?
The black arrows of diagrams almost invisible on the dark background of the site
Participation
Additional comments
As a workaround we can use
filter: invert(100%);
for the images when the dark theme is onThe text was updated successfully, but these errors were encountered: