how to change the header color of a class diagram

0 votes
asked Aug 29 in Question / help by martinllanos (120 points)

Given the following puml, how can I alter the artifact color "C", the color of the circle, the background color of the circle, and the font of "C"?

class Server < modules > {

  - __private: {} 

  - self: this

  -- Methods --

  + Server (cb, scope)

  + sandboxApi (call, args, cb)

  + onBind (scope)

  + onBlockchainReady ()

  + cleanup (cb)

  + isLoaded ()

  + areModulesReady ()

}

1 Answer

0 votes
answered Aug 30 by The-Lu (31,620 points)

Hello M.,

For change color, you can use:

skinparam stereotypeCBackgroundColor palegreen
skinparam stereotypeCBorderColor #black

And observe the result:

See also doc. here:

Regards,
Th.

...