Style background color of generated namespaces

0 votes
asked May 20 in Question / help by Nacho
Having this code:

@startuml

class firstNamespace.secondNamespace.thirdNamespace.Alice <<<mystyle>>>
@enduml

How can I target the background color of the created namespaces?
commented May 20 by The-Lu (85,440 points)

Hi N.,

Her is a proposal:

@startuml
namespace firstNamespace #green {
  namespace secondNamespace #palegreen {
    namespace thirdNamespace #orange {
      class Alice <<<mystyle>>> {
      }
    }
  }
}
@enduml

Regards,
Th.

1 Answer

0 votes
answered May 21 by Nacho
Thanks for your answer! I wanted to avoid writing the namespaces by hand though, since I am generating the namespaces programmatically.
...