mingrammer / diagrams

:art: Diagram as Code for prototyping cloud system architectures
https://diagrams.mingrammer.com
MIT License
37.48k stars 2.45k forks source link

Use native SVG icons when outputting SVG diagrams #866

Open radupotop opened 1 year ago

radupotop commented 1 year ago

Would it be possible to use native SVG icons when outputting diagrams in the SVG format?

This means that instead of trying to embed the existing PNG icons into SVG diagrams (like it was previously suggested in other tickets [1]) read the SVG icon files and embed the shapes directly.

This would make the resulting SVG file size significantly smaller, self-contained, purely vector based, searchable in the browser, etc.
This means that the application would also need to distribute the current assets in SVG format.

Possible options for obtaining these assets are:

[1] Previous related tickets:

svenBrumble commented 6 months ago

This is a great suggestion and I'd love to see that feature as well. SVG now has widespread adoption even in the non-tech space and being able to just provide a single SVG file instead of having to include a source directory for the individual icons would be a great option to have.