Monday 28 August 2023

How to Change the Font and Colors in PlantUML Class Diagrams with skinparam?

‘skinparam’ command is used to customize the font and colors in a diagram.


customizeColor.txt

@startuml

skinparam class {
	BackgroundColor LightBlue
	ArrowColor Tomato
	BorderColor SpringGreen
}

abstract class Mammal

Class Dog <<Animal>>
class BullDog
class Poodle
class Beagle

class Cat  <<Animal>>
class PersianCat
class Ragdoll

Mammal <|-- Cat
Mammal <|-- Dog

Dog <|-- BullDog
Dog <|-- Poodle
Dog <|-- Beagle

Cat <|-- PersianCat
Cat <|-- Ragdoll

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment