@startuml !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml ' Update the generic boundary style and the "system", "enterprise", "container" boundaries styles too UpdateBoundaryStyle($bgColor="gold", $fontColor="brown", $borderColor="brown") ' (Re-)Updates the system boundary styles; re-set $bgColor avoids '(no back color)' in legend too UpdateSystemBoundaryStyle($bgColor="gold", $fontColor="white", $borderColor="white") Boundary(b, "A Boundary") { } Container_Boundary(cb, "A Container Boundary") { } System_Boundary(sb, "A System Boundary") { } ' defines a new border style incl. new border type AddBoundaryTag("repository", $bgColor="green", $fontColor="white", $borderColor="white", $shadowing="true", $shape = RoundedBoxShape(), $type="GitHub repository") Boundary(c4Respository, "plantuml-stdlib/C4-PlantUML", $tags="repository") { Component(readMe, "README.md", "Markdown") } ' boundary tags are internally extended with '_boundary' that it uses a different name space ' this enables different element and boundary styles for the same tag name AddBoundaryTag("v1", $bgColor="lightgreen", $fontColor="green", $borderColor="green") AddElementTag("v1", $bgColor="lightred", $fontColor="red", $borderColor="red") Boundary(anotherBoundary, "Another Boundary", $type="BOUNDARY TYPE", $tags="v1") { Component(anotherComponent, "Another Component", $techn="COMPONENT TYPE", $tags="v1", $descr="Component and boundary use different tag name spaces that both v1 tags can use different styles") } Lay_R(b, cb) Lay_R(cb, sb) Lay_D(b, c4Respository) Lay_R(c4Respository, anotherBoundary) SHOW_LEGEND() @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
🎉 Discover the future PlantUML Web Editor! 🚀
PNG
SVG
ASCII Art