plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include / link to mweagle/C4-PlantUML-Themes

Potherca opened this issue · comments

As mentioned by @mweagle in #295 (comment), we might want to add / link to the themes there.

Thanks for adding theme support! I've published a handful of themes based on ColorBrewer and Seaborn palettes to https://github.com/mweagle/C4-PlantUML-Themes if you're interested in including/linking. Thanks again.

@mweagle themes can be used with a !theme line like below.

@startuml

!theme cb_seq_OrRd_9 from https://raw.githubusercontent.com/mweagle/C4-PlantUML-Themes/main/palettes

!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
Person(personAlias, "Label", "Optional Description")
Container(containerAlias, "Label", "Technology", "Optional Description")
System(systemAlias, "Label", "Optional Description")
Rel(personAlias, containerAlias, "Label", "Optional Technology")
@enduml

A list of all possible themes see.
The corresponding theme name is without puml-theme- and .puml (e.g. file puml-theme-cb_seq_Blues_9.puml corresponds to theme cb_seq_Blues_9)

Thanks @kirchsth - I'll update the include.

@mweagle: The next PlantUML v1.2023.8 supports calculated themes and stdlib themes (details see forum). I will update our docu. Maybe you want to use the feature via the already existing PlantUML v1.2023.8 beta.