3

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.

Alexander Zeitler
  • 11,919
  • 11
  • 81
  • 124

1 Answers1

5

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

Alexander Zeitler
  • 11,919
  • 11
  • 81
  • 124