Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

How do I style Use Cases

0 votes

I'm creating Use Cases that I would like to style.  If I do the following I get an orange background in the ellipse, as expected.

     (Node) as n #orange

How do I control the borderColor on an instance?  I've looked all over the place and can't see a single example of setting background and bordercolor

I've also tried using skinparam like this:

skinparam usecase {
  BackgroundColor DeepSkyBlue
  ArrowColor DodgerBlue
  BackgroundColor<<Share>> orange
  BackgroundColor<<Share>> DarkOrange


However, if I define the node as:

           (Node) as p1 <<Share>>

While the colors are correct, it shows the text with <<Share>>, which I don't want.  I tried adding "hide stereotype" in the document but it did not work.

Is there any way to get rid of this?

Btw, I'm only using the Use Case because I like the small ellipse shapes with minimal text. I'm actually using them to represent instances of objects in a graph. If there was a way to use other diagram types and replicate this look that would allow better styling, that would be fine too.


asked Jan 7 by mark (160 points)
edited Jan 7 by mark

1 Answer

+1 vote
Best answer


With last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

usecase foo #orange;line:blue
(dummy) #orange;line:yellow

This syntax works in some other place but is not well documented yet.

We have to look on the "hide stereotype" thinks also.

Tell us if you find issues!

answered Jan 8 by plantuml (117,910 points)
selected Jan 18 by mark
Thank you!  It works great.  Any idea when this will be out of beta?  The reason I ask is that plantuml.jar comes bundled with the plugins I use to render it in various editors.  For now, I went into Atom's markdown-preview-enhanced and swapped out the beta, but it may get overwritten the next time the plugin is updated.
An official release will be probably pushed within next 10 days, a message will be posted here when done
Fantastic.  Thanks again for your help and this great product!
Version 8054 has been published with the new code.
Support This Project Offer 250 Mo! Follow PlantUML on Twitter