JamesT
March 11, 2024, 2:07pm
1
New request (hopefully a real one this time)!
The inline diagrams look great in light mode:
But are pretty unreadable in dark mode (my preferred setting):
Is there any possibility to make the lines and text white in dark mode (and shift the other colours to be darker to increase legibility)?
isaiur
March 11, 2024, 2:18pm
2
You can try to add this line above:
%%{init: {'theme':'dark'}}%%
and there are more themes on Theme Configuration | Mermaid
1 Like
JamesT
March 11, 2024, 2:24pm
3
Worked like a charm—thank you!
1 Like
JamesT
March 11, 2024, 2:38pm
4
@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?
tobias
March 11, 2024, 3:43pm
5
Hi @JamesT , on it, we’ll see what we can do
And thanks for mentioning that workaround in the meantime @isaiur , great idea!
1 Like