Can we format groups or have different styles for group/alt?

0 votes
asked Aug 31 in Wanted features by costateixeira (250 points)
Hi

I am trying to see if groups can have a different background colour than alt boxes.

It seems that background color works on box but not on group.

I don't need custom formatting, just a visual difference between group and alt boxes. Of course if there is a background colour option, then i have more flexibility and can even alternate colours.

Is there a way to do it?

1 Answer

0 votes
answered Sep 5 by plantuml (131,770 points)

Not very documented, but you can have

@startuml
Alice -> Bob: Authentication Request
alt#yellow #blue successful case
    Bob -> Alice: Authentication Accepted
end
@enduml

Is this what you are looking for ?
 

...