Dark-mode responsive diagrams
I want to briefly highlight a cool new feature in D2, which is that you can set both a light theme and a dark theme for diagrams in D2.
How does this work? How can a diagram have two themes?
I want to briefly highlight a cool new feature in D2, which is that you can set both a light theme and a dark theme for diagrams in D2.
How does this work? How can a diagram have two themes?
D2 is a diagramming language, and it's versatile unlike any other. For example, you can create full PowerPoint presentations with just text.
It's not D2's primary function, but rather a natural byproduct of a powerful language. D2 built features for grid diagrams and animations, and users built pixel art. And now, with Markdown and Powerpoint, D2 is the easiest way to programmatically create PowerPoint presentations.
Sketch mode started out as a "wouldn't it be cool" weekend feature, and has since turned into one of the things people love most about D2.
When you pass the sketch
flag like so, you'll get a diagram that kind of looks hand-drawn.