Element styles
By default all elements are styled as grey boxes.
Styling all elements
To change the style for all elements, add an element style for the Element
tag.
workspace {
model {
a = softwareSystem "A"
b = softwareSystem "B"
c = softwareSystem "C"
a -> b
b -> c
}
views {
systemLandscape {
include *
autolayout lr
}
styles {
element "Element" {
background #1168bd
color #ffffff
shape RoundedBox
}
}
}
}
Styling individual elements
To change the style of an individual element:
- Tag the element.
- Add an element style for that tag.
workspace {
model {
a = softwareSystem "A" {
tags "Tag 1"
}
b = softwareSystem "B"
c = softwareSystem "C"
a -> b
b -> c
}
views {
systemLandscape {
include *
autolayout lr
}
styles {
element "Tag 1" {
background #1168bd
color #ffffff
shape RoundedBox
}
}
}
}
Notes
Please note that element styles are designed to work with the Structurizr cloud service/on-premises installation, and may not be fully supported by the PlantUML, Mermaid, etc export formats.