Applying themes on nwdiag has no effect

0 votes
asked Aug 31, 2021 in Question / help by benpicco
edited Aug 31, 2021

Hi,

When I add a theme to a network diagram, this has no effect on the output.

@startuml
!theme spacelab
nwdiag {
  network dmz {
      address = "210.x.x.x/24"

      web01 [address = "210.x.x.1"];
      web02 [address = "210.x.x.2"];
  }
}
@enduml

I have tried different themes from https://plantuml.com/en/theme but the only effect I see is that maybe the font spacing or the background changes.

Is it not possible to theme network diagrams?

The same is true when I try to change the LineColor

@startuml
skinparam useBetaStyle true
<style>
nwdiag {
        LineColor #3fa687
}
</style>
nwdiag {
  network dmz {
      address = "210.x.x.x/24"

      web01 [address = "210.x.x.1"];
      web02 [address = "210.x.x.2"];
  }
}
@enduml

It appears as if everything but

skinparam Padding 5

will be ignored

commented Aug 31, 2021 by The-Lu (64,760 points)

Hello B.,

Before use theme on nwdiag...
It is necessary to have the style functionality...
[currently:  it is not possible to theme network diagrams, because it is not yet possible to style network diagrams]

I just ask this wanted feature:

Awaiting the implementation...
Regards,
Th.

1 Answer

0 votes
answered Sep 17, 2021 by The-Lu (64,760 points)

Hello B.

From yesterday, you can now use style with nwdiag, see: 

Thanks to PlantUML team.yes

Then  you can now use theme with nwdiag;
But all the themes are not adapted to nwdiag, it is necessary to update some of them...

Here are some examples:

ThemeOutput
Without theme

amiga 

crt-green

plain
......

yes Thanks a lot to PlantUML team.
If that can help,
Regards,
Th.

...