-
What is the preferred method to properly set the default mermaid diagram colors for all diagrams on a site? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Would that info on dark mode in the readme; as well as on the autoconfigure, be helpful? |
Beta Was this translation helpful? Give feedback.
-
Sorry I don't think I'm following .. For instance, if I'm looking to change the color of a the stroke of all the diagrams, where would that be set? |
Beta Was this translation helpful? Give feedback.
-
Oh, sorry, I thought you were speaking about "dark" versus "light" mode. I am not a specialist, but your question deals with css styling in mermaid. In the context of mkdocs, you should declare the necessary css file in mkdoc's config file, under extra_css. I hope this helps? |
Beta Was this translation helpful? Give feedback.
You can definitely do it with CSS. It's exactly what I did for the Mermaid integration, which uses the primary and accent colors which you configure via
mkdocs.yml
, and even respects dark mode. It's currently in Insiders, but given the current growth, I suspect it's going to be released in the community edition soon.