@Tobias Would it be possible to add some “magic” behind-the-scenes in Supernotes, so that adding %%{init: {'theme':'dark'}}%% isn’t necessary, and switching back and forth between light and dark mode just works?
Finally got around to doing this in Supernotes 3.1.8. The solution we went with is a bit more hacky than using native Mermaid themes, in the interest of getting the best possible performance. Please let us know if you have any issues with dark mode diagrams and we can improve further.