Just created the library @southball/remark-mermaid for using mermaid diagrams in Remark. Multiple themes on the same page is also supported through configuration and re-prefixing of referenced classes.
@southball/remark-mermaid
An example is shown below: