I’m much more comfy in dark mode, however the mermaid charts generally are borderline unreadable, so I would like to have the light mode applied to specific notes bodies.
Things I have tried
Tried to vibe code a custom css, and it kinda works, but it looks much much worse than the light mode.
Is it possible to apply the exact light mode to the body of specific notes?
this was the best suggestion, it is almost workable - thank you. however, the chart’s width exceeds the background’s width, so now the right part if the chart is hanging “in the air”.
I see what you mean. My first thought was to color the entire container, but now that you mention it, this might be better (replace the other snippet with this):
Maybe you already know this and it doesn’t suit you, but mentioning in case: Mermaid allows theme customization in its front matter. And it has its own version of a dark mode. Theme Configuration | Mermaid. You’d have to do every instance though, I think.
The expectation doesn’t make sense to me.
Wouldn’t the real need is just readable Mermaid diagrams regardless of theme?
My approach on plantuml diagrams (which I think are superior to mermaid and is supported by Obsidian and even by Ole’s Digital Garden, and it too can be added styling) is use filter to adjust the colours to make it readable and make the whole diagram blend into the light and dark theme as well. That’s why I pointed at the autoadaptive thread above.