
📊 Pele is a lightweight library that converts Mermaid diagrams into SVG. Its key difference is that colors and fonts can be customized through CSS variables without rendering the diagram again.
The project claims to have zero direct dependencies and to be smaller and faster than Mermaid.js. It also aims to adapt layouts for small screens instead of simply shrinking the diagram.
This may be useful for applications that need diagrams to match their visual theme while keeping their content in familiar Mermaid syntax.
💡 Explanation in a nutshell#
Write the diagram as text, and Pele turns it into an SVG image. Then you can change its appearance with your site’s colors and fonts, much like changing a page theme without drawing the diagram again.
More information at the link 👇
Also published on LinkedIn.

