diff --git a/themes/puml-theme-aws-orange.puml b/themes/puml-theme-aws-orange.puml
index c6f16193b..6acffafbf 100644
--- a/themes/puml-theme-aws-orange.puml
+++ b/themes/puml-theme-aws-orange.puml
@@ -105,6 +105,26 @@ skinparam useBetaStyle false
!$SUCCESS_TEXT = $WHITE
!$WARNING_TEXT = $WHITE
!$DANGER_TEXT = $WHITE
+!$PRIMARY_TEXT = $WHITE
+!$HEADER_TEXT = $WHITE
+''
+!if ($PUML_OUTLINE == "true")
+ !$HEADER_TEXT = $PRIMARY_TEXT
+ !$PRIMARY_TEXT = $PRIMARY_LIGHT
+ !$INFO_TEXT = $INFO_LIGHT
+ !$WARNING_TEXT = $WARNING_LIGHT
+ !$DARK_BG = $PUML_BGCOLOR
+ !$INFO_BG = $PUML_BGCOLOR
+ !$DANGER_BG = $PUML_BGCOLOR
+ !$WARNING_BG = $PUML_BGCOLOR
+ !$SECONDARY_BG = $PUML_BGCOLOR
+!else
+ !$DARK_BG = $DARK
+ !$INFO_BG = $INFO
+ !$DANGER_BG = $DANGER
+ !$WARNING_BG = $WARNING
+ !$SECONDARY_BG = $SECONDARY
+!endif
''
'' Called to make the text in the color of SUCCESS
''
@@ -154,24 +174,6 @@ skinparam useBetaStyle false
!endif
!endprocedure
''
-!if ($PUML_OUTLINE == "true")
- !$HEADER_TEXT = $PRIMARY_TEXT
- !$PRIMARY_TEXT = $PRIMARY_LIGHT
- !$INFO_TEXT = $INFO_LIGHT
- !$WARNING_TEXT = $WARNING_LIGHT
- !$DARK_BG = $PUML_BGCOLOR
- !$INFO_BG = $PUML_BGCOLOR
- !$DANGER_BG = $PUML_BGCOLOR
- !$WARNING_BG = $PUML_BGCOLOR
- !$SECONDARY_BG = $PUML_BGCOLOR
-!else
- !$DARK_BG = $DARK
- !$INFO_BG = $INFO
- !$DANGER_BG = $DANGER
- !$WARNING_BG = $WARNING
- !$SECONDARY_BG = $SECONDARY
-!endif
-''
'' HTTP Methods
''
!_POST = "POST"
@@ -184,10 +186,11 @@ skinparam useBetaStyle false
'' Style settings
''