Changing node font color

0 votes
asked Mar 5, 2014 in Wanted features by anonymous

Hi, I use nodes in many of my diagrams.  When I do something like this:

node N as "My Host" #black
 
How do I change the font color to make it readable?
 

1 Answer

+1 vote
answered Mar 6, 2014 by plantuml (294,960 points)

One first option is:

skinparam defaultFontColor white
node N as "My Host" #black


(see other options here http://plantuml.sourceforge.net/skinparam.html )

You can also individually change color setting:

skinparam defaultFontColor white
node N as "My Host" #black
node N1 as "<color:red>My Other Host</color>" #black

 

commented Mar 8, 2014 by anonymous
This will work for me, but I would like to be able to use a !define.  Maybe that can be a new feature: !define MYCOLORSET #black,white
commented Feb 12, 2020 by StevenTCramer
I tried doing the following but I get an error
node node {
  database mongo
} #green

is there a way to change the color of a node that contains things?
...