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

/path/to/themes/folder

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 (63,920 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`:

<style>
  node {
    BackgroundColor palegreen
  }
</style>

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

@startuml
!theme joyce from /themes

title test of local theme
node Node
@enduml

See also doc. here:

See also similar question here:

If that can help,
Regards.

...