Repository Wiki: Mermaid mindmap rendering issues in dark mode (“Dark default” theme) #189152
Replies: 3 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
@pwandzil thanks for reporting this and helping improve our products! Confirming when I click your demo in dark default I have the same contrast issues. This was very thoroughly posted thank you for including so many helpful examples, our review team appreciates it. |
Beta Was this translation helpful? Give feedback.
-
|
I'm glad you could easily reproduce it! One information I missed to provide was versions:
Also tried now another plugin and embed it in the markdown file in VSCODE:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
GitHub Feature Area
Actions
Body
Hello,
I’ve noticed a diagram‑rendering issue in dark mode (“Dark default” theme (GitHub → Settings → Appearance)) when using the mermaid mindmap diagram type in a wiki page within my GitHub repository.
The issue is that GitHub’s native mermaid preview for mindmap diagrams does not correctly apply configuration files. As a result, the contrast is poor—for example, dark text on a dark background.
To demonstrate that this is specific to GitHub, I rendered the same diagram using the Mermaid Preview extension for VS Code (https://github.com/Mermaid-Chart/vscode-mermaid-preview). It wasn’t perfect, but at least the contrast was acceptable (light text on a dark background).
The issue seem only applicable to "mindmap type", different than:
I’ve prepared a demo wiki page here:
https://github.com/pwandzil/LifeHacks/wiki/From-Tony-Buzan-to-Github-Mermaid
Also short demo below:
Render issue
source code:
Github native render test (dark-default theme):
--- config: theme: 'dark' --- mindmap root((mindmap)) Origins Long history Facebook post by Tony Buzan in 1970s Popularisation British popular psychology author Tony Buzan Research On effectiveness<br/>and features On Automatic creation Uses Creative techniques Strategic planning Argument mapping Tools Pen and paper MermaidPng:
Beta Was this translation helpful? Give feedback.
All reactions