Can container components be skinned separately from normal components?

0 votes
asked Jan 9 in Wanted features by Rob Oxspring
By default containers components appear to be drawn black and white, but normal ones are pale yellow with the red border:

If I add a skinparam targeting component then both container and normal components pick this up:

Is there any way to avoid that? I'd like to modify the normal component background color without affecting the container components.

1 Answer

0 votes
answered Jan 25 by Anthony-Gaudino (7,760 points)

You can use stereotypes and skinparam to do it:

hide stereotype

show <<Inner>> stereotype

skinparam componentBorderColor<<Outer>> Yellow
skinparam componentBorderColor<<Inner>> Blue

component OuterContainer <<Outer>> {
  component InnerContainer <<Outer>> {
    component A <<Inner>>
    component B <<Inner>>