Technical notes on web development, DevOps, and AI integration.
1 article
Ten architecture diagrams rebuilt from image files into pure HTML+CSS: diffable, searchable, and theme-aware through CSS custom properties.
TL;DR: After dark mode migration, ten diagram images couldn't be diffed or searched, since PNGs are binary and SVG exports rewrite element order. Converting formats didn't help; the real issue was rendering structured data as images, so the diagrams were rebuilt as HTML and CSS using custom properties for theming. PDFs keep vector art; spatial swimlanes remain images with alt text.