Skip to content
Tech News
← Back to articles

I use excalidraw to manage my diagrams for my blog

read original get Excalidraw Sketching Tool → more articles
Why This Matters

This article highlights how automating the export of diagrams from Excalidraw can significantly streamline the process of creating and updating visual content for technical blogs. By leveraging open-source tools and GitHub Actions, developers can save time and reduce manual effort, leading to more efficient workflows and clearer communication of complex ideas.

Key Takeaways

TL;DR I use an Excalidraw, wrap the elements of interest with a frame, name it with export_ prefix, my forked excalidraw extension automatically generates SVGs for light and dark mode.

I used Excalidraw a lot in the past.

When breaking down a technical problem for myself When explaining a concept or an architecture to my coworkers.

Just recently a new usecase evolved.

Expressing my thoughts in my Blog.

While writing my first article the dependency between graphics and the text lead to a lot frustration. Fine-tuning the graphic led to an easier text. Changes in the text made me realize that some information in the graphic is not needed to grasp what should land.

Every change in a graphic in Excalidraw meant 9 clicks in Excalidraw.

Selecting the frame pressing export choose the right name + darkmode/lightmode postfix export switch light/dark mode choose the right name + darkmode/lightmode postfix export again realize that one label crossed the frame boundary starting at 1 again.

It took me about 45 seconds.

Automate it :-) .

... continue reading