Say hello to Mermaid Diagrams đź‘‹

I’ve been a Mermaid fan for years, so I wanted to bring a plugin to Penpot to be able to work with Mermaid Diagrams.

It’s pretty basic, these are the current features:

  • Diagrams are built from Penpot text, paths and shapes, so you can edit and export them like anything else in your file.
  • Live preview with syntax highlighting while you type.
  • A list of starter templates and themes, including a custom style example.
  • Plugin’s window follows Penpot’s light and dark theme

The code is on GitHub: GitHub - elenatorro/penpot-mermaid-plugin: Mermaid schemas for Penpot · GitHub .

Feedback, ideas and bug reports are very welcome!

7 Likes

Says this and then goes on to list a load of really cool non-basic features :laughing:

This will be so useful for UX design and other planning work, thank you so much for making and sharing it!

3 Likes

This is pretty cool. We use mermaid a lot too and I can totally see myself using this to mix mockups and more technical visuals!

1 Like

This is really cool.

Since Penpot allows repositioning, it may help with the problem of “I don’t like where Mermaid put the boxes”.

On the other hand, perhaps something like GitHub - reladraw/reladraw · GitHub (why?) would make for a better starting point for those wanting to tweak. In particular, those diagrams might require less arrow re-routingwhen moving boxes around.

Once the infrastructure input box, previw, update, “export”) is there thanks to @elenatorro, offering other diagram layout engines suddenly seems much more approachable! :heart:

1 Like