Download ultimate PlantUML Cheatsheet and more Summaries Computer Aided Design (CAD) in PDF only on Docsity! ultimate PlantUML Cheatsheet by Andreas Offenhaeuser v.1f5b1b83 Open Iconic is supported out of the box. Any icon can be rendered by embedding into <&..>. card "<&key> key" card "<size:42><&wrench></size>" key check clock tag Icons can be shown as icon only by disabling the border and background styles. skinparam cardBorderColor none skinparam cardBackgroundColor none skinparam cardShadowing false Icons Custom icons can be added via sprites. There is a collec- tion of sprites for various icons included in the standard library. Additional sets can be loaded from any URL reachable by the rendering server using !includeurl. !include <font-awesome/common> !include <font-awesome/cogs> !define ICONURL https://raw.githubusercontent.com/ tupadr3/plantuml-icon-font-sprites/v2.0.0 !includeurl ICONURL/govicons/submarine.puml FA_COGS(c1, work) #white GOV_SUBMARINE(sub1, Submarine1) #lightblue GOV_SUBMARINE(sub2, , frame, red) { FA_COGS(c2, more work, card, white) #limegreen } more workwork Submarine1 Sprite Icons A list of plantUML components and their names, most can be used in any diagrams. The sequence diagram only supports a subset. actor agent / card / rectangle artifact boundary cloud component control database entity file folder / package frame interface node queue stack storage / usecase Components Text can be spread across multiple lines in components by declaring the text in [ ]. node mynode [ several lines ==== of .... text ] several lines of text also works in a cloud with inline text Multiline Components All combinations of two arrow heads and line type can be used to create any UML arrow type. --|> --* --o --> -->> *--> --# .. -- = -(0- --(0 --+ --^ Arrows For any component style properties can be set via skinparam <Component><Property> <value> Multiple properties for the same component can be grouped skinparam node { BackgroundColor transparent BorderColor black } Component properties: BackgroundColor, BorderColor, BorderThickness, FontColor, FontName, FontSize, FontStyle Generic properties: ArrowColor, ArrowLollipopColor, ArrowThickness, BackgroundColor, DefaultTextAlignment ([left], center, right), Handwritten [false], HyperlinkColor, HyperlinkUn- derline, Monochrome [false], Nodesep (horizontal margin [0]), Padding (text padding within node [0]), Ranksep (vertical margin [0]), RoundCorner, Shadowing The full list of skinparam settings and available colors can be found on the plantUML website. Skinparam Properties