-
-
Notifications
You must be signed in to change notification settings - Fork 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
docs: (vitepress) material-palenight theme contrast too low #3800
Comments
Hi @weedySeaDragon, I've made a PR (#3807) that refactors the highlighters so that there is a single place to modify the shiki theme, as well as changing the default theme to
Comments are welcome if there is a different shiki theme that you'd suggest! It might also be worth opening up an issue in https://github.com/vuejs/vitepress to change the default vitepress theme to one with a better contrast ratio, so that other projects also get a better contrasting theme by default. |
Thanks @aloisklink -- this theme is better. I spent a little time looking at dark themes provided with shiki and none of them are great. (Some have higher contrast but are horrifically ugly IMNSHO.) I agree -- right now it's not a good idea to manually modify the theme. I will open an issue with vitepress. |
I believe part of the problem is that vitepress doesn't use the
Such is the way of accessibility/UX vs design 😄 Many modern fonts are the same way, they may be beautiful but difficult to read (although I do like Atkinson Hyperlegible, it doesn't look too bad, but it's designed for low-vision readers in mind, and best of all, it has an open-source license unlike Mermaid's default proprietary Microsoft font). |
[sigh] IIKR. It frustrates me that it doesn't have to be that way. (I get frustrated with all modes of this. Ex: we have a library here designed by a world famous architect. No denying the design is interesting (if not always to my personal liking), but the usability of it was so bad that the librarians had to tape up signs directing people everywhere when it opened. (Don't even get me started on elevator/lift buttons. LOL) But at least in the decades i've been watching this there is now a whole area of expertise (UX), even if it isn't applied often enough.
Oooh. That's nice! Hopefully Mermaid theme/config stuff is revised it will be easier to set the font used and ppl can use that. (Could use that font as an example in the documentation) |
Description
The
material-palenight
theme used by shiki for code does not have enough contrast.Specifically, comments are very difficult to read.
It fails the minimal WCAG standards for contrast.
Steps to reproduce
vitepress dev packages/mermaid/src/docs
Screenshots
Code Sample
No response
Setup
No response
Additional Context
I tried but was unable to figure out how to change the shiki theme used.
The text was updated successfully, but these errors were encountered: