Customize your diagrams with themes
SwiftPlantUML generates PlantUML scripts and therefore supports its theming capabilities that are well documented. In a nutshell:
- None (default theme)
- Standard themes available in PlantUML
- Local themes
- Themes from the Internet
SwiftPlantUML will add the required !theme
directive if you specify the respective element in your .swiftplantuml.yml
configuration file.
theme: amiga
will result in a generated PlantUML script that contains the !theme
directive
@startuml
!theme amiga
class Example {}
@enduml
No configuration in .swiftplantuml.yml
configuration file is needed.
PlantUML ships with a variety of themes. Some do not work well with class diagrams. Here is a list of examples that DO work well with class diagrams.
The previous default theme from PlantUML.
You cannot set this via .swiftplantuml.yml
configuration as this is technically not a PlantUML theme.
You have to modify the generated PlantUML script and use skin rose
directive.
Example
@startuml
skin rose
class Example {}
@enduml