Hey I’m using mermaid for a graph, and noticed that the fill color isn’t the color I choosed (second pic is the color supposed to be). here is the code
No, I don’t think you’re using the wrong CSS property. Mermaid diagrams in Obsidian don’t give you exactly the colors you request, and – more importantly – they render the same code as two different colors between light and dark mode.
The example you posted looks like it was in dark mode. Here’s the same code in light mode:
It’s a bit confusing, and I don’t know an easy way to get the colors you want outside of trial and error. But hopefully this will help you eventually get to the colors you want.