Set a Default Diagram Style

Last modified by Vincent Massol on 2026/11/23 22:43

Steps

PlantUML Macro 2.6+ Give all the PlantUML diagrams of the wiki the same look, for example a theme and an accessible color palette, without repeating it in each diagram. How the style applies is explained in PlantUML.

  1. Open the wiki administration and go to the "PlantUML" section, added by the PlantUML Administration extension.
  2. In "Default Diagram Style", enter the PlantUML lines to insert at the top of every diagram, for example:
    !theme bluegray
    skinparam ArrowColor #0568AE
    skinparam participant {
      BackgroundColor #0568AE
      FontColor #FFFFFF
    }

    PlantUML section of the wiki administration with the Default Diagram Style field highlighted

  3. Click "Save".
  4. View a page holding a PlantUML diagram that doesn't set its own !theme. The diagram uses the default style.

    Sequence diagram drawn with the bluegray theme and blue participants set by the default style

Related

Get Connected