10

From the documentation its clear of how to color all the arrows using a skinparam and I can change the overall color of a component using colors. Its just unclear to me on how to color the arrows only.

e.g. in the below example how could I make the arrow from component1 to component3 have a different colour

Plant UML Code

@startuml
  [Component1] as 1
  [Component2] as 2
  [Component3] as 3
  1 --> 2
  1 --> 3
@enduml

Resulting Diagram

enter image description here

user1605665
  • 3,771
  • 10
  • 36
  • 54

1 Answers1

30

Add the color within brackets inside the arrow you want colored: 1 -[#blue]-> 3

You can use hex color code as well: #0000FF instead of #blue for example.

@startuml
  [Component1] as 1
  [Component2] as 2
  [Component3] as 3
  1 --> 2
  1 -[#blue]-> 3
@enduml

Result:

enter image description here

Community
  • 1
  • 1
Voicu
  • 16,921
  • 10
  • 60
  • 69