Friday 19 April 2024

PlantUML: Customize color, font of legend using style tag

Following snippet customize the legend color, font.

<style>

 legend{
  FontColor #red
  FontName Papyrus
  FontSize 24
  FontStyle italic
 }
 
</style>

 

legendColorAndFont.txt

@startuml

<style>

 legend{
  FontColor #red
  FontName Papyrus
  FontSize 24
  FontStyle italic
 }
 
</style>

legend top center
	short legend
	on center
end legend

Client -> LoginServer: Enter user name
Client -> LoginServer: Enter password
Client -> LoginServer: Submit the form 
LoginServer -> ADServer: Check the credentials
ADServer -> LoginServer: Login Successful
LoginServer -> Client: Login Successful

@enduml

 

Above snippet generate below diagram.

 


 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment