Skip to content

XaBerr/plantUMLstyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

plantUMLstyle

A style for plantUML

Usage

Dark theme

Code example for dark theme

@startuml
!define DARK
!includeurl https://raw.githubusercontent.com/XaBerr/plantUMLstyle/master/style.plantuml
' your code here
@enduml
@startuml
!define DARK
!includeurl https://raw.githubusercontent.com/XaBerr/plantUMLstyle/master/style.plantuml
abstract class Animal {
  - name: String
  - age: int
  - family: String
  - gender: bool
  --
  + setName()
  + setAge()
  + setFamily()
  + setGender()

  + getName(): String
  + getAge(): int
  + getFamily(): String
  + getGender(): bool

  + eat( food )
}

class Penguin {
  - type: String
  
  + setType()

  + getType(): String
}
note left of Penguin: type can be\n(skipper, soldato, kowasky, riko)

class Cage {
  - size: vector<int, int>
  - maxNumAnimals: int
  
  + setType()
  + setMaxNumAnimals(): vector<int, int>
  
  + getType()
  + getMaxNumAnimals(): int
}

Animal <|-- Penguin
Animal <|-- Cat
Animal <|-- Otter

Animal "a 2..*" o-left-- "c 1..*" Cage
@enduml

zooDark

Light theme

Code example for light theme.

@startuml
!define LIGHT
!includeurl https://raw.githubusercontent.com/XaBerr/plantUMLstyle/master/style.plantuml
' your code here
@enduml
@startuml
!define LIGHT
!includeurl https://raw.githubusercontent.com/XaBerr/plantUMLstyle/master/style.plantuml
abstract class Animal {
  - name: String
  - age: int
  - family: String
  - gender: bool
  --
  + setName()
  + setAge()
  + setFamily()
  + setGender()

  + getName(): String
  + getAge(): int
  + getFamily(): String
  + getGender(): bool

  + eat( food )
}

class Penguin {
  - type: String
  
  + setType()

  + getType(): String
}
note left of Penguin: type can be\n(skipper, soldato, kowasky, riko)

class Cage {
  - size: vector<int, int>
  - maxNumAnimals: int
  
  + setType()
  + setMaxNumAnimals(): vector<int, int>
  
  + getType()
  + getMaxNumAnimals(): int
}

Animal <|-- Penguin
Animal <|-- Cat
Animal <|-- Otter

Animal "a 2..*" o-left-- "c 1..*" Cage
@enduml

zooLight

About

A style for plantUML

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published