Beyond the universal gen2 bundle, specialized entry points exist for diagrams that benefit from extra tweaks.
!!! info "Source files"
Theme .puml sources live under doubleslash/ in this repository.
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/doubleslash/puml-theme-gen2-system.pumlThe system theme recognises stereotypes for layering:
rectangle "Online Shop System" <<context>> {
rectangle "Web Application" <<container>> {
rectangle "Order Management" <<component>> {
rectangle "Order Service" <<module>> {
rectangle "OrderController.java" <<code>>
}
}
}
}| Stereotype | Typical C4 lens |
|---|---|
<<context>> |
System context |
<<container>> |
Containers |
<<component>> |
Components |
<<module>> |
Modules / subsystems |
<<code>> |
Code-level artefacts |
<<external>> |
External systems / third parties |
Full sample: systemmodel_with_levels.puml (mirror under remote_testing/ with raw URLs).
Wrap with @startgantt … @endgantt and include the Gantt-oriented theme:
@startgantt
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/doubleslash/puml-theme-gen2-gantt.puml
' ...your tasks...
@endganttOlder per-diagram URLs under the repo root (e.g. puml-theme-doubleslash-*.puml, pgantt-theme-doubleslash.puml) still resolve but are deprecated—prefer gen2 URLs from getting-started.md.
Legacy include snippets (collapse)
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-usecase.puml!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-activity.puml!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-system.puml!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-class.puml!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-sequence.puml@startgantt
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/pgantt-theme-doubleslash.puml
...
@endgantt@startmindmap
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-mindmap.puml
...
@endmindmapLegacy bundles under the repo root include doubleslash/padding-eval-gate.puml through puml-theme-doubleslash-general.puml: same behaviour as gen2 (CSS <style> on new JARs, skinparam fallback on older ones).
-
Swap legacy includes for the universal gen2 line or light/dark as needed:
// Old (deprecated) !include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-[type].puml // New (gen2) !include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/doubleslash/doubleslash-gen2.puml
-
Choose light (
doubleslash/light.puml), dark (doubleslash/dark.puml), or universal (doubleslash/doubleslash-gen2.puml).
Integrate themes in your documentation project using mkdocs_puml:
plugins:
- search
- plantuml:
puml_url: https://www.plantuml.com/plantuml/
theme:
url: https://raw.githubusercontent.com/doubleSlashde/umltheme/main/
light: doubleslash/light
dark: doubleslash/darkThis uses the official PlantUML server for rendering and follows your MkDocs / Material palette for light vs dark skins.