Style background color of generated namespaces

0 votes
asked May 20, 2025 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, 2025 by The-Lu (89,080 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, 2025 by Nacho
Thanks for your answer! I wanted to avoid writing the namespaces by hand though, since I am generating the namespaces programmatically.
...