7

It is possible to style the class name in PlantUML to italic by making the class abstract. Is there a way to style the class name so that it is bold as in the example class below?

Bold class name

2 Answers 2

8

you can put the name of the class between "** and **".

Example:

@startuml

class **House** {

}

@enduml
Sign up to request clarification or add additional context in comments.

1 Comment

Excellent. But is there a way to get this systematically, i.e. using skinparam ?
5

There is work now to support styles (check the PlantUML Q&A forum for more info).

@startuml
<style>
classDiagram {
  class {
      ' attributes and methods
      FontColor blue
      BackgroundColor yellow
      ' class name
      header {
        FontSize 20
        FontColor violet
        FontStyle bold
      }
  }
}
</style>

hide circle

class User {
  name : String
  id : integer
  toString() : String
}

@enduml

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.