Implement dark mode support for mermaid. #38

Closed
opened 2023-08-07 02:12:09 +00:00 by AnthonyTornetta · 2 comments
AnthonyTornetta commented 2023-08-07 02:12:09 +00:00 (Migrated from github.com)

Supporting dark theme on mermaid is a relatively easy fix that should be supported out of the box. All the changes required would be in mermaid-init.js, and could be changed by the end user if required.

It would be as simple as reading the class appended to the HTML field and choosing mermaid's theme accordingly before initializing it.

Supporting dark theme on mermaid is a relatively easy fix that should be supported out of the box. All the changes required would be in mermaid-init.js, and could be changed by the end user if required. It would be as simple as reading the class appended to the HTML field and choosing mermaid's theme accordingly before initializing it.
xyzst commented 2023-12-14 07:20:01 +00:00 (Migrated from github.com)

@badboy : do you see any issues here? Seems like @AnthonyTornetta has addressed concerns expressed here: https://github.com/badboy/mdbook-mermaid/issues/35#issuecomment-1614564202

@badboy : do you see any issues here? Seems like @AnthonyTornetta has addressed concerns expressed here: https://github.com/badboy/mdbook-mermaid/issues/35#issuecomment-1614564202
badboy commented 2023-12-14 08:50:11 +00:00 (Migrated from github.com)

I don't know. I won't have time to look into this, maybe after the holidays.

I don't know. I won't have time to look into this, maybe after the holidays.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jer/mdbook-mermaid#38
No description provided.