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
MIT License
6.41k stars 1.1k forks source link

Include / link to mweagle/C4-PlantUML-Themes #303

Closed Potherca closed 1 year ago

Potherca commented 1 year ago

As mentioned by @mweagle in https://github.com/plantuml-stdlib/C4-PlantUML/issues/295#issuecomment-1511620596, 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.

kirchsth commented 1 year ago

@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)

mweagle commented 1 year ago

Thanks @kirchsth - I'll update the include.

kirchsth commented 1 year ago

@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.