-
Notifications
You must be signed in to change notification settings - Fork 3
/
puml-theme-cb_div_RdGy_9.puml
163 lines (135 loc) · 5.33 KB
/
puml-theme-cb_div_RdGy_9.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
' Metadata
' Created: 2023-05-02 23:42:45.567817+00:00
!$COLOR_TEXT_FALLBACK_COLOR ?= "#000000"
!$COLOR_BORDER_COLOR="#000000"
' HEADER
!$DEFAULT_NORMAL_FONT_SIZE ?= 12
!$DEFAULT_SMALL_FONT_SIZE ?= 8
' stereotype and technology font size
!$STEREOTYPE_FONT_SIZE ?= $DEFAULT_NORMAL_FONT_SIZE
!$TECHN_FONT_SIZE ?= $DEFAULT_NORMAL_FONT_SIZE
!$ARROW_FONT_SIZE ?= $DEFAULT_NORMAL_FONT_SIZE
' (default) boundary related colors and style
!$BOUNDARY_COLOR ?= $COLOR_BORDER_COLOR
!$BOUNDARY_BG_COLOR ?= "solid"
!$BOUNDARY_BORDER_STYLE ?= "dashed"
' THEME COLORS
!$THEME = "cb_div_RdGy_9"
!function $textcolor($bgColor)
!if $bgColor == $COLOR_INDEX_0 || $bgColor == $COLOR_INDEX_1 || $bgColor == $COLOR_INDEX_2 || $bgColor == $COLOR_INDEX_3
!return $COLOR_INDEX_8
!elseif $bgColor == $COLOR_INDEX_6 || $bgColor == $COLOR_INDEX_7 || $bgColor == $COLOR_INDEX_8
!return $COLOR_INDEX_0
!elseif %is_light($bgColor)
!return "#222222"
!elseif %is_dark($bgColor)
!return "#dddddd"
!else
!return $COLOR_TEXT_FALLBACK_COLOR
!endif
!endfunction
!$COLOR_INDEX_0="#B2182B"
!$COLOR_INDEX_1="#D6604D"
!$COLOR_INDEX_2="#F4A582"
!$COLOR_INDEX_3="#FDDBC7"
!$COLOR_INDEX_4="#FFFFFF"
!$COLOR_INDEX_5="#E0E0E0"
!$COLOR_INDEX_6="#BABABA"
!$COLOR_INDEX_7="#878787"
!$COLOR_INDEX_8="#4D4D4D"
!$COLOR_TEXT_LIGHT=$COLOR_INDEX_0
!$COLOR_TEXT_DARK=$COLOR_INDEX_8
!$COLOR_TEXT_NEUTRAL=$textcolor($COLOR_INDEX_4)
!$COLOR_REL_COLOR=$textcolor($COLOR_INDEX_8)
' person related colors
!$PERSON_BG_COLOR ?= $COLOR_INDEX_8
!$PERSON_FONT_COLOR ?= $textcolor($PERSON_BG_COLOR)
!$PERSON_BORDER_COLOR ?= $COLOR_BORDER_COLOR
' external person related colors
!$EXTERNAL_PERSON_BG_COLOR ?= $COLOR_INDEX_7
!$EXTERNAL_PERSON_FONT_COLOR ?= $textcolor($EXTERNAL_PERSON_BG_COLOR)
!$EXTERNAL_PERSON_BORDER_COLOR ?= $COLOR_BORDER_COLOR
' system related colors
!$SYSTEM_BG_COLOR ?= $COLOR_INDEX_6
!$SYSTEM_FONT_COLOR ?= $textcolor($SYSTEM_BG_COLOR)
!$SYSTEM_BORDER_COLOR ?= $COLOR_BORDER_COLOR
' external system related colors
!$EXTERNAL_SYSTEM_BG_COLOR ?= $COLOR_INDEX_4
!$EXTERNAL_SYSTEM_FONT_COLOR ?= $textcolor($EXTERNAL_SYSTEM_BG_COLOR)
!$EXTERNAL_SYSTEM_BORDER_COLOR ?= $COLOR_BORDER_COLOR
' container related colors
!$CONTAINER_BG_COLOR ?= $COLOR_INDEX_3
!$CONTAINER_FONT_COLOR ?= $textcolor($CONTAINER_BG_COLOR)
!$CONTAINER_BORDER_COLOR ?= $COLOR_BORDER_COLOR
' external container related colors
!$EXTERNAL_CONTAINER_BG_COLOR ?= $COLOR_INDEX_2
!$EXTERNAL_CONTAINER_FONT_COLOR ?= $textcolor($EXTERNAL_CONTAINER_BG_COLOR)
!$EXTERNAL_CONTAINER_BORDER_COLOR ?= $COLOR_BORDER_COLOR
' component related colors
!$COMPONENT_BG_COLOR ?= $COLOR_INDEX_1
!$COMPONENT_FONT_COLOR ?= $textcolor($COMPONENT_BG_COLOR)
!$COMPONENT_BORDER_COLOR ?= $COLOR_BORDER_COLOR
' external component related colors
!$EXTERNAL_COMPONENT_BG_COLOR ?= $COLOR_INDEX_0
!$EXTERNAL_COMPONENT_FONT_COLOR ?= $textcolor($EXTERNAL_COMPONENT_BG_COLOR)
!$EXTERNAL_COMPONENT_BORDER_COLOR ?= $COLOR_BORDER_COLOR
' node related colors
!$NODE_BG_COLOR ?= $COLOR_INDEX_5
!$NODE_FONT_COLOR ?= $textcolor($NODE_BG_COLOR)
!$NODE_BORDER_COLOR ?= $COLOR_BORDER_COLOR
' legend colors and sizes
!$LEGEND_TITLE_COLOR ?= $textcolor($COLOR_INDEX_5)
!$LEGEND_FONT_COLOR ?= $textcolor($COLOR_INDEX_5)
!$LEGEND_BG_COLOR ?= $COLOR_INDEX_5
!$LEGEND_BORDER_COLOR ?= $COLOR_INDEX_5
!$LEGEND_DARK_COLOR ?= $COLOR_TEXT_DARK
!$LEGEND_LIGHT_COLOR ?= $COLOR_TEXT_LIGHT
' sketch related colors, font and texts
!$SKETCH_FONT_COLOR ?= $COLOR_INDEX_8
!$SKETCH_WARNING_COLOR ?= $COLOR_INDEX_0
' FOOTER
' default text color of all elements
!$ELEMENT_FONT_COLOR ?= $COLOR_TEXT_FALLBACK_COLOR
' arrow related colors and text size
!$ARROW_COLOR ?= $COLOR_TEXT_FALLBACK_COLOR
!$ARROW_FONT_COLOR ?= $COLOR_TEXT_FALLBACK_COLOR
' system boundary related colors and style
!$SYSTEM_BOUNDARY_COLOR ?= %darken($SYSTEM_BG_COLOR, 33)
!$SYSTEM_BOUNDARY_BG_COLOR ?= $BOUNDARY_BG_COLOR
!$SYSTEM_BOUNDARY_BORDER_STYLE ?= $BOUNDARY_BORDER_STYLE
' enterprise boundary related colors and style
!$ENTERPRISE_BOUNDARY_COLOR ?= $BOUNDARY_COLOR
!$ENTERPRISE_BOUNDARY_BG_COLOR ?= $BOUNDARY_BG_COLOR
!$ENTERPRISE_BOUNDARY_BORDER_STYLE ?= $BOUNDARY_BORDER_STYLE
' container boundary related colors and style
!$CONTAINER_BOUNDARY_COLOR ?= %darken($CONTAINER_BG_COLOR, 33)
!$CONTAINER_BOUNDARY_BG_COLOR ?= $BOUNDARY_BG_COLOR
!$CONTAINER_BOUNDARY_BORDER_STYLE ?= $BOUNDARY_BORDER_STYLE
' Sketch related settings
!$LEGEND_DETAILS_SMALL_SIZE ?= $DEFAULT_SMALL_FONT_SIZE
!$LEGEND_DETAILS_NORMAL_SIZE ?= $DEFAULT_NORMAL_FONT_SIZE
' legend related texts
!$LEGEND_SHADOW_TEXT ?= "shadow"
!$LEGEND_NO_SHADOW_TEXT ?= "no shadow"
!$LEGEND_NO_FONT_BG_TEXT ?= "last text and back color"
!$LEGEND_NO_FONT_TEXT ?= "last text color"
!$LEGEND_NO_BG_TEXT ?= "last back color"
!$LEGEND_NO_LINE_TEXT ?= "last line color"
!$LEGEND_ROUNDED_BOX ?= "rounded box"
!$LEGEND_EIGHT_SIDED ?= "eight sided"
!$LEGEND_DOTTED_LINE ?= "dotted"
!$LEGEND_DASHED_LINE ?= "dashed"
!$LEGEND_BOLD_LINE ?= "bold"
!$LEGEND_BOUNDARY ?= "boundary"
!$LEGEND_DASHED_BOUNDARY ?= "dashed"
' transparent is ignored, produces smaller legends
' !$LEGEND_DASHED_TRANSPARENT_BOUNDARY ?= "dashed, transparent"
!$LEGEND_DASHED_TRANSPARENT_BOUNDARY ?= "dashed"
' Sketch
!$SKETCH_BG_COLOR ?= "transparent"
!$SKETCH_FONT_NAME ?= "Gochi Hand"
!$SKETCH_FOOTER_WARNING ?= "Warning:"
!$SKETCH_FOOTER_TEXT ?= "Created for discussion, needs to be validated"
' size of rectangle shape corner markers
!$ROUNDED_BOX_SIZE ?= 25
!$EIGHT_SIDED_SIZE ?= 18