Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change border color of participant

Tags:

plantuml

Is it possible to change the border / font colors of a particicular participant without setting it globally using skinparam?

For a particular participant I need to have a different border + font color than defined in skinparam.

like image 514
Alexander Zeitler Avatar asked Oct 28 '25 08:10

Alexander Zeitler


1 Answers

Found a solution in the docs using user defined styles:

skinparam useBetaStyle true

<style>
    ' scope to sequenceDiagram elements
    sequenceDiagram {
     ' define a new style, using CSS class syntax
     .todo {
      FontColor white
      LineColor #52A0DC
      BackgroundColor #52A0DC
     }
     .exists {
      LineColor #a9a9a9
      BackgroundColor #a9a9a9
     }
    }
}
</style>

participant Dockerfile <<todo>>
participant "AWS SSM" as SSM <<exists>>

Result as expected:

enter image description here

like image 181
Alexander Zeitler Avatar answered Oct 31 '25 12:10

Alexander Zeitler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!