Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to style the color of the font?

Tags:

mermaid

I would like to change the default black color of the font to white. I tried to add this to the styling section of my graph:

style request-rejected fill:#e74c3c,color:#FFFFFF;

The background is correctly changed to #e74c3c but the font stays black. It looks however that normal CSS styles are used in the .less source.

Is it possible to change the font color in a graph?

like image 402
WoJ Avatar asked Dec 04 '25 09:12

WoJ


1 Answers

I know that this is a SUPER old post - but just in case someone else ends up here...

Please see Mermaid documentation for information on styling

like image 117
Justin Greywolf Avatar answered Dec 10 '25 15:12

Justin Greywolf