Skip to content

Stop inverting mermaid diagrams in dark mode - #161

Open
azmeuk wants to merge 1 commit into
lepture:mainfrom
azmeuk:dark-mermaid
Open

azmeuk wants to merge 1 commit into
lepture:mainfrom
azmeuk:dark-mermaid

Conversation

@azmeuk

@azmeuk azmeuk commented Oct 14, 2026

Copy link
Copy Markdown

Since version 2.0, sphinxcontrib-mermaid renders diagrams with a dark Mermaid theme when the page is in dark mode. The CSS filter inverted them a second time, which made them unreadable.

Inversion was useful for sphinxcontrib-mermaid 1 though, but since version 2 is out since january 2026 maybe it is ok to stop supporting version 1?

Before

Capture d’écran du 2026-10-14 11-33-47

After

Capture d’écran du 2026-10-14 11-48-12

Since version 2.0, sphinxcontrib-mermaid renders diagrams with a dark
Mermaid theme when the page is in dark mode. The CSS filter inverted
them a second time, which made them unreadable.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant