Sunday 7 April 2024

PlantUML: Customize color, font style using style tag in state diagram

You can customiae the color, font styles using <style> command.

styleTag.txt

@startuml

skinparam backgroundColor LightBlue

<style>
stateDiagram {
	StartColor PaleGreen
	EndColor brown
	BorderColor Gray
	FontName Impact
	arrow {
		FontSize 18
		LineColor red
	}
}
</style>

left to right direction

state state1 <<automated>>
state state2 
state state3
state state4
state state5 <<last>>

[*] --> state1
state1 --> state2
state2 --> state3
state3 --> state4
state4 --> state5
state5 --> [*]


@enduml

 

Above snippet generate below diagram.

 


  

Previous                                                    Next                                                    Home

No comments:

Post a Comment