Sequence diagram: different skinparam per participant?

0 votes
asked Feb 23, 2022 in Question / help by Tom
Hello!
Is it possible to have different skinparam on diferent participants?
Best Regards.

1 Answer

+1 vote
answered Feb 24, 2022 by Martin (8,360 points)

1) Using Skinparam

@startuml
skinparam ParticipantFontColor<<bob_style>> Red 
skinparam ParticipantFontColor<<alice_style>> Blue 

Participant Bob <<bob_style>>
Participant Alice <<alice_style>>
Bob  -> Alice : hello
@enduml

2) Using STYLE (the replacement for Skinparam)

@startuml
<STYLE>
.bob_style {
  FontColor Red
}
.alice_style {
  FontColor Blue
}
</STYLE>
Participant Bob <<bob_style>>
Participant Alice <<alice_style>>
Bob  -> Alice : hello
@enduml

...