How to use local theme colors?

0 votes
asked Jun 7, 2022 in Question / help by Joyce
I followed the instructions but was not able to generate my own colors


If my source code is in D:\Git\Repo\Project1

Where should my puml-theme-joyce.puml file sit?

1 Answer

0 votes
answered Jun 9, 2022 by The-Lu (67,080 points)

Hello J.,

You can put your theme as you as, according to the accurate folder definition on the `!theme` command.

For example, if:
Your theme file `puml-theme-joyce.puml` is on the folder `D:\Git\Repo\Project1\themes`:

  node {
    BackgroundColor palegreen

You can call this theme from your puml file `file-to-test-theme.puml` of the folder `D:\Git\Repo\Project1`, as:

!theme joyce from /themes

title test of local theme
node Node

See also doc. here:

See also similar question here:

If that can help,