@startuml

' please defined $ThemeToBeChecked before the file is included (sample see TestThemeC4_FirstTest.puml)
' [At]startuml 
' !$UseTheme=C4_FirstTest
' !if %variable_exists("RELATIVE_INCLUDE")
'   !include ./TestThemeTemplate.puml
' !else
'   !include https://gitea.utapp.cn/github-mirrors/C4-PlantUML/raw/branch/ut/percy/TestThemeTemplate.puml
' !endif
' [At]enduml

!$UseTheme?="C4_FirstTest"

' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally
!if %variable_exists("RELATIVE_INCLUDE")
  ' !theme C4_FirstTest from %get_variable_value("RELATIVE_INCLUDE")/themes
  !theme $UseTheme from ./../themes
!else
  !theme $UseTheme from https://gitea.utapp.cn/github-mirrors/C4-PlantUML/raw/branch/ut/themes
!endif

!if %variable_exists("RELATIVE_INCLUDE")
  !include ./TestAllElementsWithLegend.puml
!else
  !include https://gitea.utapp.cn/github-mirrors/C4-PlantUML/raw/branch/ut/percy/TestAllElementsWithLegend.puml
!endif

@enduml
