Styling mermaid element across several diagrams

Is there a way to style a mermaid element across a document ?
I can style inside a mermaid block :

classDef user fill:#f96;
classDef computed fill:#0aa;
Parameter:::user --> Output:::computed  

But would like to reuse the same styling on other blocks. Better if I could style on a document basis and not for the whole vault wit CSS.

Same question for ids, can I define a global Id1(My Text) for the document and simply re-use id1 in several mermaid blocks ?

Any ideas ?

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.