I'm using Mermaid to create a sequence diagram in Markdown. I'd like to highlight some of the participants and to gray some of the arrows.
I only see how to change the theme color, not how to change the color of a specific diagram element. Is it possible?
About Mermaid. Mermaid lets you create diagrams and visualizations using text and code. It is a JavaScript based diagramming and charting tool that renders Markdown-inspired text definitions to create and modify diagrams dynamically. If you are familiar with Markdown you should have no problem learning Mermaid's Syntax ...
Now, it isn't possible to style sequence diagrams. There is an open issue in their bugtracker. Click the link and vote for it :-)
You can style other types of diagrams, as answered by @lutz-dieckhofer.
Take a look at the Mermaid documentation, there is also a paragraph about the styling of individual nodes:
https://mermaid-js.github.io/mermaid/#/flowchart?id=styling-and-classes
I hope this what you are looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With