Hello B.,
With new style (v1.2022.2), you can use `--var` variable on style.
Here is an attempt using style:
@startuml
<style>
--packageBackground: #df00df;
package {
BackGroundColor: var(--packageBackground);
}
component {
'BackGroundColor: %darken(var(--packageBackground), 20);
BackGroundColor: %darken("#df00df", 20);
}
</style>
package P
component C
@enduml
But without result, then:
@PlantUML team:
- Could you allow style var (--var) on %building function parameter on style definition?
Thanks for your works,
Regards,
Th.