主题
通过 Brett Schwarz 的工作, 我们可以从这个链接里获取一系列的主题: the main core library. 因为这些主题都包含在库中,所以它是开箱即用的:因此您不需要在您这边安装任何东西。你只要用这个 !theme 指令:
下述网址列出了PlantUML库中的可用主题:
当然, 你可以用如下命令列出当前plantuml库的自带主题
|
🎉 Copied!
|
![]() |
$success("<msg>")
$failure("<msg>")
$warning("<msg>")
🎉 Copied!
|
![]() |
puml theme foo.puml
其中 foo
是主题的名称。
要调用本地主题,必须使用以下指令:
!theme foo from /path/to/themes/folder
puml-theme-foo.puml
其中foo
是主题的名称。
要使用来自远程资源库的主题,你必须使用以下指令。
!theme amiga from https://raw.githubusercontent.com/plantuml/plantuml/master/themes
如果你发现任何有趣的主题,你也可以提出一个拉动请求,以便我们将这个主题整合到主核心库中。