forked from Drakemor/RedDress-PlantUML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.puml
267 lines (217 loc) · 3.96 KB
/
style.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
@startuml
!if (%not(%variable_exists("$FONTNAME")))
!$FONTNAME = "Verdana"
!endif
!if (%not(%variable_exists("$FONTSIZE")))
!$FONTSIZE = 11
!endif
!ifdef DARKBLUE
skinparam backgroundColor 777
!$ACCENT = "1a66c2"
!$ACCENTDARK = "002642"
skinparam stereotypeCBackgroundColor $ACCENT
!define DARKSTYLE
!endif
!ifdef LIGHTBLUE
!$ACCENT = "2a86e2"
!$ACCENTDARK = "1a66c2"
skinparam stereotypeCBackgroundColor $ACCENTDARK
!define LIGHTSTYLE
!endif
!ifdef DARKRED
!$ACCENT = "880000"
!$ACCENTDARK = "330000"
skinparam stereotypeCBackgroundColor $ACCENT
!define DARKSTYLE
!endif
!ifdef LIGHTRED
!$ACCENT = "CC0033"
!$ACCENTDARK = "AA0033"
skinparam stereotypeCBackgroundColor $ACCENTDARK
!define LIGHTSTYLE
!endif
!ifdef DARKGREEN
!$ACCENT = "228811"
!$ACCENTDARK = "113300"
skinparam stereotypeCBackgroundColor $ACCENT
!define DARKSTYLE
!endif
!ifdef LIGHTGREEN
!$ACCENT = "55BB33"
!$ACCENTDARK = "338822"
skinparam stereotypeCBackgroundColor $ACCENTDARK
!define LIGHTSTYLE
!endif
!ifdef DARKORANGE
!$ACCENT = "BB6600"
!$ACCENTDARK = "662200"
skinparam stereotypeCBackgroundColor $ACCENT
!define DARKSTYLE
!endif
!ifdef LIGHTORANGE
!$ACCENT = "FF8800"
!$ACCENTDARK = "BB6600"
skinparam stereotypeCBackgroundColor $ACCENT
!define LIGHTSTYLE
!endif
!ifdef LIGHTSTYLE
!$PRIMARYFONTCOLOR = "000"
!$SECONDARY = "333"
!$ARROWCOLOR = "000"
!$ARROWFONTCOLOR = "333"
!$BORDERCOLOR = "aaa"
!$BOXBG = "ccc"
!$LIGHTBORDERCOLOR = "cccccc"
!$LIGHTBG = "e0e0e0"
skinparam backgroundColor fff
!endif
!ifdef DARKSTYLE
!$PRIMARYFONTCOLOR = "fff"
!$SECONDARY = "aaa"
!$ARROWCOLOR = "fff"
!$ARROWFONTCOLOR = "bbb"
!$BORDERCOLOR = "1b1b1b"
!$BOXBG = "2e2e2e"
!$LIGHTBORDERCOLOR = "767676"
!$LIGHTBG = "575757"
skinparam backgroundColor 777
!endif
!procedure font_style()
fontColor $PRIMARYFONTCOLOR
fontName $FONTNAME
fontSize $FONTSIZE
stereotypeFontColor $SECONDARY
stereotypeFontSize $FONTSIZE
!endprocedure
!procedure basic_style()
backgroundColor $BOXBG
borderColor $BORDERCOLOR
!endprocedure
!procedure light_style()
backgroundColor $LIGHTBG
borderColor $LIGHTBORDERCOLOR
!endprocedure
!procedure accent_style()
backgroundColor $ACCENT
borderColor $ACCENTDARK
!endprocedure
!procedure arrow_style()
arrowColor $ARROWCOLOR
arrowFontName $FONTNAME
arrowFontColor $ARROWFONTCOLOR
arrowFontSize $FONTSIZE
!endprocedure
' Class diagrams
skinparam circledCharacter {
radius 8
fontSize $FONTSIZE
fontName $FONTNAME
}
skinparam class {
basic_style()
font_style()
arrow_style()
attributeFontColor $SECONDARY
attributeFontSize $FONTSIZE
attributeIconSize $FONTSIZE
}
' Sequence diagrams
skinparam actor {
accent_style()
font_style()
}
skinparam participant {
basic_style()
font_style()
}
skinparam collections {
basic_style()
font_style()
}
skinparam SequenceBox{
light_style()
font_style()
}
' Component diagrams
skinparam interface {
accent_style()
font_style()
}
skinparam component {
basic_style()
font_style()
}
skinparam node {
basic_style()
font_style()
}
skinparam database {
basic_style()
font_style()
}
skinparam queue {
basic_style()
font_style()
}
' Use Case diagrams
skinparam usecase {
basic_style()
font_style()
arrow_style()
}
skinparam activity {
basic_style()
font_style()
arrow_style()
}
skinparam sequence {
font_style()
arrow_style()
lifeLineBorderColor $ACCENT
lifeLineBackgroundColor $LIGHTBG
}
skinparam boundary {
accent_style()
font_style()
}
skinparam control {
accent_style()
font_style()
}
skinparam entity {
accent_style()
font_style()
}
' State diagrams
skinparam state {
basic_style()
font_style()
arrow_style()
startColor $ACCENT
endColor $ACCENTDARK
}
' Object diagrams
skinparam object {
basic_style()
font_style()
arrow_style()
}
' Common
skinparam note {
accent_style()
font_style()
}
skinparam cloud {
basic_style()
font_style()
arrow_style()
}
skinparam rectangle {
basic_style()
font_style()
}
skinparam storage {
basic_style()
font_style()
}
@enduml