@startuml !function $nl() ' with workaround is working !return %breakline() ' orig implementation with %newline() is not working ' !return %newline() !endfunction !function $elementTagSkinparams($element, $tagStereo, $fontColor) !$elementSkin = "skinparam " + $element + "<<" + $tagStereo + ">> {" + %newline() !if ($fontColor != "") !$elementSkin = $elementSkin + " StereotypeFontColor " + $fontColor + %newline() !$elementSkin = $elementSkin + " FontColor " + $fontColor + %newline() !endif !$elementSkin = $elementSkin + "}" + %newline() !return $elementSkin !endfunction ' label colors cannot be set via skinparam use style !function $labelElementTagSkinparams($tagStereo, $bgColor) !$tagSkin = $nl() + "<style>" + $nl() ' componentDiagram { !$tagSkin = $tagSkin + " label {" + $nl() !$tagSkin = $tagSkin + " ." + $tagStereo + " {" + $nl() !$tagSkin = $tagSkin + " StereotypeFontColor " + $bgColor + $nl() !$tagSkin = $tagSkin + " Fontcolor " + $bgColor + $nl() !$tagSkin = $tagSkin + " }" + $nl() !$tagSkin = $tagSkin + " }" + $nl() ' } !$tagSkin = $tagSkin + "</style>" + $nl() !return $tagSkin !endfunction !unquoted procedure $defineSkinparams($tagStereo, $bgColor, $fontColor) ' skinparam works based on updated server implementation !$tagSkin = $elementTagSkinparams("rectangle", $tagStereo, $fontColor) !$tagSkin = $tagSkin + $elementTagSkinparams("package", $tagStereo, $fontColor) ' style does not work, %newline() is not supported anymore !$tagSkin = $tagSkin + $labelElementTagSkinparams($tagStereo, $bgColor) $tagSkin !endprocedure $defineSkinparams("red", white, red) $defineSkinparams("blueboundary", white, blue) $defineSkinparams("bluelabel", blue, white) [C] rectangle r <<red>> { } label "LABEL" as l <<bluelabel>> package p <<blueboundary>> { } @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
🎉 Discover the future PlantUML Web Editor! 🚀
PNG
SVG
ASCII Art