brandsync-tokens 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/tokens.css +1 -1
- package/dist/json/components.json +173 -0
- package/dist/json/primitives.json +1012 -0
- package/dist/json/semantics.json +245 -0
- package/dist/swift/BrandsyncTheme.swift +542 -0
- package/dist/swift/BrandsyncToken.swift +925 -0
- package/package.json +4 -2
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
//
|
|
2
|
+
// BrandsyncTheme.swift
|
|
3
|
+
// Do not edit directly, this file was auto-generated.
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
import UIKit
|
|
7
|
+
|
|
8
|
+
/// Central theme access point.
|
|
9
|
+
/// Colors automatically adapt to light/dark mode via UIColor(dynamicProvider:).
|
|
10
|
+
/// Usage: BrandsyncTheme.shared.colors.colorPrimaryDefault
|
|
11
|
+
public final class BrandsyncTheme {
|
|
12
|
+
public static let shared = BrandsyncTheme()
|
|
13
|
+
private init() {}
|
|
14
|
+
public let colors = Colors()
|
|
15
|
+
public let spacing = Spacing()
|
|
16
|
+
public let sizing = Sizing()
|
|
17
|
+
public let border = Border()
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// MARK: - Colors
|
|
21
|
+
extension BrandsyncTheme {
|
|
22
|
+
public struct Colors {
|
|
23
|
+
public var colorPrimaryDefault: UIColor {
|
|
24
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
25
|
+
? BrandsyncToken.Dark.colorPrimaryDefault
|
|
26
|
+
: BrandsyncToken.Semantics.colorPrimaryDefault })
|
|
27
|
+
}
|
|
28
|
+
public var colorPrimaryPressed: UIColor {
|
|
29
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
30
|
+
? BrandsyncToken.Dark.colorPrimaryPressed
|
|
31
|
+
: BrandsyncToken.Semantics.colorPrimaryPressed })
|
|
32
|
+
}
|
|
33
|
+
public var colorPrimaryContainer: UIColor {
|
|
34
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
35
|
+
? BrandsyncToken.Dark.colorPrimaryContainer
|
|
36
|
+
: BrandsyncToken.Semantics.colorPrimaryContainer })
|
|
37
|
+
}
|
|
38
|
+
public var colorNeutralDefault: UIColor {
|
|
39
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
40
|
+
? BrandsyncToken.Dark.colorNeutralDefault
|
|
41
|
+
: BrandsyncToken.Semantics.colorNeutralDefault })
|
|
42
|
+
}
|
|
43
|
+
public var colorNeutralPressed: UIColor {
|
|
44
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
45
|
+
? BrandsyncToken.Dark.colorNeutralPressed
|
|
46
|
+
: BrandsyncToken.Semantics.colorNeutralPressed })
|
|
47
|
+
}
|
|
48
|
+
public var colorNeutralContainer: UIColor {
|
|
49
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
50
|
+
? BrandsyncToken.Dark.colorNeutralContainer
|
|
51
|
+
: BrandsyncToken.Semantics.colorNeutralContainer })
|
|
52
|
+
}
|
|
53
|
+
public var colorNeutralContainerPressed: UIColor {
|
|
54
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
55
|
+
? BrandsyncToken.Dark.colorNeutralContainerPressed
|
|
56
|
+
: BrandsyncToken.Semantics.colorNeutralContainerPressed })
|
|
57
|
+
}
|
|
58
|
+
public var colorAccentDefault: UIColor {
|
|
59
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
60
|
+
? BrandsyncToken.Dark.colorAccentDefault
|
|
61
|
+
: BrandsyncToken.Semantics.colorAccentDefault })
|
|
62
|
+
}
|
|
63
|
+
public var colorAccentActive: UIColor {
|
|
64
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
65
|
+
? BrandsyncToken.Dark.colorAccentActive
|
|
66
|
+
: BrandsyncToken.Semantics.colorAccentActive })
|
|
67
|
+
}
|
|
68
|
+
public var colorAccentContainer: UIColor {
|
|
69
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
70
|
+
? BrandsyncToken.Dark.colorAccentContainer
|
|
71
|
+
: BrandsyncToken.Semantics.colorAccentContainer })
|
|
72
|
+
}
|
|
73
|
+
public var colorSuccessDefault: UIColor {
|
|
74
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
75
|
+
? BrandsyncToken.Dark.colorSuccessDefault
|
|
76
|
+
: BrandsyncToken.Semantics.colorSuccessDefault })
|
|
77
|
+
}
|
|
78
|
+
public var colorSuccessPressed: UIColor {
|
|
79
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
80
|
+
? BrandsyncToken.Dark.colorSuccessPressed
|
|
81
|
+
: BrandsyncToken.Semantics.colorSuccessPressed })
|
|
82
|
+
}
|
|
83
|
+
public var colorSuccessContainer: UIColor {
|
|
84
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
85
|
+
? BrandsyncToken.Dark.colorSuccessContainer
|
|
86
|
+
: BrandsyncToken.Semantics.colorSuccessContainer })
|
|
87
|
+
}
|
|
88
|
+
public var colorWarningDefault: UIColor {
|
|
89
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
90
|
+
? BrandsyncToken.Dark.colorWarningDefault
|
|
91
|
+
: BrandsyncToken.Semantics.colorWarningDefault })
|
|
92
|
+
}
|
|
93
|
+
public var colorWarningPressed: UIColor {
|
|
94
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
95
|
+
? BrandsyncToken.Dark.colorWarningPressed
|
|
96
|
+
: BrandsyncToken.Semantics.colorWarningPressed })
|
|
97
|
+
}
|
|
98
|
+
public var colorWarningContainer: UIColor {
|
|
99
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
100
|
+
? BrandsyncToken.Dark.colorWarningContainer
|
|
101
|
+
: BrandsyncToken.Semantics.colorWarningContainer })
|
|
102
|
+
}
|
|
103
|
+
public var colorErrorDefault: UIColor {
|
|
104
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
105
|
+
? BrandsyncToken.Dark.colorErrorDefault
|
|
106
|
+
: BrandsyncToken.Semantics.colorErrorDefault })
|
|
107
|
+
}
|
|
108
|
+
public var colorErrorPressed: UIColor {
|
|
109
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
110
|
+
? BrandsyncToken.Dark.colorErrorPressed
|
|
111
|
+
: BrandsyncToken.Semantics.colorErrorPressed })
|
|
112
|
+
}
|
|
113
|
+
public var colorErrorContainer: UIColor {
|
|
114
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
115
|
+
? BrandsyncToken.Dark.colorErrorContainer
|
|
116
|
+
: BrandsyncToken.Semantics.colorErrorContainer })
|
|
117
|
+
}
|
|
118
|
+
public var colorInfoDefault: UIColor {
|
|
119
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
120
|
+
? BrandsyncToken.Dark.colorInfoDefault
|
|
121
|
+
: BrandsyncToken.Semantics.colorInfoDefault })
|
|
122
|
+
}
|
|
123
|
+
public var colorInfoPressed: UIColor {
|
|
124
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
125
|
+
? BrandsyncToken.Dark.colorInfoPressed
|
|
126
|
+
: BrandsyncToken.Semantics.colorInfoPressed })
|
|
127
|
+
}
|
|
128
|
+
public var colorInfoContainer: UIColor {
|
|
129
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
130
|
+
? BrandsyncToken.Dark.colorInfoContainer
|
|
131
|
+
: BrandsyncToken.Semantics.colorInfoContainer })
|
|
132
|
+
}
|
|
133
|
+
public var colorTextStaticWhite: UIColor {
|
|
134
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
135
|
+
? BrandsyncToken.Dark.colorTextStaticWhite
|
|
136
|
+
: BrandsyncToken.Semantics.colorTextStaticWhite })
|
|
137
|
+
}
|
|
138
|
+
public var colorTextStaticBlack: UIColor {
|
|
139
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
140
|
+
? BrandsyncToken.Dark.colorTextStaticBlack
|
|
141
|
+
: BrandsyncToken.Semantics.colorTextStaticBlack })
|
|
142
|
+
}
|
|
143
|
+
public var colorTextDefault: UIColor {
|
|
144
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
145
|
+
? BrandsyncToken.Dark.colorTextDefault
|
|
146
|
+
: BrandsyncToken.Semantics.colorTextDefault })
|
|
147
|
+
}
|
|
148
|
+
public var colorTextSecondary: UIColor {
|
|
149
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
150
|
+
? BrandsyncToken.Dark.colorTextSecondary
|
|
151
|
+
: BrandsyncToken.Semantics.colorTextSecondary })
|
|
152
|
+
}
|
|
153
|
+
public var colorTextMuted: UIColor {
|
|
154
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
155
|
+
? BrandsyncToken.Dark.colorTextMuted
|
|
156
|
+
: BrandsyncToken.Semantics.colorTextMuted })
|
|
157
|
+
}
|
|
158
|
+
public var colorTextInverse: UIColor {
|
|
159
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
160
|
+
? BrandsyncToken.Dark.colorTextInverse
|
|
161
|
+
: BrandsyncToken.Semantics.colorTextInverse })
|
|
162
|
+
}
|
|
163
|
+
public var colorTextLink: UIColor {
|
|
164
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
165
|
+
? BrandsyncToken.Dark.colorTextLink
|
|
166
|
+
: BrandsyncToken.Semantics.colorTextLink })
|
|
167
|
+
}
|
|
168
|
+
public var colorTextAction: UIColor {
|
|
169
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
170
|
+
? BrandsyncToken.Dark.colorTextAction
|
|
171
|
+
: BrandsyncToken.Semantics.colorTextAction })
|
|
172
|
+
}
|
|
173
|
+
public var colorTextSuccess: UIColor {
|
|
174
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
175
|
+
? BrandsyncToken.Dark.colorTextSuccess
|
|
176
|
+
: BrandsyncToken.Semantics.colorTextSuccess })
|
|
177
|
+
}
|
|
178
|
+
public var colorTextInfo: UIColor {
|
|
179
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
180
|
+
? BrandsyncToken.Dark.colorTextInfo
|
|
181
|
+
: BrandsyncToken.Semantics.colorTextInfo })
|
|
182
|
+
}
|
|
183
|
+
public var colorTextWarning: UIColor {
|
|
184
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
185
|
+
? BrandsyncToken.Dark.colorTextWarning
|
|
186
|
+
: BrandsyncToken.Semantics.colorTextWarning })
|
|
187
|
+
}
|
|
188
|
+
public var colorTextError: UIColor {
|
|
189
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
190
|
+
? BrandsyncToken.Dark.colorTextError
|
|
191
|
+
: BrandsyncToken.Semantics.colorTextError })
|
|
192
|
+
}
|
|
193
|
+
public var colorTextOnAction: UIColor {
|
|
194
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
195
|
+
? BrandsyncToken.Dark.colorTextOnAction
|
|
196
|
+
: BrandsyncToken.Semantics.colorTextOnAction })
|
|
197
|
+
}
|
|
198
|
+
public var colorTextOnDisabled: UIColor {
|
|
199
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
200
|
+
? BrandsyncToken.Dark.colorTextOnDisabled
|
|
201
|
+
: BrandsyncToken.Semantics.colorTextOnDisabled })
|
|
202
|
+
}
|
|
203
|
+
public var colorTextAccent: UIColor {
|
|
204
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
205
|
+
? BrandsyncToken.Dark.colorTextAccent
|
|
206
|
+
: BrandsyncToken.Semantics.colorTextAccent })
|
|
207
|
+
}
|
|
208
|
+
public var colorTextInverseAccent: UIColor {
|
|
209
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
210
|
+
? BrandsyncToken.Dark.colorTextInverseAccent
|
|
211
|
+
: BrandsyncToken.Semantics.colorTextInverseAccent })
|
|
212
|
+
}
|
|
213
|
+
public let colorTextNeutralDefault = BrandsyncToken.Semantics.colorTextNeutralDefault
|
|
214
|
+
public let colorTextNeutralPressed = BrandsyncToken.Semantics.colorTextNeutralPressed
|
|
215
|
+
public var colorSurfaceBase: UIColor {
|
|
216
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
217
|
+
? BrandsyncToken.Dark.colorSurfaceBase
|
|
218
|
+
: BrandsyncToken.Semantics.colorSurfaceBase })
|
|
219
|
+
}
|
|
220
|
+
public var colorSurfaceRaised: UIColor {
|
|
221
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
222
|
+
? BrandsyncToken.Dark.colorSurfaceRaised
|
|
223
|
+
: BrandsyncToken.Semantics.colorSurfaceRaised })
|
|
224
|
+
}
|
|
225
|
+
public var colorSurfaceContainer: UIColor {
|
|
226
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
227
|
+
? BrandsyncToken.Dark.colorSurfaceContainer
|
|
228
|
+
: BrandsyncToken.Semantics.colorSurfaceContainer })
|
|
229
|
+
}
|
|
230
|
+
public var colorSurfacePressed: UIColor {
|
|
231
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
232
|
+
? BrandsyncToken.Dark.colorSurfacePressed
|
|
233
|
+
: BrandsyncToken.Semantics.colorSurfacePressed })
|
|
234
|
+
}
|
|
235
|
+
public var colorSurfaceSelected: UIColor {
|
|
236
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
237
|
+
? BrandsyncToken.Dark.colorSurfaceSelected
|
|
238
|
+
: BrandsyncToken.Semantics.colorSurfaceSelected })
|
|
239
|
+
}
|
|
240
|
+
public var colorSurfaceSelectedPressed: UIColor {
|
|
241
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
242
|
+
? BrandsyncToken.Dark.colorSurfaceSelectedPressed
|
|
243
|
+
: BrandsyncToken.Semantics.colorSurfaceSelectedPressed })
|
|
244
|
+
}
|
|
245
|
+
public var colorSurfaceActive: UIColor {
|
|
246
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
247
|
+
? BrandsyncToken.Dark.colorSurfaceActive
|
|
248
|
+
: BrandsyncToken.Semantics.colorSurfaceActive })
|
|
249
|
+
}
|
|
250
|
+
public var colorSurfaceAction: UIColor {
|
|
251
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
252
|
+
? BrandsyncToken.Dark.colorSurfaceAction
|
|
253
|
+
: BrandsyncToken.Semantics.colorSurfaceAction })
|
|
254
|
+
}
|
|
255
|
+
public var colorSurfaceInset: UIColor {
|
|
256
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
257
|
+
? BrandsyncToken.Dark.colorSurfaceInset
|
|
258
|
+
: BrandsyncToken.Semantics.colorSurfaceInset })
|
|
259
|
+
}
|
|
260
|
+
public var colorSurfaceInverse: UIColor {
|
|
261
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
262
|
+
? BrandsyncToken.Dark.colorSurfaceInverse
|
|
263
|
+
: BrandsyncToken.Semantics.colorSurfaceInverse })
|
|
264
|
+
}
|
|
265
|
+
public var colorSurfaceAccent: UIColor {
|
|
266
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
267
|
+
? BrandsyncToken.Dark.colorSurfaceAccent
|
|
268
|
+
: BrandsyncToken.Semantics.colorSurfaceAccent })
|
|
269
|
+
}
|
|
270
|
+
public var colorSurfaceOnAction: UIColor {
|
|
271
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
272
|
+
? BrandsyncToken.Dark.colorSurfaceOnAction
|
|
273
|
+
: BrandsyncToken.Semantics.colorSurfaceOnAction })
|
|
274
|
+
}
|
|
275
|
+
public var colorSurfaceOnActionDisabled: UIColor {
|
|
276
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
277
|
+
? BrandsyncToken.Dark.colorSurfaceOnActionDisabled
|
|
278
|
+
: BrandsyncToken.Semantics.colorSurfaceOnActionDisabled })
|
|
279
|
+
}
|
|
280
|
+
public var colorSurfaceActionDisabled: UIColor {
|
|
281
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
282
|
+
? BrandsyncToken.Dark.colorSurfaceActionDisabled
|
|
283
|
+
: BrandsyncToken.Semantics.colorSurfaceActionDisabled })
|
|
284
|
+
}
|
|
285
|
+
public var colorSurfaceSuccess: UIColor {
|
|
286
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
287
|
+
? BrandsyncToken.Dark.colorSurfaceSuccess
|
|
288
|
+
: BrandsyncToken.Semantics.colorSurfaceSuccess })
|
|
289
|
+
}
|
|
290
|
+
public var colorSurfaceInfo: UIColor {
|
|
291
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
292
|
+
? BrandsyncToken.Dark.colorSurfaceInfo
|
|
293
|
+
: BrandsyncToken.Semantics.colorSurfaceInfo })
|
|
294
|
+
}
|
|
295
|
+
public var colorSurfaceWarning: UIColor {
|
|
296
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
297
|
+
? BrandsyncToken.Dark.colorSurfaceWarning
|
|
298
|
+
: BrandsyncToken.Semantics.colorSurfaceWarning })
|
|
299
|
+
}
|
|
300
|
+
public var colorSurfaceError: UIColor {
|
|
301
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
302
|
+
? BrandsyncToken.Dark.colorSurfaceError
|
|
303
|
+
: BrandsyncToken.Semantics.colorSurfaceError })
|
|
304
|
+
}
|
|
305
|
+
public var colorSurfaceOverlay: UIColor {
|
|
306
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
307
|
+
? BrandsyncToken.Dark.colorSurfaceOverlay
|
|
308
|
+
: BrandsyncToken.Semantics.colorSurfaceOverlay })
|
|
309
|
+
}
|
|
310
|
+
public let colorSurfaceOverlayLevel2 = BrandsyncToken.Semantics.colorSurfaceOverlayLevel2
|
|
311
|
+
public var colorIconsStaticWhite: UIColor {
|
|
312
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
313
|
+
? BrandsyncToken.Dark.colorIconsStaticWhite
|
|
314
|
+
: BrandsyncToken.Semantics.colorIconsStaticWhite })
|
|
315
|
+
}
|
|
316
|
+
public var colorIconsStaticBlack: UIColor {
|
|
317
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
318
|
+
? BrandsyncToken.Dark.colorIconsStaticBlack
|
|
319
|
+
: BrandsyncToken.Semantics.colorIconsStaticBlack })
|
|
320
|
+
}
|
|
321
|
+
public var colorIconsDefault: UIColor {
|
|
322
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
323
|
+
? BrandsyncToken.Dark.colorIconsDefault
|
|
324
|
+
: BrandsyncToken.Semantics.colorIconsDefault })
|
|
325
|
+
}
|
|
326
|
+
public var colorIconsMuted: UIColor {
|
|
327
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
328
|
+
? BrandsyncToken.Dark.colorIconsMuted
|
|
329
|
+
: BrandsyncToken.Semantics.colorIconsMuted })
|
|
330
|
+
}
|
|
331
|
+
public var colorIconsDisabled: UIColor {
|
|
332
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
333
|
+
? BrandsyncToken.Dark.colorIconsDisabled
|
|
334
|
+
: BrandsyncToken.Semantics.colorIconsDisabled })
|
|
335
|
+
}
|
|
336
|
+
public var colorIconsInverse: UIColor {
|
|
337
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
338
|
+
? BrandsyncToken.Dark.colorIconsInverse
|
|
339
|
+
: BrandsyncToken.Semantics.colorIconsInverse })
|
|
340
|
+
}
|
|
341
|
+
public var colorIconsAction: UIColor {
|
|
342
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
343
|
+
? BrandsyncToken.Dark.colorIconsAction
|
|
344
|
+
: BrandsyncToken.Semantics.colorIconsAction })
|
|
345
|
+
}
|
|
346
|
+
public var colorIconsSuccess: UIColor {
|
|
347
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
348
|
+
? BrandsyncToken.Dark.colorIconsSuccess
|
|
349
|
+
: BrandsyncToken.Semantics.colorIconsSuccess })
|
|
350
|
+
}
|
|
351
|
+
public var colorIconsInfo: UIColor {
|
|
352
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
353
|
+
? BrandsyncToken.Dark.colorIconsInfo
|
|
354
|
+
: BrandsyncToken.Semantics.colorIconsInfo })
|
|
355
|
+
}
|
|
356
|
+
public var colorIconsWarning: UIColor {
|
|
357
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
358
|
+
? BrandsyncToken.Dark.colorIconsWarning
|
|
359
|
+
: BrandsyncToken.Semantics.colorIconsWarning })
|
|
360
|
+
}
|
|
361
|
+
public var colorIconsError: UIColor {
|
|
362
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
363
|
+
? BrandsyncToken.Dark.colorIconsError
|
|
364
|
+
: BrandsyncToken.Semantics.colorIconsError })
|
|
365
|
+
}
|
|
366
|
+
public var colorIconsNeutralDefault: UIColor {
|
|
367
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
368
|
+
? BrandsyncToken.Dark.colorIconsNeutralDefault
|
|
369
|
+
: BrandsyncToken.Semantics.colorIconsNeutralDefault })
|
|
370
|
+
}
|
|
371
|
+
public var colorIconsNeutralPressed: UIColor {
|
|
372
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
373
|
+
? BrandsyncToken.Dark.colorIconsNeutralPressed
|
|
374
|
+
: BrandsyncToken.Semantics.colorIconsNeutralPressed })
|
|
375
|
+
}
|
|
376
|
+
public var colorIconsSecondary: UIColor {
|
|
377
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
378
|
+
? BrandsyncToken.Dark.colorIconsSecondary
|
|
379
|
+
: BrandsyncToken.Semantics.colorIconsSecondary })
|
|
380
|
+
}
|
|
381
|
+
public var colorBorderDefault: UIColor {
|
|
382
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
383
|
+
? BrandsyncToken.Dark.colorBorderDefault
|
|
384
|
+
: BrandsyncToken.Semantics.colorBorderDefault })
|
|
385
|
+
}
|
|
386
|
+
public var colorBorderNeutralActive: UIColor {
|
|
387
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
388
|
+
? BrandsyncToken.Dark.colorBorderNeutralActive
|
|
389
|
+
: BrandsyncToken.Semantics.colorBorderNeutralActive })
|
|
390
|
+
}
|
|
391
|
+
public var colorBorderNeutralDisabled: UIColor {
|
|
392
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
393
|
+
? BrandsyncToken.Dark.colorBorderNeutralDisabled
|
|
394
|
+
: BrandsyncToken.Semantics.colorBorderNeutralDisabled })
|
|
395
|
+
}
|
|
396
|
+
public var colorBorderNeutralContainer: UIColor {
|
|
397
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
398
|
+
? BrandsyncToken.Dark.colorBorderNeutralContainer
|
|
399
|
+
: BrandsyncToken.Semantics.colorBorderNeutralContainer })
|
|
400
|
+
}
|
|
401
|
+
public var colorBorderNeutralContainerPressed: UIColor {
|
|
402
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
403
|
+
? BrandsyncToken.Dark.colorBorderNeutralContainerPressed
|
|
404
|
+
: BrandsyncToken.Semantics.colorBorderNeutralContainerPressed })
|
|
405
|
+
}
|
|
406
|
+
public var colorBorderSuccess: UIColor {
|
|
407
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
408
|
+
? BrandsyncToken.Dark.colorBorderSuccess
|
|
409
|
+
: BrandsyncToken.Semantics.colorBorderSuccess })
|
|
410
|
+
}
|
|
411
|
+
public var colorBorderWarning: UIColor {
|
|
412
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
413
|
+
? BrandsyncToken.Dark.colorBorderWarning
|
|
414
|
+
: BrandsyncToken.Semantics.colorBorderWarning })
|
|
415
|
+
}
|
|
416
|
+
public var colorBorderError: UIColor {
|
|
417
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
418
|
+
? BrandsyncToken.Dark.colorBorderError
|
|
419
|
+
: BrandsyncToken.Semantics.colorBorderError })
|
|
420
|
+
}
|
|
421
|
+
public var colorBorderInfo: UIColor {
|
|
422
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
423
|
+
? BrandsyncToken.Dark.colorBorderInfo
|
|
424
|
+
: BrandsyncToken.Semantics.colorBorderInfo })
|
|
425
|
+
}
|
|
426
|
+
public var colorBorderPrimary: UIColor {
|
|
427
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
428
|
+
? BrandsyncToken.Dark.colorBorderPrimary
|
|
429
|
+
: BrandsyncToken.Semantics.colorBorderPrimary })
|
|
430
|
+
}
|
|
431
|
+
public var colorBorderPrimaryPressed: UIColor {
|
|
432
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
433
|
+
? BrandsyncToken.Dark.colorBorderPrimaryPressed
|
|
434
|
+
: BrandsyncToken.Semantics.colorBorderPrimaryPressed })
|
|
435
|
+
}
|
|
436
|
+
public var colorElevationNone: UIColor {
|
|
437
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
438
|
+
? BrandsyncToken.Dark.colorElevationNone
|
|
439
|
+
: BrandsyncToken.Semantics.colorElevationNone })
|
|
440
|
+
}
|
|
441
|
+
public var colorElevationLow: UIColor {
|
|
442
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
443
|
+
? BrandsyncToken.Dark.colorElevationLow
|
|
444
|
+
: BrandsyncToken.Semantics.colorElevationLow })
|
|
445
|
+
}
|
|
446
|
+
public var colorElevationMedium: UIColor {
|
|
447
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
448
|
+
? BrandsyncToken.Dark.colorElevationMedium
|
|
449
|
+
: BrandsyncToken.Semantics.colorElevationMedium })
|
|
450
|
+
}
|
|
451
|
+
public var colorElevationHigh: UIColor {
|
|
452
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
453
|
+
? BrandsyncToken.Dark.colorElevationHigh
|
|
454
|
+
: BrandsyncToken.Semantics.colorElevationHigh })
|
|
455
|
+
}
|
|
456
|
+
public var colorElevationHigher: UIColor {
|
|
457
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
458
|
+
? BrandsyncToken.Dark.colorElevationHigher
|
|
459
|
+
: BrandsyncToken.Semantics.colorElevationHigher })
|
|
460
|
+
}
|
|
461
|
+
public var colorElevationHighest: UIColor {
|
|
462
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
463
|
+
? BrandsyncToken.Dark.colorElevationHighest
|
|
464
|
+
: BrandsyncToken.Semantics.colorElevationHighest })
|
|
465
|
+
}
|
|
466
|
+
public var colorElevationInner: UIColor {
|
|
467
|
+
UIColor(dynamicProvider: { $0.userInterfaceStyle == .dark
|
|
468
|
+
? BrandsyncToken.Dark.colorElevationInner
|
|
469
|
+
: BrandsyncToken.Semantics.colorElevationInner })
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
// MARK: - Spacing
|
|
475
|
+
extension BrandsyncTheme {
|
|
476
|
+
public struct Spacing {
|
|
477
|
+
public let spacing0 = BrandsyncToken.Semantics.spacing0
|
|
478
|
+
public let spacing25 = BrandsyncToken.Semantics.spacing25
|
|
479
|
+
public let spacing50 = BrandsyncToken.Semantics.spacing50
|
|
480
|
+
public let spacing75 = BrandsyncToken.Semantics.spacing75
|
|
481
|
+
public let spacing100 = BrandsyncToken.Semantics.spacing100
|
|
482
|
+
public let spacing150 = BrandsyncToken.Semantics.spacing150
|
|
483
|
+
public let spacing200 = BrandsyncToken.Semantics.spacing200
|
|
484
|
+
public let spacing250 = BrandsyncToken.Semantics.spacing250
|
|
485
|
+
public let spacing300 = BrandsyncToken.Semantics.spacing300
|
|
486
|
+
public let spacing350 = BrandsyncToken.Semantics.spacing350
|
|
487
|
+
public let spacing400 = BrandsyncToken.Semantics.spacing400
|
|
488
|
+
public let spacing500 = BrandsyncToken.Semantics.spacing500
|
|
489
|
+
public let spacing550 = BrandsyncToken.Semantics.spacing550
|
|
490
|
+
public let spacing600 = BrandsyncToken.Semantics.spacing600
|
|
491
|
+
public let spacing700 = BrandsyncToken.Semantics.spacing700
|
|
492
|
+
public let spacing800 = BrandsyncToken.Semantics.spacing800
|
|
493
|
+
public let spacing1000 = BrandsyncToken.Semantics.spacing1000
|
|
494
|
+
public let spacing1200 = BrandsyncToken.Semantics.spacing1200
|
|
495
|
+
public let spacing1500 = BrandsyncToken.Semantics.spacing1500
|
|
496
|
+
public let negativeSpacing600 = BrandsyncToken.Semantics.negativeSpacing600
|
|
497
|
+
public let negativeSpacing500 = BrandsyncToken.Semantics.negativeSpacing500
|
|
498
|
+
public let negativeSpacing350 = BrandsyncToken.Semantics.negativeSpacing350
|
|
499
|
+
public let negativeSpacing200 = BrandsyncToken.Semantics.negativeSpacing200
|
|
500
|
+
public let negativeSpacing150 = BrandsyncToken.Semantics.negativeSpacing150
|
|
501
|
+
public let negativeSpacing100 = BrandsyncToken.Semantics.negativeSpacing100
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// MARK: - Sizing
|
|
506
|
+
extension BrandsyncTheme {
|
|
507
|
+
public struct Sizing {
|
|
508
|
+
public let sizing75 = BrandsyncToken.Semantics.sizing75
|
|
509
|
+
public let sizing100 = BrandsyncToken.Semantics.sizing100
|
|
510
|
+
public let sizing200 = BrandsyncToken.Semantics.sizing200
|
|
511
|
+
public let sizing250 = BrandsyncToken.Semantics.sizing250
|
|
512
|
+
public let sizing300 = BrandsyncToken.Semantics.sizing300
|
|
513
|
+
public let sizing400 = BrandsyncToken.Semantics.sizing400
|
|
514
|
+
public let sizing500 = BrandsyncToken.Semantics.sizing500
|
|
515
|
+
public let sizing600 = BrandsyncToken.Semantics.sizing600
|
|
516
|
+
public let sizing700 = BrandsyncToken.Semantics.sizing700
|
|
517
|
+
public let sizing800 = BrandsyncToken.Semantics.sizing800
|
|
518
|
+
public let sizing1000 = BrandsyncToken.Semantics.sizing1000
|
|
519
|
+
public let sizing1200 = BrandsyncToken.Semantics.sizing1200
|
|
520
|
+
public let sizing1600 = BrandsyncToken.Semantics.sizing1600
|
|
521
|
+
public let sizing3200 = BrandsyncToken.Semantics.sizing3200
|
|
522
|
+
public let sizing6400 = BrandsyncToken.Semantics.sizing6400
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
// MARK: - Border
|
|
527
|
+
extension BrandsyncTheme {
|
|
528
|
+
public struct Border {
|
|
529
|
+
public let borderRadius0 = BrandsyncToken.Semantics.borderRadius0
|
|
530
|
+
public let borderRadius50 = BrandsyncToken.Semantics.borderRadius50
|
|
531
|
+
public let borderRadius75 = BrandsyncToken.Semantics.borderRadius75
|
|
532
|
+
public let borderRadius100 = BrandsyncToken.Semantics.borderRadius100
|
|
533
|
+
public let borderRadius150 = BrandsyncToken.Semantics.borderRadius150
|
|
534
|
+
public let borderRadius200 = BrandsyncToken.Semantics.borderRadius200
|
|
535
|
+
public let borderRadius300 = BrandsyncToken.Semantics.borderRadius300
|
|
536
|
+
public let borderRadiusFull = BrandsyncToken.Semantics.borderRadiusFull
|
|
537
|
+
public let borderWidth0 = BrandsyncToken.Semantics.borderWidth0
|
|
538
|
+
public let borderWidthThin = BrandsyncToken.Semantics.borderWidthThin
|
|
539
|
+
public let borderWidthMedium = BrandsyncToken.Semantics.borderWidthMedium
|
|
540
|
+
public let borderWidthThick = BrandsyncToken.Semantics.borderWidthThick
|
|
541
|
+
}
|
|
542
|
+
}
|