Skip to content

Guide to PlantUml Diagrams

PlantUml Documents

  • Reference Manual
  • Local Configuration and styling
    • See file docs/contents/assets/plantuml/config.cfg
    • See file docs/contents/assets/plantuml/style.iuml

Using Style

@startuml
'!include data/docs/contents/assets/plantuml/style.iuml

class AClass {
  +int attr: String
  +method(p: Int): Double
}
@enduml

uml diagram

Color palette

Using C4

@startuml C4_elements
!include <C4/C4_Container>
title
= Sample C4 Shapes

end title
Person(personAlias, "Label", "Optional Description")
Container(containerAlias, "Label", "Technology", "Optional Description")
System(systemAlias, "Label", "Optional Description")
System_Boundary(c1, "Sample System") {
  Rel(personAlias, containerAlias, "Label", "Optional Technology")
}
@enduml

uml diagram

See Sample Diagrams

uml diagram

uml diagram

C4 Sequence

uml diagram

Comments