If you want you could define stereotype specific styles too (base idea is used in C4-PlantUML too).
BR Helmut
@startuml
!pragma teoz true
<style>
box {
LineColor #blue
LineThickness 5
LineStyle 15-5
.system_boundary {
LineColor #6b254b
LineThickness 3
LineStyle 5-5
FontColor #6b254b
BackgroundColor transparent
BorderColor #6b254b
}
}
</style>
skinparam sequencebox<<container_boundary>> {
FontColor #d7a538
BackgroundColor transparent
BorderColor #d7a538
BorderStyle dashed
}
participant c1
box "API Application\n<size:12>[Container]</size>" <<container_boundary>><<boundary>>
participant c2
box "API Application\n<size:12>[System]</size>" <<system_boundary>><<boundary>>
participant c3
end box
participant c4
end box
c1 -> c2 : call
c2 -> c3 : call
c3 -> c4 : call
hide stereotype
@enduml