How to change default skin?

0 votes
asked Sep 11, 2019 in Question / help by Rüdiger
Hi, I would like to be able to change e.g. the default #FEFECE background color to a different value. For many diagram types this is possible via skinparam but seemingly not for work breakdown structures. Thanks (for an answer and for this incredibly helpful tool!!!)

2 Answers

0 votes
answered Sep 11, 2019 by plantuml (295,000 points)

Well, we are currently thinking about a completely new way of changing colors/fonts.

MindMap diagram and WBS diagram have been choosen as beta tools for this new feature (which will be deployed some days for all diagrams).

You'll find some examples on http://plantuml.com/style-evolution

Since this is still under development, your idea/suggestion are welcome.

A basic example :

@startwbs
<style>
wbsDiagram {
  Linecolor black
  BackgroundColor Red
  FontColor White
  RoundCorner 10
}
</style>
* World
** America
*** Canada
*** Mexico
**** Chihuahua
*** USA
**** Texas
***< New York
** Europe
*** England
*** Germany
*** Spain
@endwbs

commented Sep 12, 2019 by Rüdiger
Thanks, that is better than I hoped for. I will start using it and follow up with you regarding findings and wishes.

Excellent work!
commented Sep 12, 2019 by albert (3,520 points)
edited Sep 12, 2019 by albert

Regarding the part:

<style>
wbsDiagram {
  Linecolor black
  BackgroundColor Red
  FontColor White
  RoundCorner 10
}
</style>

I see it is also possible to use a CSS like syntax i.e. use a colon to separate name and value and a semicolon at the end of the line. I think it would be better to show this as a default.

By accident I typed BackgroundColor: x00ff00; instead of  

BackgroundColor: U00ff00; but I didn't get an error message.

0 votes
answered May 24, 2021 by Mindmapper
Hi there,
thanks for developing Mindmap.
Wrt the OP: for me it would be enough to be able to change the colors etc via the standard way like:

!startsub mindmap
skinparam mindmap {
        BorderColor $WHITE
        FontColor $BLACK
        BackgroundColor $WHITE
}
!endsub

and then "plantuml -Imystyles.puml mindmapdiagram.puml". But this doesn't seem to work currently.
...