How to skinparam label?

0 votes
asked Apr 26 in Wanted features by Marco Schmitz

Hi there,

so I use package, label and storage in one diagram.

Using skinparam I can tweak e.g. the font color of each component.

But somehow label seems to be special.

Tweaking doesn't work, and I am missing the documentation on Ashley's PlantUML Doc  as well.

So how can I tweak the font color (within my own theme) for labels?

Cheers,
Marco Schmitz

1 Answer

+1 vote
answered Apr 28 by The-Lu (74,900 points)

Hi M., and all,

For that, you can use style as:

@startuml

<style>
componentDiagram {
  LineThickness 1
  LineColor green
  Fontcolor blue
}
</style>

label label
package package
storage storage

@enduml

Or:

@startuml

<style>
componentDiagram {
  label {
    Fontcolor red
  }
  package {
    Fontcolor blue
  }
  storage {
    Fontcolor green
  }
}
</style>

label label
package package
storage storage

@enduml

See also doc. here:

Enjoy,
Regards,
Th.

commented Apr 29 by anonymous
Hi Th.,

thanks for this.

Didn't know that skinparams aren't the way to go anymore :)

Regards,
Marco Schmitz
...