Skip to content

Proper method to set default mermaid colors for all diagrams #52

Answered by squidfunk
aforsythe asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@aforsythe
Comment options

@fralau
Comment options

@squidfunk
Comment options

Answer selected by fralau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants