forked from vapor-community/HTMLKit-Components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProperties.swift
220 lines (176 loc) · 5.26 KB
/
Properties.swift
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
import HTMLKit
public enum FlowDirection: String {
case vertical = "direction:vertical"
case horizontal = "direction:horizontal"
}
public enum TextAlignment: String {
case left = "alignment:left"
case center = "alignment:center"
case right = "alignment:right"
}
public enum ColumnSize: String {
case one = "size:1"
case two = "size:2"
case three = "size:3"
case four = "size:4"
case five = "size:5"
case six = "size:6"
case seven = "size:7"
case eight = "size:8"
case nine = "size:9"
case ten = "size:10"
case eleven = "size:11"
case twelve = "size:12"
}
public enum ForegroundColor: String {
case black = "color:black"
case blue = "color:blue"
case brown = "color:brown"
case cyan = "color:cyan"
case gray = "color:gray"
case green = "color:green"
case indigo = "color:indigo"
case mint = "color:mint"
case orange = "color:orange"
case pink = "color:pink"
case purple = "color:purple"
case red = "color:red"
case teal = "color:teal"
case white = "color:white"
case yellow = "color:yellow"
case silver = "color:silver"
case highlight = "color:highlight"
case primary = "color:primary"
case secondary = "color:secondary"
}
public enum FontSize: String {
case small = "size:small"
case medium = "size:medium"
case large = "size:large"
}
public enum TextTransformation: String {
case uppercase = "transformation:uppercase"
case lowercase = "transformation:lowercase"
case capitalize = "transformation:capitalize"
}
public enum FontWeight: String {
case regular = "weight:regular"
case black = "weight:black"
case heavy = "weight:heavy"
case bold = "weight:bold"
case light = "weight:light"
case medium = "weight:medium"
case semibold = "weight:semibold"
case thin = "weight:thin"
case ultraLight = "weight:ultralight"
}
public enum TextDecoration: String {
case underline = "decoration:underline"
case overline = "decoration:overline"
case strikeThrough = "decoration:strikethrough"
case none = "decoration:none"
}
public enum FontStyle: String {
case italic = "style:italic"
case oblique = "style:oblique"
}
public enum BackgroundColor: String {
case black = "background:black"
case blue = "background:blue"
case brown = "background:brown"
case transparent = "background:transparent"
case cyan = "background:cyan"
case gray = "background:gray"
case green = "background:green"
case indigo = "background:indigo"
case mint = "background:mint"
case orange = "background:orange"
case pink = "background:pink"
case purple = "background:purple"
case red = "background:red"
case teal = "background:teal"
case white = "background:white"
case yellow = "background:yellow"
case silver = "background:silver"
case highlight = "background:highlight"
case primary = "background:primary"
case secondary = "background:secondary"
}
public enum ObjectFit: String {
case contain = "fit:contain"
case cover = "fit:cover"
case fill = "fit:fill"
case scaleDown = "fit:scaledown"
case none = "fit:none"
}
public enum OpacityValue: String {
case intransparent = "opacity:intransparent"
case transparent = "opacity:transparent"
}
public enum ButtonStyle: String {
case primary = "style:primary"
case secondary = "style:secondary"
case outline = "style:outline"
case ghost = "style:ghost"
}
public enum ColumnOffset: String {
case one = "offset:1"
case two = "offset:2"
case three = "offset:3"
case four = "offset:4"
case five = "offset:5"
case six = "offset:6"
case seven = "offset:7"
case eight = "offset:8"
case nine = "offset:9"
case ten = "offset:10"
case eleven = "offset:11"
}
public enum ImageScale: String {
case small = "scale:small"
case medium = "scale:medium"
case large = "scale:large"
}
public enum ClipShape: String {
case cirle = "shape:circle"
case rectangle = "shape:rectangle"
}
public enum PositionIndex: String {
case one = "zindex:1"
case two = "zindex:2"
case three = "zindex:3"
case four = "zindex:4"
case five = "zindex:5"
}
public enum TextStyle: String {
case title = "style:title"
case headline = "style:headline"
case subheadline = "style:subheadline"
case body = "style:body"
case callout = "style:callout"
case caption = "style:caption"
case footnote = "style:footnote"
case code = "style:code"
}
public enum VerticalAlignment: String {
case top = "alignment:top"
case center = "alignment:center"
case bottom = "alignment:bottom"
case baseline = "alignment:baseline"
}
public enum HorizontalAlignment: String {
case leading = "alignment:leading"
case center = "alignment:center"
case trailing = "alignment:trailing"
}
public enum ContentSpace: String {
case around = "space:around"
case between = "space:between"
case evenly = "space:evenly"
}
public enum SyntaxHighlight: String {
case plaintext = "hightlight:plaintext"
case html = "hightlight:html"
case css = "hightlight:css"
case javascript = "hightlight:javascript"
}