@telus-uds/theme-allium 0.0.2-prerelease.4 → 1.0.0-prerelease.0
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/CHANGELOG.md +1922 -0
- package/README.md +3 -9
- package/build/schema.json +9959 -0
- package/build/theme.js +2994 -0
- package/package.json +13 -16
- package/theme.json +3731 -0
- package/src/components/ActivityIndicator.js +0 -25
- package/src/components/Box.js +0 -41
- package/src/components/Button.js +0 -219
- package/src/components/ButtonGroup.js +0 -23
- package/src/components/Card.js +0 -98
- package/src/components/ChevronLink.js +0 -20
- package/src/components/Divider.js +0 -34
- package/src/components/ExpandCollapse.js +0 -18
- package/src/components/ExpandCollapseControl.js +0 -42
- package/src/components/ExpandCollapsePanel.js +0 -26
- package/src/components/Feedback.js +0 -74
- package/src/components/Icon.js +0 -32
- package/src/components/InputLabel.js +0 -28
- package/src/components/Link.js +0 -195
- package/src/components/Pagination.js +0 -33
- package/src/components/PaginationPageButton.js +0 -81
- package/src/components/PaginationSideButton.js +0 -109
- package/src/components/SideNav.js +0 -18
- package/src/components/SideNavItem.js +0 -116
- package/src/components/SideNavItemsGroup.js +0 -41
- package/src/components/StackView.js +0 -19
- package/src/components/TextInput.js +0 -86
- package/src/components/ToggleSwitch.js +0 -125
- package/src/components/Tooltip.js +0 -45
- package/src/components/TooltipButton.js +0 -74
- package/src/components/Typography.js +0 -310
- package/src/components/index.js +0 -57
- package/src/components/spacingScale.js +0 -46
- package/src/index.js +0 -17
package/build/theme.js
ADDED
|
@@ -0,0 +1,2994 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Do not edit directly
|
|
4
|
+
* Generated on Thu, 20 Jan 2022 13:37:14 GMT
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const PaletteIconCheckmark = require('@telus-uds/palette-allium/build/rn/icons/Checkmark')
|
|
9
|
+
const PaletteIconArrowLeft = require('@telus-uds/palette-allium/build/rn/icons/ArrowLeft')
|
|
10
|
+
const PaletteIconArrowRight = require('@telus-uds/palette-allium/build/rn/icons/ArrowRight')
|
|
11
|
+
const PaletteIconCaretDown = require('@telus-uds/palette-allium/build/rn/icons/CaretDown')
|
|
12
|
+
const PaletteIconCaretUp = require('@telus-uds/palette-allium/build/rn/icons/CaretUp')
|
|
13
|
+
const PaletteIconStatusSuccess = require('@telus-uds/palette-allium/build/rn/icons/StatusSuccess')
|
|
14
|
+
const PaletteIconStatusError = require('@telus-uds/palette-allium/build/rn/icons/StatusError')
|
|
15
|
+
const PaletteIconClose = require('@telus-uds/palette-allium/build/rn/icons/Close')
|
|
16
|
+
const PaletteIconStatusWarning = require('@telus-uds/palette-allium/build/rn/icons/StatusWarning')
|
|
17
|
+
const PaletteIconTimes = require('@telus-uds/palette-allium/build/rn/icons/Times')
|
|
18
|
+
const PaletteIconSearchBold = require('@telus-uds/palette-allium/build/rn/icons/SearchBold')
|
|
19
|
+
const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
|
|
20
|
+
const PaletteIconAdd = require('@telus-uds/palette-allium/build/rn/icons/Add')
|
|
21
|
+
|
|
22
|
+
module.exports = {
|
|
23
|
+
components: {
|
|
24
|
+
ActivityIndicator: {
|
|
25
|
+
appearances: {
|
|
26
|
+
size: {
|
|
27
|
+
description: 'used for full-screen spinners',
|
|
28
|
+
type: 'variant',
|
|
29
|
+
values: [ 'large' ]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
rules: [ { if: { size: 'large' }, tokens: { size: 40, thickness: 4 } } ],
|
|
33
|
+
tokens: { color: '#2b8000', size: 20, thickness: 2 }
|
|
34
|
+
},
|
|
35
|
+
Box: {
|
|
36
|
+
appearances: {
|
|
37
|
+
background: {
|
|
38
|
+
description: 'Background colour of box. Transparent if not specified.',
|
|
39
|
+
values: [
|
|
40
|
+
'light', 'lightest',
|
|
41
|
+
'dark', 'darkest',
|
|
42
|
+
'critical', 'danger',
|
|
43
|
+
'warning', 'positive',
|
|
44
|
+
'brand'
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
rules: [
|
|
49
|
+
{
|
|
50
|
+
if: { background: 'lightest' },
|
|
51
|
+
tokens: { backgroundColor: '#ffffff' }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
if: { background: 'light' },
|
|
55
|
+
tokens: { backgroundColor: '#f4f4f7' }
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
if: { background: 'dark' },
|
|
59
|
+
tokens: { backgroundColor: '#414547' }
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
if: { background: 'darkest' },
|
|
63
|
+
tokens: { backgroundColor: '#2c2e30' }
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
if: { background: 'critical' },
|
|
67
|
+
tokens: { backgroundColor: '#c12335' }
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
if: { background: 'danger' },
|
|
71
|
+
tokens: { backgroundColor: '#fff6f8' }
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
if: { background: 'warning' },
|
|
75
|
+
tokens: { backgroundColor: '#fff9ee' }
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
if: { background: 'positive' },
|
|
79
|
+
tokens: { backgroundColor: '#f4f9f2' }
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
if: { background: 'brand' },
|
|
83
|
+
tokens: { backgroundColor: '#4b286d' }
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
tokens: { backgroundColor: null }
|
|
87
|
+
},
|
|
88
|
+
Button: {
|
|
89
|
+
appearances: {
|
|
90
|
+
danger: {
|
|
91
|
+
description: 'Indicates a user action that is destructive and will result in loss of information or cause significant monetary charges. Limit the use of the danger button whenever possible.',
|
|
92
|
+
type: 'variant',
|
|
93
|
+
values: [ true ]
|
|
94
|
+
},
|
|
95
|
+
focus: {
|
|
96
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
97
|
+
type: 'state',
|
|
98
|
+
values: [ true ]
|
|
99
|
+
},
|
|
100
|
+
hover: {
|
|
101
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
102
|
+
type: 'state',
|
|
103
|
+
values: [ true ]
|
|
104
|
+
},
|
|
105
|
+
inactive: {
|
|
106
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
107
|
+
type: 'state',
|
|
108
|
+
values: [ true ]
|
|
109
|
+
},
|
|
110
|
+
inverse: {
|
|
111
|
+
description: 'Use inverse buttons on darker backgrounds. High and low priority buttons, and danger buttons, are available in inverse.',
|
|
112
|
+
type: 'variant',
|
|
113
|
+
values: [ true ]
|
|
114
|
+
},
|
|
115
|
+
pressed: {
|
|
116
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
117
|
+
type: 'state',
|
|
118
|
+
values: [ true ]
|
|
119
|
+
},
|
|
120
|
+
priority: {
|
|
121
|
+
description: 'Indicates the importance of the call-to-action. Limit the amount of high priority buttons on a page to prioritize meaningful user flows. Low priority styles are applied by default.',
|
|
122
|
+
type: 'variant',
|
|
123
|
+
values: [ 'high' ]
|
|
124
|
+
},
|
|
125
|
+
size: { type: 'variant', values: [ 'small' ] },
|
|
126
|
+
width: {
|
|
127
|
+
description: 'Available in default or full-width. Default-width expands based on content Full-width expands to width of the container.',
|
|
128
|
+
type: 'variant',
|
|
129
|
+
values: [ 'full' ]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
rules: [
|
|
133
|
+
{ if: { hover: true }, tokens: { borderWidth: 3 } },
|
|
134
|
+
{
|
|
135
|
+
if: { priority: 'high' },
|
|
136
|
+
tokens: {
|
|
137
|
+
backgroundColor: '#2b8000',
|
|
138
|
+
borderWidth: 0,
|
|
139
|
+
color: '#ffffff'
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
if: { hover: true, priority: 'high' },
|
|
144
|
+
tokens: { backgroundColor: '#1f5c09' }
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
if: { pressed: true },
|
|
148
|
+
tokens: {
|
|
149
|
+
backgroundColor: '#163e06',
|
|
150
|
+
borderWidth: 0,
|
|
151
|
+
color: '#ffffff'
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
if: { focus: true },
|
|
156
|
+
tokens: { outerBorderColor: '#2b8000' }
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
if: { focus: true, pressed: true },
|
|
160
|
+
tokens: { outerBorderColor: '#163e06' }
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
if: { inverse: true },
|
|
164
|
+
tokens: {
|
|
165
|
+
backgroundColor: null,
|
|
166
|
+
borderColor: '#ffffff',
|
|
167
|
+
color: '#ffffff'
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
if: { inverse: true, priority: 'high' },
|
|
172
|
+
tokens: { backgroundColor: '#ffffff', color: '#414547' }
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
if: { hover: true, inverse: true, priority: 'high' },
|
|
176
|
+
tokens: { backgroundColor: 'rgba(255, 255, 255, 0.8)' }
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
if: { inverse: true, pressed: true },
|
|
180
|
+
tokens: {
|
|
181
|
+
backgroundColor: 'rgba(255, 255, 255, 0.6)',
|
|
182
|
+
color: '#414547'
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
if: { focus: true, inverse: true },
|
|
187
|
+
tokens: { outerBorderColor: '#ffffff' }
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
if: { danger: true, priority: null },
|
|
191
|
+
tokens: { borderColor: '#e12339', color: '#e12339' }
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
if: { danger: true, inverse: true, priority: null },
|
|
195
|
+
tokens: { backgroundColor: '#ffffff' }
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
if: { danger: true, focus: true, priority: null },
|
|
199
|
+
tokens: { outerBorderColor: '#e12339' }
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
if: { danger: true, pressed: true, priority: null },
|
|
203
|
+
tokens: { backgroundColor: '#c12335', color: '#ffffff' }
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
if: { danger: true, focus: true, pressed: true, priority: null },
|
|
207
|
+
tokens: { outerBorderColor: '#c12335' }
|
|
208
|
+
},
|
|
209
|
+
{ if: { width: 'full' }, tokens: { width: '100%' } },
|
|
210
|
+
{
|
|
211
|
+
if: { size: 'small' },
|
|
212
|
+
tokens: { minWidth: 0, paddingBottom: 4, paddingTop: 4 }
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
description: 'Buttons should not be disabled or set as inactive. Use inline (on blur) error messaging to provide feedback when the form is invalid. In exceptional instances where disabled buttons are needed, it must be clear to the user why the button is disabled and what they need to do to enable it.',
|
|
216
|
+
if: { inactive: true },
|
|
217
|
+
tokens: {
|
|
218
|
+
backgroundColor: '#b2b9bf',
|
|
219
|
+
borderWidth: 0,
|
|
220
|
+
color: '#ffffff'
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
if: { inactive: true, inverse: true },
|
|
225
|
+
tokens: {
|
|
226
|
+
backgroundColor: 'rgba(255, 255, 255, 0.6)',
|
|
227
|
+
color: '#414547'
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
tokens: {
|
|
232
|
+
alignSelf: 'flex-start',
|
|
233
|
+
backgroundColor: '#ffffff',
|
|
234
|
+
borderColor: '#2b8000',
|
|
235
|
+
borderRadius: 32,
|
|
236
|
+
borderWidth: 1,
|
|
237
|
+
color: '#2b8000',
|
|
238
|
+
fontName: 'HelveticaNow',
|
|
239
|
+
fontSize: 16,
|
|
240
|
+
fontWeight: '700',
|
|
241
|
+
lineHeight: 1.5,
|
|
242
|
+
minWidth: 144,
|
|
243
|
+
opacity: 1,
|
|
244
|
+
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
245
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
246
|
+
outerBorderGap: 2,
|
|
247
|
+
outerBorderWidth: 2,
|
|
248
|
+
paddingBottom: 12,
|
|
249
|
+
paddingLeft: 32,
|
|
250
|
+
paddingRight: 32,
|
|
251
|
+
paddingTop: 12,
|
|
252
|
+
shadow: null,
|
|
253
|
+
textAlign: 'center',
|
|
254
|
+
width: null
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
ButtonGroup: {
|
|
258
|
+
appearances: {
|
|
259
|
+
viewport: {
|
|
260
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
261
|
+
type: 'state',
|
|
262
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
rules: [ { if: { viewport: [ 'lg', 'xl' ] }, tokens: { space: 3 } } ],
|
|
266
|
+
tokens: {
|
|
267
|
+
alignItems: 'center',
|
|
268
|
+
direction: 'row',
|
|
269
|
+
flexGrow: 0,
|
|
270
|
+
flexShrink: 0,
|
|
271
|
+
justifyContent: 'flex-start',
|
|
272
|
+
space: 1
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
ButtonGroupItem: {
|
|
276
|
+
appearances: {
|
|
277
|
+
focus: {
|
|
278
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
279
|
+
type: 'state',
|
|
280
|
+
values: [ true ]
|
|
281
|
+
},
|
|
282
|
+
hover: {
|
|
283
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
284
|
+
type: 'state',
|
|
285
|
+
values: [ true ]
|
|
286
|
+
},
|
|
287
|
+
inactive: {
|
|
288
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
289
|
+
type: 'state',
|
|
290
|
+
values: [ true ]
|
|
291
|
+
},
|
|
292
|
+
pressed: {
|
|
293
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
294
|
+
type: 'state',
|
|
295
|
+
values: [ true ]
|
|
296
|
+
},
|
|
297
|
+
selected: {
|
|
298
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
299
|
+
type: 'state',
|
|
300
|
+
values: [ true ]
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
rules: [
|
|
304
|
+
{
|
|
305
|
+
if: { pressed: true },
|
|
306
|
+
tokens: {
|
|
307
|
+
backgroundColor: '#676e73',
|
|
308
|
+
borderColor: '#676e73',
|
|
309
|
+
borderWidth: 0,
|
|
310
|
+
color: '#ffffff'
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
if: { focus: true },
|
|
315
|
+
tokens: {
|
|
316
|
+
borderColor: '#676e73',
|
|
317
|
+
outerBorderColor: '#676e73',
|
|
318
|
+
outerBorderGap: 2,
|
|
319
|
+
outerBorderWidth: 2
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{ if: { hover: true }, tokens: { borderWidth: 3 } },
|
|
323
|
+
{
|
|
324
|
+
if: { selected: true },
|
|
325
|
+
tokens: {
|
|
326
|
+
backgroundColor: '#4b286d',
|
|
327
|
+
borderWidth: 0,
|
|
328
|
+
color: '#ffffff'
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
if: { hover: true, selected: true },
|
|
333
|
+
tokens: { backgroundColor: '#7c53a5' }
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
if: { pressed: true, selected: true },
|
|
337
|
+
tokens: { backgroundColor: '#3f2a54' }
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
if: { focus: true, selected: true },
|
|
341
|
+
tokens: { outerBorderColor: '#4b286d' }
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
if: { focus: true, pressed: true, selected: true },
|
|
345
|
+
tokens: { outerBorderColor: '#3f2a54' }
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
if: { inactive: true },
|
|
349
|
+
tokens: {
|
|
350
|
+
backgroundColor: '#b2b9bf',
|
|
351
|
+
borderWidth: 0,
|
|
352
|
+
color: '#ffffff'
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
tokens: {
|
|
357
|
+
alignSelf: 'flex-start',
|
|
358
|
+
backgroundColor: '#ffffff',
|
|
359
|
+
borderColor: '#b2b9bf',
|
|
360
|
+
borderRadius: 32,
|
|
361
|
+
borderWidth: 1,
|
|
362
|
+
color: '#676e73',
|
|
363
|
+
fontName: 'HelveticaNow',
|
|
364
|
+
fontSize: 14,
|
|
365
|
+
fontWeight: '700',
|
|
366
|
+
lineHeight: 1.5,
|
|
367
|
+
minWidth: 0,
|
|
368
|
+
opacity: 1,
|
|
369
|
+
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
370
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
371
|
+
outerBorderGap: 2,
|
|
372
|
+
outerBorderWidth: 2,
|
|
373
|
+
paddingBottom: 8,
|
|
374
|
+
paddingLeft: 16,
|
|
375
|
+
paddingRight: 16,
|
|
376
|
+
paddingTop: 8,
|
|
377
|
+
shadow: null,
|
|
378
|
+
textAlign: 'center',
|
|
379
|
+
width: null
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
Card: {
|
|
383
|
+
appearances: {
|
|
384
|
+
background: { type: 'variant', values: [ 'alternative' ] },
|
|
385
|
+
padding: {
|
|
386
|
+
type: 'variant',
|
|
387
|
+
values: [ 'narrow', 'intermediate', 'compact', 'custom' ]
|
|
388
|
+
},
|
|
389
|
+
viewport: {
|
|
390
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
391
|
+
type: 'state',
|
|
392
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
rules: [
|
|
396
|
+
{
|
|
397
|
+
if: { background: 'alternative' },
|
|
398
|
+
tokens: { backgroundColor: '#f4f4f7' }
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
if: { viewport: [ 'md', 'lg', 'xl' ] },
|
|
402
|
+
tokens: {
|
|
403
|
+
paddingBottom: 48,
|
|
404
|
+
paddingLeft: 32,
|
|
405
|
+
paddingRight: 32,
|
|
406
|
+
paddingTop: 48
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
if: { padding: 'narrow' },
|
|
411
|
+
tokens: {
|
|
412
|
+
paddingBottom: 24,
|
|
413
|
+
paddingLeft: 16,
|
|
414
|
+
paddingRight: 16,
|
|
415
|
+
paddingTop: 24
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
if: { padding: 'narrow', viewport: [ 'md', 'lg', 'xl' ] },
|
|
420
|
+
tokens: {
|
|
421
|
+
paddingBottom: 32,
|
|
422
|
+
paddingLeft: 16,
|
|
423
|
+
paddingRight: 16,
|
|
424
|
+
paddingTop: 32
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
if: { padding: 'intermediate' },
|
|
429
|
+
tokens: {
|
|
430
|
+
paddingBottom: 24,
|
|
431
|
+
paddingLeft: 24,
|
|
432
|
+
paddingRight: 24,
|
|
433
|
+
paddingTop: 24
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
if: { padding: 'intermediate', viewport: [ 'md', 'lg', 'xl' ] },
|
|
438
|
+
tokens: {
|
|
439
|
+
paddingBottom: 32,
|
|
440
|
+
paddingLeft: 32,
|
|
441
|
+
paddingRight: 32,
|
|
442
|
+
paddingTop: 32
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
if: { padding: 'compact' },
|
|
447
|
+
tokens: {
|
|
448
|
+
paddingBottom: 16,
|
|
449
|
+
paddingLeft: 16,
|
|
450
|
+
paddingRight: 16,
|
|
451
|
+
paddingTop: 16
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
if: { padding: 'custom' },
|
|
456
|
+
tokens: {
|
|
457
|
+
paddingBottom: 0,
|
|
458
|
+
paddingLeft: 0,
|
|
459
|
+
paddingRight: 0,
|
|
460
|
+
paddingTop: 0
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
],
|
|
464
|
+
tokens: {
|
|
465
|
+
backgroundColor: '#ffffff',
|
|
466
|
+
borderColor: '#e3e6e8',
|
|
467
|
+
borderRadius: 6,
|
|
468
|
+
borderWidth: 1,
|
|
469
|
+
flex: 1,
|
|
470
|
+
minWidth: null,
|
|
471
|
+
paddingBottom: 32,
|
|
472
|
+
paddingLeft: 24,
|
|
473
|
+
paddingRight: 24,
|
|
474
|
+
paddingTop: 32,
|
|
475
|
+
shadow: null
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
Checkbox: {
|
|
479
|
+
appearances: {
|
|
480
|
+
checked: {
|
|
481
|
+
description: 'Corresponds to a selected state for a checkbox or radio',
|
|
482
|
+
type: 'state',
|
|
483
|
+
values: [ true ]
|
|
484
|
+
},
|
|
485
|
+
error: { type: 'state', values: [ true ] },
|
|
486
|
+
focus: {
|
|
487
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
488
|
+
type: 'state',
|
|
489
|
+
values: [ true ]
|
|
490
|
+
},
|
|
491
|
+
hover: {
|
|
492
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
493
|
+
type: 'state',
|
|
494
|
+
values: [ true ]
|
|
495
|
+
},
|
|
496
|
+
inactive: {
|
|
497
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
498
|
+
type: 'state',
|
|
499
|
+
values: [ true ]
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
rules: [
|
|
503
|
+
{
|
|
504
|
+
if: { error: true },
|
|
505
|
+
tokens: { inputBorderColor: '#e12339' }
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
if: { focus: true },
|
|
509
|
+
tokens: { inputBorderColor: '#7c53a5', inputBorderWidth: 3 }
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
if: { inactive: true },
|
|
513
|
+
tokens: {
|
|
514
|
+
iconBackgroundColor: '#e3e6e8',
|
|
515
|
+
iconColor: '#676e73',
|
|
516
|
+
inputBackgroundColor: '#e3e6e8',
|
|
517
|
+
inputBorderColor: 'rgba(0, 0, 0, 0)',
|
|
518
|
+
labelColor: '#676e73'
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
],
|
|
522
|
+
tokens: {
|
|
523
|
+
containerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
524
|
+
feedbackMarginBottom: 0,
|
|
525
|
+
feedbackMarginTop: 2,
|
|
526
|
+
feedbackPosition: 'bottom',
|
|
527
|
+
icon: PaletteIconCheckmark,
|
|
528
|
+
iconBackgroundColor: '#7c53a5',
|
|
529
|
+
iconColor: '#ffffff',
|
|
530
|
+
iconSize: 16,
|
|
531
|
+
inputBackgroundColor: '#ffffff',
|
|
532
|
+
inputBorderColor: '#676e73',
|
|
533
|
+
inputBorderRadius: 4,
|
|
534
|
+
inputBorderWidth: 1,
|
|
535
|
+
inputHeight: 20,
|
|
536
|
+
inputOutlineColor: null,
|
|
537
|
+
inputOutlineWidth: 0,
|
|
538
|
+
inputShadow: null,
|
|
539
|
+
inputWidth: 20,
|
|
540
|
+
labelColor: '#414547',
|
|
541
|
+
labelFontName: 'HelveticaNow',
|
|
542
|
+
labelFontSize: 16,
|
|
543
|
+
labelFontWeight: '400',
|
|
544
|
+
labelLineHeight: 1.5,
|
|
545
|
+
labelMarginLeft: 10
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
CheckboxGroup: { appearances: {}, rules: [], tokens: { fieldSpace: 2, space: 2 } },
|
|
549
|
+
ChevronLink: {
|
|
550
|
+
appearances: {
|
|
551
|
+
hover: {
|
|
552
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
553
|
+
type: 'state',
|
|
554
|
+
values: [ true ]
|
|
555
|
+
},
|
|
556
|
+
size: {
|
|
557
|
+
description: 'Sets the size of the text and icon; these variants are shared with Link',
|
|
558
|
+
type: 'variant',
|
|
559
|
+
values: [ 'large', 'small', 'micro' ]
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
rules: [
|
|
563
|
+
{ if: { hover: true }, tokens: { iconDisplace: 4 } },
|
|
564
|
+
{ if: { size: 'large' }, tokens: { iconSize: 24 } }
|
|
565
|
+
],
|
|
566
|
+
tokens: {
|
|
567
|
+
iconDisplace: 0,
|
|
568
|
+
iconSize: 20,
|
|
569
|
+
iconSpace: 1,
|
|
570
|
+
leftIcon: PaletteIconArrowLeft,
|
|
571
|
+
rightIcon: PaletteIconArrowRight
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
Divider: {
|
|
575
|
+
appearances: {
|
|
576
|
+
decorative: {
|
|
577
|
+
description: 'Use a decorative divider to highlight an element. Non-decorative dividers are for clearly identifying separation of content.',
|
|
578
|
+
type: 'variant',
|
|
579
|
+
values: [ true ]
|
|
580
|
+
},
|
|
581
|
+
inverse: { type: 'variant', values: [ true ] },
|
|
582
|
+
weight: { type: 'variant', values: [ 'thick' ] }
|
|
583
|
+
},
|
|
584
|
+
rules: [
|
|
585
|
+
{ if: { weight: 'thick' }, tokens: { width: 2 } },
|
|
586
|
+
{ if: { decorative: true }, tokens: { color: '#b2b9bf' } },
|
|
587
|
+
{ if: { inverse: true }, tokens: { color: '#ffffff' } }
|
|
588
|
+
],
|
|
589
|
+
tokens: { color: '#676e73', width: 1 }
|
|
590
|
+
},
|
|
591
|
+
ExpandCollapse: {
|
|
592
|
+
appearances: {},
|
|
593
|
+
rules: [],
|
|
594
|
+
tokens: { borderColor: '#b2b9bf', borderStyle: 'solid', borderWidth: 0 }
|
|
595
|
+
},
|
|
596
|
+
ExpandCollapseControl: {
|
|
597
|
+
appearances: {
|
|
598
|
+
expanded: {
|
|
599
|
+
description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
|
|
600
|
+
type: 'state',
|
|
601
|
+
values: [ true ]
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
rules: [
|
|
605
|
+
{
|
|
606
|
+
if: { expanded: true },
|
|
607
|
+
tokens: { icon: PaletteIconCaretUp }
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
tokens: {
|
|
611
|
+
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
612
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
613
|
+
borderWidth: 0,
|
|
614
|
+
icon: PaletteIconCaretDown,
|
|
615
|
+
iconColor: '#2b8000',
|
|
616
|
+
iconGap: 8,
|
|
617
|
+
iconPosition: 'left',
|
|
618
|
+
iconSize: 24,
|
|
619
|
+
justifyContent: 'flex-start',
|
|
620
|
+
paddingBottom: 16,
|
|
621
|
+
paddingLeft: 8,
|
|
622
|
+
paddingRight: 16,
|
|
623
|
+
paddingTop: 16,
|
|
624
|
+
verticalAlign: 'top'
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
ExpandCollapsePanel: {
|
|
628
|
+
appearances: {},
|
|
629
|
+
rules: [],
|
|
630
|
+
tokens: {
|
|
631
|
+
collapseDuration: 250,
|
|
632
|
+
contentPaddingBottom: 16,
|
|
633
|
+
contentPaddingLeft: 40,
|
|
634
|
+
contentPaddingRight: 16,
|
|
635
|
+
contentPaddingTop: 0,
|
|
636
|
+
expandDuration: 300
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
Feedback: {
|
|
640
|
+
appearances: {
|
|
641
|
+
icon: { type: 'variant', values: [ true ] },
|
|
642
|
+
validation: {
|
|
643
|
+
description: 'Validation states for form inputs',
|
|
644
|
+
type: 'state',
|
|
645
|
+
values: [ 'error', 'success' ]
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
rules: [
|
|
649
|
+
{
|
|
650
|
+
if: { validation: 'success' },
|
|
651
|
+
tokens: {
|
|
652
|
+
backgroundColor: '#f4f9f2',
|
|
653
|
+
borderColor: '#f4f9f2',
|
|
654
|
+
color: '#163e06'
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
if: { validation: 'error' },
|
|
659
|
+
tokens: {
|
|
660
|
+
backgroundColor: '#fff6f8',
|
|
661
|
+
borderColor: '#fff6f8',
|
|
662
|
+
color: '#e12339'
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
if: { icon: true, validation: 'success' },
|
|
667
|
+
tokens: { icon: PaletteIconStatusSuccess, iconColor: '#2b8000' }
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
if: { icon: true, validation: 'error' },
|
|
671
|
+
tokens: { icon: PaletteIconStatusError, iconColor: '#e12339' }
|
|
672
|
+
}
|
|
673
|
+
],
|
|
674
|
+
tokens: {
|
|
675
|
+
backgroundColor: '#f4f4f7',
|
|
676
|
+
borderColor: '#e3e6e8',
|
|
677
|
+
borderRadius: 4,
|
|
678
|
+
borderWidth: 1,
|
|
679
|
+
color: '#2c2e30',
|
|
680
|
+
contentFontSize: 14,
|
|
681
|
+
fontName: 'HelveticaNow',
|
|
682
|
+
fontWeight: '400',
|
|
683
|
+
icon: null,
|
|
684
|
+
iconColor: 'rgba(0, 0, 0, 0)',
|
|
685
|
+
iconGap: 8,
|
|
686
|
+
iconSize: 24,
|
|
687
|
+
lineHeight: 1.5,
|
|
688
|
+
paddingBottom: 12,
|
|
689
|
+
paddingLeft: 16,
|
|
690
|
+
paddingRight: 16,
|
|
691
|
+
paddingTop: 12,
|
|
692
|
+
space: 2,
|
|
693
|
+
titleFontSize: 16
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
HorizontalScrollButton: {
|
|
697
|
+
appearances: {
|
|
698
|
+
focus: {
|
|
699
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
700
|
+
type: 'state',
|
|
701
|
+
values: [ true ]
|
|
702
|
+
},
|
|
703
|
+
hover: {
|
|
704
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
705
|
+
type: 'state',
|
|
706
|
+
values: [ true ]
|
|
707
|
+
},
|
|
708
|
+
pressed: {
|
|
709
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
710
|
+
type: 'state',
|
|
711
|
+
values: [ true ]
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
rules: [
|
|
715
|
+
{
|
|
716
|
+
if: { hover: true },
|
|
717
|
+
tokens: { borderColor: '#414547', iconColor: '#414547' }
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
if: { pressed: true },
|
|
721
|
+
tokens: { backgroundColor: '#676e73', iconColor: '#ffffff' }
|
|
722
|
+
}
|
|
723
|
+
],
|
|
724
|
+
tokens: {
|
|
725
|
+
backgroundColor: '#ffffff',
|
|
726
|
+
borderColor: '#b2b9bf',
|
|
727
|
+
borderRadius: 32,
|
|
728
|
+
borderWidth: 1,
|
|
729
|
+
iconColor: '#676e73',
|
|
730
|
+
iconSize: 32,
|
|
731
|
+
padding: 0,
|
|
732
|
+
shadow: {
|
|
733
|
+
blur: 2,
|
|
734
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
735
|
+
inset: false,
|
|
736
|
+
offsetX: 0,
|
|
737
|
+
offsetY: 2,
|
|
738
|
+
spread: 0
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
Icon: {
|
|
743
|
+
appearances: {
|
|
744
|
+
rank: { type: 'variant', values: [ 'primary' ] },
|
|
745
|
+
size: { type: 'variant', values: [ 'small' ] }
|
|
746
|
+
},
|
|
747
|
+
rules: [
|
|
748
|
+
{ if: { size: 'small' }, tokens: { size: 20 } },
|
|
749
|
+
{ if: { rank: 'primary' }, tokens: { color: '#4b286d' } }
|
|
750
|
+
],
|
|
751
|
+
tokens: {
|
|
752
|
+
color: '#414547',
|
|
753
|
+
scale: 1,
|
|
754
|
+
size: 24,
|
|
755
|
+
translateX: 0,
|
|
756
|
+
translateY: 0
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
IconButton: {
|
|
760
|
+
appearances: {
|
|
761
|
+
focus: {
|
|
762
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
763
|
+
type: 'state',
|
|
764
|
+
values: [ true ]
|
|
765
|
+
},
|
|
766
|
+
hover: {
|
|
767
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
768
|
+
type: 'state',
|
|
769
|
+
values: [ true ]
|
|
770
|
+
},
|
|
771
|
+
inverse: {
|
|
772
|
+
description: 'For use on dark backgrounds',
|
|
773
|
+
type: 'variant',
|
|
774
|
+
values: [ true ]
|
|
775
|
+
},
|
|
776
|
+
pressed: {
|
|
777
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
778
|
+
type: 'state',
|
|
779
|
+
values: [ true ]
|
|
780
|
+
},
|
|
781
|
+
raised: {
|
|
782
|
+
description: 'Uses shadow and background colour to appear raised above the page',
|
|
783
|
+
type: 'variant',
|
|
784
|
+
values: [ true ]
|
|
785
|
+
},
|
|
786
|
+
size: { type: 'variant', values: [ 'small', 'large' ] }
|
|
787
|
+
},
|
|
788
|
+
rules: [
|
|
789
|
+
{
|
|
790
|
+
if: { inverse: true },
|
|
791
|
+
tokens: { borderColor: '#ffffff', iconColor: '#ffffff' }
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
if: { hover: true },
|
|
795
|
+
tokens: {
|
|
796
|
+
borderColor: '#414547',
|
|
797
|
+
iconColor: '#414547',
|
|
798
|
+
iconScale: 1.1
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
if: { hover: true, inverse: true },
|
|
803
|
+
tokens: { borderColor: '#ffffff', iconColor: '#ffffff' }
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
if: { focus: true },
|
|
807
|
+
tokens: {
|
|
808
|
+
outerBorderColor: '#676e73',
|
|
809
|
+
outerBorderGap: 4,
|
|
810
|
+
outerBorderWidth: 1
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
if: { focus: true, inverse: true },
|
|
815
|
+
tokens: {
|
|
816
|
+
backgroundColor: 'rgba(255, 255, 255, 0.6)',
|
|
817
|
+
borderColor: '#414547',
|
|
818
|
+
iconColor: '#414547',
|
|
819
|
+
outerBorderWidth: 0
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
if: { pressed: true },
|
|
824
|
+
tokens: {
|
|
825
|
+
backgroundColor: '#676e73',
|
|
826
|
+
borderColor: '#ffffff',
|
|
827
|
+
iconColor: '#ffffff',
|
|
828
|
+
outerBorderGap: 4
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
if: { inverse: true, pressed: true },
|
|
833
|
+
tokens: {
|
|
834
|
+
backgroundColor: 'rgba(255, 255, 255, 0.4)',
|
|
835
|
+
borderColor: '#676e73',
|
|
836
|
+
iconColor: '#676e73'
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
if: { size: 'large' },
|
|
841
|
+
tokens: { iconSize: 24, padding: 12 }
|
|
842
|
+
},
|
|
843
|
+
{ if: { size: 'small' }, tokens: { padding: 4 } },
|
|
844
|
+
{
|
|
845
|
+
description: 'Raised IconButtons follow different design patterns to other variants',
|
|
846
|
+
if: { raised: true },
|
|
847
|
+
tokens: {
|
|
848
|
+
backgroundColor: '#ffffff',
|
|
849
|
+
borderColor: '#b2b9bf',
|
|
850
|
+
borderWidth: 1,
|
|
851
|
+
outerBorderColor: 'transparent',
|
|
852
|
+
outerBorderGap: 0,
|
|
853
|
+
outerBorderWidth: 0,
|
|
854
|
+
padding: 12,
|
|
855
|
+
shadow: {
|
|
856
|
+
blur: 2,
|
|
857
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
858
|
+
inset: false,
|
|
859
|
+
offsetX: 0,
|
|
860
|
+
offsetY: 2,
|
|
861
|
+
spread: 0
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
if: { raised: true, size: 'large' },
|
|
867
|
+
tokens: { padding: 16 }
|
|
868
|
+
},
|
|
869
|
+
{ if: { raised: true, size: 'small' }, tokens: { padding: 8 } },
|
|
870
|
+
{
|
|
871
|
+
if: { pressed: true, raised: true },
|
|
872
|
+
tokens: { backgroundColor: '#676e73', borderWidth: 0 }
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
if: { focus: true, pressed: true, raised: true },
|
|
876
|
+
tokens: { backgroundColor: '#4b286d', borderWidth: 0 }
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
if: { hover: true, raised: true },
|
|
880
|
+
tokens: { borderColor: '#b2b9bf', borderWidth: 3 }
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
if: { focus: true, raised: true },
|
|
884
|
+
tokens: { borderColor: '#4b286d', borderWidth: 3 }
|
|
885
|
+
}
|
|
886
|
+
],
|
|
887
|
+
tokens: {
|
|
888
|
+
backgroundColor: 'transparent',
|
|
889
|
+
borderColor: '#676e73',
|
|
890
|
+
borderRadius: 99999999999999,
|
|
891
|
+
borderWidth: 1,
|
|
892
|
+
iconColor: '#676e73',
|
|
893
|
+
iconScale: 1,
|
|
894
|
+
iconSize: 16,
|
|
895
|
+
iconTranslateX: 0,
|
|
896
|
+
iconTranslateY: 0,
|
|
897
|
+
outerBorderColor: 'transparent',
|
|
898
|
+
outerBorderGap: 0,
|
|
899
|
+
outerBorderWidth: 0,
|
|
900
|
+
padding: 8,
|
|
901
|
+
shadow: null
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
InputLabel: {
|
|
905
|
+
appearances: {},
|
|
906
|
+
rules: [],
|
|
907
|
+
tokens: {
|
|
908
|
+
color: '#414547',
|
|
909
|
+
fontName: 'HelveticaNow',
|
|
910
|
+
fontSize: 16,
|
|
911
|
+
fontWeight: '700',
|
|
912
|
+
gap: 8,
|
|
913
|
+
hintColor: '#414547',
|
|
914
|
+
hintFontName: 'HelveticaNow',
|
|
915
|
+
hintFontSize: 14,
|
|
916
|
+
hintFontWeight: '400',
|
|
917
|
+
hintLineHeight: 1.4,
|
|
918
|
+
lineHeight: 1.5
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
InputSupports: { appearances: {}, rules: [], tokens: { space: 1 } },
|
|
922
|
+
Link: {
|
|
923
|
+
appearances: {
|
|
924
|
+
alternative: {
|
|
925
|
+
description: 'Replaces the default green colour with a more subtle grey.',
|
|
926
|
+
type: 'variant',
|
|
927
|
+
values: [ true ]
|
|
928
|
+
},
|
|
929
|
+
focus: {
|
|
930
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
931
|
+
type: 'state',
|
|
932
|
+
values: [ true ]
|
|
933
|
+
},
|
|
934
|
+
hover: {
|
|
935
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
936
|
+
type: 'state',
|
|
937
|
+
values: [ true ]
|
|
938
|
+
},
|
|
939
|
+
iconPosition: {
|
|
940
|
+
description: 'Theme styles to be applied to icon links depending on where the icon is in relation to the link text',
|
|
941
|
+
type: 'state',
|
|
942
|
+
values: [ 'left', 'right' ]
|
|
943
|
+
},
|
|
944
|
+
inverse: {
|
|
945
|
+
description: 'Styles the link white for use on dark backgrounds.',
|
|
946
|
+
type: 'variant',
|
|
947
|
+
values: [ true ]
|
|
948
|
+
},
|
|
949
|
+
light: {
|
|
950
|
+
description: 'A lighter grey variant, used to lower the emphasis on a given Link (e.g. in Breadcrumbs)',
|
|
951
|
+
type: 'variant',
|
|
952
|
+
values: [ true ]
|
|
953
|
+
},
|
|
954
|
+
pressed: {
|
|
955
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
956
|
+
type: 'state',
|
|
957
|
+
values: [ true ]
|
|
958
|
+
},
|
|
959
|
+
size: {
|
|
960
|
+
description: 'Text sizes for block links; similar but not always identical to Typography sizes.',
|
|
961
|
+
type: 'variant',
|
|
962
|
+
values: [ 'large', 'small', 'micro' ]
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
rules: [
|
|
966
|
+
{ if: { iconPosition: 'left' }, tokens: { iconSpace: 2 } },
|
|
967
|
+
{
|
|
968
|
+
if: { focus: true },
|
|
969
|
+
tokens: { outerBorderColor: '#2b8000', outerBorderOutline: 'none' }
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
if: { hover: true },
|
|
973
|
+
tokens: { color: '#1f5c09', textLine: 'none' }
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
if: { pressed: true },
|
|
977
|
+
tokens: { color: '#163e06', textLine: 'none' }
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
if: { focus: true, pressed: true },
|
|
981
|
+
tokens: { outerBorderColor: '#163e06' }
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
if: { size: 'large' },
|
|
985
|
+
tokens: { blockFontSize: 20, blockLineHeight: 1.6, iconSize: 24 }
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
if: { size: 'small' },
|
|
989
|
+
tokens: {
|
|
990
|
+
blockFontSize: 14,
|
|
991
|
+
blockLineHeight: 1.42857142857,
|
|
992
|
+
iconSize: 20
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
if: { size: 'micro' },
|
|
997
|
+
tokens: {
|
|
998
|
+
blockFontName: 'HelveticaNow',
|
|
999
|
+
blockFontSize: 12,
|
|
1000
|
+
blockFontWeight: '500',
|
|
1001
|
+
blockLineHeight: 1.33333333333,
|
|
1002
|
+
iconSize: 16
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
{ if: { alternative: true }, tokens: { color: '#2c2e30' } },
|
|
1006
|
+
{
|
|
1007
|
+
if: { alternative: true, focus: true },
|
|
1008
|
+
tokens: { color: '#414547', outerBorderColor: '#414547' }
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
if: { alternative: true, hover: true },
|
|
1012
|
+
tokens: { color: '#2c2e30' }
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
if: { alternative: true, pressed: true },
|
|
1016
|
+
tokens: { color: '#2c2e30' }
|
|
1017
|
+
},
|
|
1018
|
+
{ if: { inverse: true }, tokens: { color: '#ffffff' } },
|
|
1019
|
+
{
|
|
1020
|
+
if: { hover: true, inverse: true },
|
|
1021
|
+
tokens: { color: '#f4f4f7' }
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
if: { focus: true, inverse: true },
|
|
1025
|
+
tokens: { outerBorderColor: '#ffffff', outerBorderOutline: 'none' }
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
if: { inverse: true, pressed: true },
|
|
1029
|
+
tokens: { color: '#e3e6e8' }
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
if: { focus: true, inverse: true, pressed: true },
|
|
1033
|
+
tokens: { color: '#e3e6e8', outerBorderColor: '#e3e6e8' }
|
|
1034
|
+
},
|
|
1035
|
+
{ if: { light: true }, tokens: { color: '#676e73' } },
|
|
1036
|
+
{
|
|
1037
|
+
if: { focus: true, light: true },
|
|
1038
|
+
tokens: { color: '#676e73', outerBorderColor: '#676e73' }
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
if: { hover: true, light: true },
|
|
1042
|
+
tokens: { color: '#414547', textLine: 'none' }
|
|
1043
|
+
}
|
|
1044
|
+
],
|
|
1045
|
+
tokens: {
|
|
1046
|
+
alignSelf: 'flex-start',
|
|
1047
|
+
blockFontName: 'HelveticaNow',
|
|
1048
|
+
blockFontSize: 16,
|
|
1049
|
+
blockFontWeight: '400',
|
|
1050
|
+
blockLineHeight: 1.5,
|
|
1051
|
+
borderRadius: 4,
|
|
1052
|
+
color: '#2b8000',
|
|
1053
|
+
icon: null,
|
|
1054
|
+
iconSize: 24,
|
|
1055
|
+
iconSpace: 1,
|
|
1056
|
+
iconTranslateX: 0,
|
|
1057
|
+
iconTranslateY: 0,
|
|
1058
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
1059
|
+
outerBorderGap: 2,
|
|
1060
|
+
outerBorderOutline: 'none',
|
|
1061
|
+
outerBorderWidth: 2,
|
|
1062
|
+
textLine: 'underline',
|
|
1063
|
+
textLineStyle: 'solid'
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
List: {
|
|
1067
|
+
appearances: {
|
|
1068
|
+
compact: {
|
|
1069
|
+
description: 'When true it will reduce the line height of the list item.',
|
|
1070
|
+
type: 'variant',
|
|
1071
|
+
values: [ true ]
|
|
1072
|
+
},
|
|
1073
|
+
size: {
|
|
1074
|
+
description: 'Indicates list item text size.',
|
|
1075
|
+
type: 'variant',
|
|
1076
|
+
values: [ 'large', 'small' ]
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
rules: [
|
|
1080
|
+
{
|
|
1081
|
+
if: { size: 'large' },
|
|
1082
|
+
tokens: { itemFontSize: 20, itemLineHeight: 1.6, listGutter: 12 }
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
if: { size: 'small' },
|
|
1086
|
+
tokens: {
|
|
1087
|
+
itemFontSize: 14,
|
|
1088
|
+
itemLineHeight: 1.42857142857,
|
|
1089
|
+
listGutter: 12
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
{ if: { compact: true }, tokens: { itemLineHeight: 1.25 } },
|
|
1093
|
+
{
|
|
1094
|
+
if: { compact: true, size: 'small' },
|
|
1095
|
+
tokens: { itemLineHeight: 1.14285714286 }
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
if: { compact: true, size: 'large' },
|
|
1099
|
+
tokens: { itemLineHeight: 1.2 }
|
|
1100
|
+
}
|
|
1101
|
+
],
|
|
1102
|
+
tokens: {
|
|
1103
|
+
dividerColor: '#b2b9bf',
|
|
1104
|
+
dividerSize: 1,
|
|
1105
|
+
interItemMargin: 8,
|
|
1106
|
+
interItemMarginWithDivider: 16,
|
|
1107
|
+
itemBulletColor: '#4b286d',
|
|
1108
|
+
itemBulletContainerAlign: 'center',
|
|
1109
|
+
itemBulletContainerWidth: 16,
|
|
1110
|
+
itemBulletHeight: 4,
|
|
1111
|
+
itemBulletWidth: 4,
|
|
1112
|
+
itemFontName: 'HelveticaNow',
|
|
1113
|
+
itemFontSize: 16,
|
|
1114
|
+
itemFontWeight: '400',
|
|
1115
|
+
itemIconColor: '#4b286d',
|
|
1116
|
+
itemIconSize: 16,
|
|
1117
|
+
itemLineHeight: 1.5,
|
|
1118
|
+
listGutter: 12
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
Modal: {
|
|
1122
|
+
appearances: {
|
|
1123
|
+
maxWidth: {
|
|
1124
|
+
description: 'Whether a modal should expand responsively to the maximum of 8 layout columns width',
|
|
1125
|
+
type: 'state',
|
|
1126
|
+
values: [ true ]
|
|
1127
|
+
},
|
|
1128
|
+
viewport: {
|
|
1129
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
1130
|
+
type: 'state',
|
|
1131
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
rules: [
|
|
1135
|
+
{
|
|
1136
|
+
if: { viewport: [ 'xs', 'sm' ] },
|
|
1137
|
+
tokens: { height: '100%' }
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
if: { viewport: [ 'md', 'lg', 'xl' ] },
|
|
1141
|
+
tokens: {
|
|
1142
|
+
containerPaddingBottom: 32,
|
|
1143
|
+
containerPaddingTop: 32,
|
|
1144
|
+
maxWidth: 576
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
if: { maxWidth: true, viewport: [ 'md', 'lg', 'xl' ] },
|
|
1149
|
+
tokens: {
|
|
1150
|
+
containerPaddingLeft: 16,
|
|
1151
|
+
containerPaddingRight: 16,
|
|
1152
|
+
maxWidth: '66.67%'
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
],
|
|
1156
|
+
tokens: {
|
|
1157
|
+
backdropColor: 'rgba(244, 244, 247, 0.97)',
|
|
1158
|
+
backdropOpacity: 1,
|
|
1159
|
+
backgroundColor: '#ffffff',
|
|
1160
|
+
borderRadius: 4,
|
|
1161
|
+
closeIcon: PaletteIconClose,
|
|
1162
|
+
closeIconColor: '#414547',
|
|
1163
|
+
closeIconSize: 24,
|
|
1164
|
+
containerPaddingBottom: 0,
|
|
1165
|
+
containerPaddingLeft: 0,
|
|
1166
|
+
containerPaddingRight: 0,
|
|
1167
|
+
containerPaddingTop: 0,
|
|
1168
|
+
height: null,
|
|
1169
|
+
maxWidth: '100%',
|
|
1170
|
+
paddingBottom: 24,
|
|
1171
|
+
paddingLeft: 24,
|
|
1172
|
+
paddingRight: 24,
|
|
1173
|
+
paddingTop: 24,
|
|
1174
|
+
shadow: {
|
|
1175
|
+
blur: 8,
|
|
1176
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
1177
|
+
inset: false,
|
|
1178
|
+
offsetX: 0,
|
|
1179
|
+
offsetY: 4,
|
|
1180
|
+
spread: 0
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
Notification: {
|
|
1185
|
+
appearances: {
|
|
1186
|
+
style: { type: 'state', values: [ 'success', 'warning', 'error' ] },
|
|
1187
|
+
system: { type: 'state', values: [ true ] }
|
|
1188
|
+
},
|
|
1189
|
+
rules: [
|
|
1190
|
+
{
|
|
1191
|
+
if: { system: true },
|
|
1192
|
+
tokens: {
|
|
1193
|
+
borderLeftWidth: 0,
|
|
1194
|
+
borderRadius: 0,
|
|
1195
|
+
borderRightWidth: 0,
|
|
1196
|
+
borderTopWidth: 0,
|
|
1197
|
+
iconGap: 12,
|
|
1198
|
+
paddingBottom: 16,
|
|
1199
|
+
paddingLeft: 16,
|
|
1200
|
+
paddingRight: 16,
|
|
1201
|
+
paddingTop: 16
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
if: { style: 'success' },
|
|
1206
|
+
tokens: {
|
|
1207
|
+
backgroundColor: '#f4f9f2',
|
|
1208
|
+
borderColor: '#2b8000',
|
|
1209
|
+
icon: PaletteIconStatusSuccess,
|
|
1210
|
+
iconColor: '#2b8000'
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
if: { style: 'warning' },
|
|
1215
|
+
tokens: {
|
|
1216
|
+
backgroundColor: '#fff9ee',
|
|
1217
|
+
borderColor: '#b4872c',
|
|
1218
|
+
dismissIcon: null,
|
|
1219
|
+
icon: PaletteIconStatusWarning,
|
|
1220
|
+
iconColor: '#b4872c'
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
if: { style: 'error' },
|
|
1225
|
+
tokens: {
|
|
1226
|
+
backgroundColor: '#fff6f8',
|
|
1227
|
+
borderColor: '#e12339',
|
|
1228
|
+
dismissIcon: null,
|
|
1229
|
+
icon: PaletteIconStatusError,
|
|
1230
|
+
iconColor: '#e12339'
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
],
|
|
1234
|
+
tokens: {
|
|
1235
|
+
backgroundColor: '#f4f4f7',
|
|
1236
|
+
borderBottomWidth: 1,
|
|
1237
|
+
borderColor: '#676e73',
|
|
1238
|
+
borderLeftWidth: 1,
|
|
1239
|
+
borderRadius: 6,
|
|
1240
|
+
borderRightWidth: 1,
|
|
1241
|
+
borderTopWidth: 1,
|
|
1242
|
+
color: '#414547',
|
|
1243
|
+
dismissButtonGap: 16,
|
|
1244
|
+
dismissIcon: PaletteIconClose,
|
|
1245
|
+
dismissIconColor: '#414547',
|
|
1246
|
+
dismissIconSize: 24,
|
|
1247
|
+
fontName: 'HelveticaNow',
|
|
1248
|
+
fontSize: 16,
|
|
1249
|
+
fontWeight: '400',
|
|
1250
|
+
icon: null,
|
|
1251
|
+
iconColor: null,
|
|
1252
|
+
iconGap: 16,
|
|
1253
|
+
iconSize: 24,
|
|
1254
|
+
lineHeight: 1.5,
|
|
1255
|
+
paddingBottom: 12,
|
|
1256
|
+
paddingLeft: 12,
|
|
1257
|
+
paddingRight: 12,
|
|
1258
|
+
paddingTop: 12
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
Pagination: {
|
|
1262
|
+
appearances: {
|
|
1263
|
+
viewport: {
|
|
1264
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
1265
|
+
type: 'state',
|
|
1266
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
rules: [
|
|
1270
|
+
{
|
|
1271
|
+
if: { viewport: [ 'md', 'lg', 'xl' ] },
|
|
1272
|
+
tokens: { truncateAbove: 6 }
|
|
1273
|
+
}
|
|
1274
|
+
],
|
|
1275
|
+
tokens: {
|
|
1276
|
+
color: '#676e73',
|
|
1277
|
+
fontName: 'HelveticaNow',
|
|
1278
|
+
fontSize: 16,
|
|
1279
|
+
fontWeight: '400',
|
|
1280
|
+
gap: 2,
|
|
1281
|
+
lineHeight: 1.5,
|
|
1282
|
+
truncateAbove: 4
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
PaginationPageButton: {
|
|
1286
|
+
appearances: {
|
|
1287
|
+
focus: {
|
|
1288
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
1289
|
+
type: 'state',
|
|
1290
|
+
values: [ true ]
|
|
1291
|
+
},
|
|
1292
|
+
hover: {
|
|
1293
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1294
|
+
type: 'state',
|
|
1295
|
+
values: [ true ]
|
|
1296
|
+
},
|
|
1297
|
+
pressed: {
|
|
1298
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
1299
|
+
type: 'state',
|
|
1300
|
+
values: [ true ]
|
|
1301
|
+
},
|
|
1302
|
+
selected: {
|
|
1303
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
1304
|
+
type: 'state',
|
|
1305
|
+
values: [ true ]
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1308
|
+
rules: [
|
|
1309
|
+
{
|
|
1310
|
+
if: { hover: true },
|
|
1311
|
+
tokens: { borderColor: '#676e73', textLine: 'none' }
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
if: { focus: true },
|
|
1315
|
+
tokens: { borderColor: '#676e73', borderWidth: 3 }
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
if: { selected: true },
|
|
1319
|
+
tokens: {
|
|
1320
|
+
backgroundColor: '#676e73',
|
|
1321
|
+
color: '#ffffff',
|
|
1322
|
+
textLine: 'none'
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
if: { pressed: true },
|
|
1327
|
+
tokens: { backgroundColor: '#676e73', color: '#ffffff' }
|
|
1328
|
+
}
|
|
1329
|
+
],
|
|
1330
|
+
tokens: {
|
|
1331
|
+
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
1332
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
1333
|
+
borderRadius: 32,
|
|
1334
|
+
borderWidth: 1,
|
|
1335
|
+
color: '#676e73',
|
|
1336
|
+
fontName: 'HelveticaNow',
|
|
1337
|
+
fontSize: 16,
|
|
1338
|
+
fontWeight: '400',
|
|
1339
|
+
lineHeight: 1.5,
|
|
1340
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
1341
|
+
outerBorderGap: 4,
|
|
1342
|
+
outerBorderWidth: 4,
|
|
1343
|
+
paddingBottom: 4,
|
|
1344
|
+
paddingLeft: 8,
|
|
1345
|
+
paddingRight: 8,
|
|
1346
|
+
paddingTop: 4,
|
|
1347
|
+
textAlign: 'center',
|
|
1348
|
+
textLine: 'underline',
|
|
1349
|
+
width: 32
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
PaginationSideButton: {
|
|
1353
|
+
appearances: {
|
|
1354
|
+
direction: {
|
|
1355
|
+
description: "Determines which way does the button navigate in Pagination's context",
|
|
1356
|
+
type: 'state',
|
|
1357
|
+
values: [ 'previous', 'next' ]
|
|
1358
|
+
},
|
|
1359
|
+
focus: {
|
|
1360
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
1361
|
+
type: 'state',
|
|
1362
|
+
values: [ true ]
|
|
1363
|
+
},
|
|
1364
|
+
hover: {
|
|
1365
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1366
|
+
type: 'state',
|
|
1367
|
+
values: [ true ]
|
|
1368
|
+
},
|
|
1369
|
+
pressed: {
|
|
1370
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
1371
|
+
type: 'state',
|
|
1372
|
+
values: [ true ]
|
|
1373
|
+
},
|
|
1374
|
+
selected: {
|
|
1375
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
1376
|
+
type: 'state',
|
|
1377
|
+
values: [ true ]
|
|
1378
|
+
},
|
|
1379
|
+
viewport: {
|
|
1380
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
1381
|
+
type: 'state',
|
|
1382
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
rules: [
|
|
1386
|
+
{
|
|
1387
|
+
if: { viewport: [ 'xs', 'sm' ] },
|
|
1388
|
+
tokens: {
|
|
1389
|
+
borderRadius: 32,
|
|
1390
|
+
paddingBottom: 4,
|
|
1391
|
+
paddingTop: 4,
|
|
1392
|
+
width: 32
|
|
1393
|
+
}
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
if: { hover: true },
|
|
1397
|
+
tokens: { borderColor: '#676e73', iconDisplace: 4, textLine: 'none' }
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
if: { focus: true },
|
|
1401
|
+
tokens: { borderColor: '#676e73', borderWidth: 3 }
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
if: { selected: true },
|
|
1405
|
+
tokens: {
|
|
1406
|
+
backgroundColor: '#676e73',
|
|
1407
|
+
color: '#ffffff',
|
|
1408
|
+
textLine: 'none'
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
if: { pressed: true },
|
|
1413
|
+
tokens: { backgroundColor: '#676e73', color: '#ffffff' }
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
if: { direction: 'previous' },
|
|
1417
|
+
tokens: { icon: PaletteIconArrowLeft }
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
if: { direction: 'next' },
|
|
1421
|
+
tokens: { icon: PaletteIconArrowRight }
|
|
1422
|
+
}
|
|
1423
|
+
],
|
|
1424
|
+
tokens: {
|
|
1425
|
+
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
1426
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
1427
|
+
borderRadius: 4,
|
|
1428
|
+
borderWidth: 1,
|
|
1429
|
+
color: '#676e73',
|
|
1430
|
+
fontName: 'HelveticaNow',
|
|
1431
|
+
fontSize: 16,
|
|
1432
|
+
fontWeight: '400',
|
|
1433
|
+
icon: null,
|
|
1434
|
+
iconDisplace: 0,
|
|
1435
|
+
iconSize: 24,
|
|
1436
|
+
lineHeight: 1.5,
|
|
1437
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
1438
|
+
paddingBottom: 12,
|
|
1439
|
+
paddingLeft: 8,
|
|
1440
|
+
paddingRight: 8,
|
|
1441
|
+
paddingTop: 12,
|
|
1442
|
+
textAlign: 'center',
|
|
1443
|
+
textLine: 'underline',
|
|
1444
|
+
width: null
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
Progress: {
|
|
1448
|
+
appearances: { size: { type: 'variant', values: [ 'mini' ] } },
|
|
1449
|
+
rules: [ { if: { size: 'mini' }, tokens: { height: 8 } } ],
|
|
1450
|
+
tokens: {
|
|
1451
|
+
backgroundColor: '#f4f4f7',
|
|
1452
|
+
borderColor: '#b2b9bf',
|
|
1453
|
+
borderRadius: 12,
|
|
1454
|
+
borderWidth: 1,
|
|
1455
|
+
height: 16
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
ProgressBar: {
|
|
1459
|
+
appearances: {
|
|
1460
|
+
inactive: {
|
|
1461
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
1462
|
+
type: 'state',
|
|
1463
|
+
values: [ true ]
|
|
1464
|
+
},
|
|
1465
|
+
negative: { type: 'variant', values: [ true ] }
|
|
1466
|
+
},
|
|
1467
|
+
rules: [
|
|
1468
|
+
{
|
|
1469
|
+
if: { inactive: true },
|
|
1470
|
+
tokens: {
|
|
1471
|
+
backgroundColor: '#b2b9bf',
|
|
1472
|
+
gradient: null,
|
|
1473
|
+
outlineColor: '#2c2e30'
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
if: { negative: true },
|
|
1478
|
+
tokens: {
|
|
1479
|
+
backgroundColor: '#c12335',
|
|
1480
|
+
gradient: null,
|
|
1481
|
+
outlineColor: '#c12335'
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
],
|
|
1485
|
+
tokens: {
|
|
1486
|
+
backgroundColor: '#2b8000',
|
|
1487
|
+
borderRadius: 12,
|
|
1488
|
+
gradient: {
|
|
1489
|
+
angle: 135,
|
|
1490
|
+
stops: [
|
|
1491
|
+
{ color: '#00784a', stop: 0 },
|
|
1492
|
+
{ color: '#66cc00', stop: 1 }
|
|
1493
|
+
],
|
|
1494
|
+
type: 'linear'
|
|
1495
|
+
},
|
|
1496
|
+
outlineColor: '#2b8000',
|
|
1497
|
+
outlineWidth: 1
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
Radio: {
|
|
1501
|
+
appearances: {
|
|
1502
|
+
checked: {
|
|
1503
|
+
description: 'Corresponds to a selected state for a checkbox or radio',
|
|
1504
|
+
type: 'state',
|
|
1505
|
+
values: [ true ]
|
|
1506
|
+
},
|
|
1507
|
+
error: { type: 'state', values: [ true ] },
|
|
1508
|
+
focus: {
|
|
1509
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
1510
|
+
type: 'state',
|
|
1511
|
+
values: [ true ]
|
|
1512
|
+
},
|
|
1513
|
+
hover: {
|
|
1514
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1515
|
+
type: 'state',
|
|
1516
|
+
values: [ true ]
|
|
1517
|
+
},
|
|
1518
|
+
inactive: {
|
|
1519
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
1520
|
+
type: 'state',
|
|
1521
|
+
values: [ true ]
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
rules: [
|
|
1525
|
+
{
|
|
1526
|
+
if: { error: true },
|
|
1527
|
+
tokens: { inputBorderColor: '#e12339' }
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
if: { hover: true },
|
|
1531
|
+
tokens: { outerBorderColor: '#e3e6e8', outerBorderWidth: 2 }
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
if: { focus: true },
|
|
1535
|
+
tokens: { inputBorderColor: '#7c53a5', inputBorderWidth: 3 }
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
if: { inactive: true },
|
|
1539
|
+
tokens: {
|
|
1540
|
+
inputBackgroundColor: '#e3e6e8',
|
|
1541
|
+
inputBorderColor: 'rgba(0, 0, 0, 0)',
|
|
1542
|
+
labelColor: '#676e73'
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
],
|
|
1546
|
+
tokens: {
|
|
1547
|
+
checkedBackgroundColor: '#7c53a5',
|
|
1548
|
+
checkedSize: 12,
|
|
1549
|
+
containerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
1550
|
+
containerBorderRadius: 0,
|
|
1551
|
+
containerOpacity: 1,
|
|
1552
|
+
containerPaddingBottom: 0,
|
|
1553
|
+
containerPaddingLeft: 0,
|
|
1554
|
+
containerPaddingRight: 0,
|
|
1555
|
+
containerPaddingTop: 0,
|
|
1556
|
+
containerShadow: null,
|
|
1557
|
+
descriptionFontSize: 14,
|
|
1558
|
+
descriptionLineHeight: 1.42857142857,
|
|
1559
|
+
descriptionMarginLeft: null,
|
|
1560
|
+
inputBackgroundColor: '#ffffff',
|
|
1561
|
+
inputBorderColor: '#676e73',
|
|
1562
|
+
inputBorderWidth: 1,
|
|
1563
|
+
inputOutlineColor: 'rgba(0, 0, 0, 0)',
|
|
1564
|
+
inputOutlineWidth: 0,
|
|
1565
|
+
inputSize: 20,
|
|
1566
|
+
labelColor: '#414547',
|
|
1567
|
+
labelFontName: 'HelveticaNow',
|
|
1568
|
+
labelFontSize: 16,
|
|
1569
|
+
labelFontWeight: '400',
|
|
1570
|
+
labelLineHeight: 1.5,
|
|
1571
|
+
labelMarginLeft: 10,
|
|
1572
|
+
outerBorderColor: 'transparent',
|
|
1573
|
+
outerBorderGap: 0,
|
|
1574
|
+
outerBorderWidth: 0
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
RadioCard: {
|
|
1578
|
+
appearances: {
|
|
1579
|
+
checked: {
|
|
1580
|
+
description: 'Corresponds to a selected state for a checkbox or radio',
|
|
1581
|
+
type: 'state',
|
|
1582
|
+
values: [ true ]
|
|
1583
|
+
},
|
|
1584
|
+
error: { type: 'state', values: [ true ] },
|
|
1585
|
+
focus: {
|
|
1586
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
1587
|
+
type: 'state',
|
|
1588
|
+
values: [ true ]
|
|
1589
|
+
},
|
|
1590
|
+
hover: {
|
|
1591
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1592
|
+
type: 'state',
|
|
1593
|
+
values: [ true ]
|
|
1594
|
+
},
|
|
1595
|
+
inactive: {
|
|
1596
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
1597
|
+
type: 'state',
|
|
1598
|
+
values: [ true ]
|
|
1599
|
+
},
|
|
1600
|
+
pressed: {
|
|
1601
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
1602
|
+
type: 'state',
|
|
1603
|
+
values: [ true ]
|
|
1604
|
+
},
|
|
1605
|
+
viewport: {
|
|
1606
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
1607
|
+
type: 'state',
|
|
1608
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
rules: [
|
|
1612
|
+
{
|
|
1613
|
+
if: { viewport: [ 'lg', 'xl' ] },
|
|
1614
|
+
tokens: {
|
|
1615
|
+
fontSize: 24,
|
|
1616
|
+
lineHeight: 1.33333333333,
|
|
1617
|
+
paddingBottom: 24,
|
|
1618
|
+
paddingLeft: 16,
|
|
1619
|
+
paddingRight: 24,
|
|
1620
|
+
paddingTop: 16
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
if: { hover: true },
|
|
1625
|
+
tokens: {
|
|
1626
|
+
borderColor: '#676e73',
|
|
1627
|
+
outerBorderColor: '#e3e6e8',
|
|
1628
|
+
outerBorderWidth: 2,
|
|
1629
|
+
radioOuterBorderColor: '#e3e6e8',
|
|
1630
|
+
radioOuterBorderWidth: 2
|
|
1631
|
+
}
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
description: 'Pressed state matches hover state plus light grey background',
|
|
1635
|
+
if: { pressed: true },
|
|
1636
|
+
tokens: {
|
|
1637
|
+
backgroundColor: '#f4f4f7',
|
|
1638
|
+
borderColor: '#676e73',
|
|
1639
|
+
outerBorderColor: '#e3e6e8',
|
|
1640
|
+
outerBorderWidth: 2
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
if: { focus: true },
|
|
1645
|
+
tokens: {
|
|
1646
|
+
outerBorderColor: '#676e73',
|
|
1647
|
+
outerBorderGap: 2,
|
|
1648
|
+
outerBorderWidth: 2,
|
|
1649
|
+
radioInputBorderColor: '#7c53a5',
|
|
1650
|
+
radioInputBorderWidth: 3
|
|
1651
|
+
}
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
if: { inactive: true },
|
|
1655
|
+
tokens: {
|
|
1656
|
+
backgroundColor: '#f4f4f7',
|
|
1657
|
+
borderColor: 'transparent',
|
|
1658
|
+
color: '#676e73',
|
|
1659
|
+
radioInputBackgroundColor: '#e3e6e8',
|
|
1660
|
+
radioInputBorderColor: 'rgba(0, 0, 0, 0)'
|
|
1661
|
+
}
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
if: { error: true },
|
|
1665
|
+
tokens: {
|
|
1666
|
+
borderColor: '#e12339',
|
|
1667
|
+
color: '#e12339',
|
|
1668
|
+
radioInputBorderColor: '#e12339'
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
],
|
|
1672
|
+
tokens: {
|
|
1673
|
+
backgroundColor: '#ffffff',
|
|
1674
|
+
borderColor: '#b2b9bf',
|
|
1675
|
+
borderRadius: 6,
|
|
1676
|
+
borderWidth: 1,
|
|
1677
|
+
color: '#2c2e30',
|
|
1678
|
+
contentSpace: 2,
|
|
1679
|
+
flex: 1,
|
|
1680
|
+
fontName: 'HelveticaNow',
|
|
1681
|
+
fontSize: 20,
|
|
1682
|
+
fontWeight: '500',
|
|
1683
|
+
letterSpacing: 0,
|
|
1684
|
+
lineHeight: 1.4,
|
|
1685
|
+
minWidth: 264,
|
|
1686
|
+
outerBorderColor: 'transparent',
|
|
1687
|
+
outerBorderGap: 0,
|
|
1688
|
+
outerBorderWidth: 0,
|
|
1689
|
+
paddingBottom: 16,
|
|
1690
|
+
paddingLeft: 10,
|
|
1691
|
+
paddingRight: 16,
|
|
1692
|
+
paddingTop: 16,
|
|
1693
|
+
radioCheckedBackgroundColor: '#7c53a5',
|
|
1694
|
+
radioCheckedSize: 12,
|
|
1695
|
+
radioInputBackgroundColor: '#ffffff',
|
|
1696
|
+
radioInputBorderColor: '#676e73',
|
|
1697
|
+
radioInputBorderWidth: 1,
|
|
1698
|
+
radioInputOutlineColor: 'rgba(0, 0, 0, 0)',
|
|
1699
|
+
radioInputOutlineWidth: 0,
|
|
1700
|
+
radioInputSize: 20,
|
|
1701
|
+
radioOuterBorderColor: 'transparent',
|
|
1702
|
+
radioOuterBorderGap: 0,
|
|
1703
|
+
radioOuterBorderWidth: 0,
|
|
1704
|
+
radioSpace: 2,
|
|
1705
|
+
shadow: null,
|
|
1706
|
+
textTransform: 'none'
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
RadioCardGroup: {
|
|
1710
|
+
appearances: {
|
|
1711
|
+
fullWidth: {
|
|
1712
|
+
description: 'Makes cards always occupy the full width of the parent, regardless of viewport',
|
|
1713
|
+
type: 'variant',
|
|
1714
|
+
values: [ true ]
|
|
1715
|
+
},
|
|
1716
|
+
viewport: {
|
|
1717
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
1718
|
+
type: 'state',
|
|
1719
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
rules: [
|
|
1723
|
+
{
|
|
1724
|
+
if: { fullWidth: null, viewport: [ 'lg', 'xl' ] },
|
|
1725
|
+
tokens: { direction: 'row', space: 4 }
|
|
1726
|
+
}
|
|
1727
|
+
],
|
|
1728
|
+
tokens: { direction: 'column', fieldSpace: 3, space: 3 }
|
|
1729
|
+
},
|
|
1730
|
+
RadioGroup: { appearances: {}, rules: [], tokens: { fieldSpace: 2, space: 2 } },
|
|
1731
|
+
Search: {
|
|
1732
|
+
appearances: {
|
|
1733
|
+
focus: {
|
|
1734
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
1735
|
+
type: 'state',
|
|
1736
|
+
values: [ true ]
|
|
1737
|
+
},
|
|
1738
|
+
hover: {
|
|
1739
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1740
|
+
type: 'state',
|
|
1741
|
+
values: [ true ]
|
|
1742
|
+
},
|
|
1743
|
+
inactive: {
|
|
1744
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
1745
|
+
type: 'state',
|
|
1746
|
+
values: [ true ]
|
|
1747
|
+
}
|
|
1748
|
+
},
|
|
1749
|
+
rules: [
|
|
1750
|
+
{
|
|
1751
|
+
if: { hover: true, inactive: null },
|
|
1752
|
+
tokens: {
|
|
1753
|
+
outerBackgroundColor: '#e3e6e8',
|
|
1754
|
+
outerBorderColor: '#e3e6e8'
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
if: { focus: true },
|
|
1759
|
+
tokens: { borderColor: '#7c53a5', borderWidth: 3 }
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
if: { inactive: true },
|
|
1763
|
+
tokens: { backgroundColor: '#f4f4f7', borderColor: '#f4f4f7' }
|
|
1764
|
+
}
|
|
1765
|
+
],
|
|
1766
|
+
tokens: {
|
|
1767
|
+
backgroundColor: '#ffffff',
|
|
1768
|
+
borderColor: '#676e73',
|
|
1769
|
+
borderRadius: 32,
|
|
1770
|
+
borderWidth: 1,
|
|
1771
|
+
buttonsGap: 1,
|
|
1772
|
+
clearButtonIcon: PaletteIconTimes,
|
|
1773
|
+
color: '#414547',
|
|
1774
|
+
fontName: 'HelveticaNow',
|
|
1775
|
+
fontSize: 16,
|
|
1776
|
+
fontWeight: '400',
|
|
1777
|
+
lineHeight: 1.5,
|
|
1778
|
+
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
1779
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
1780
|
+
outerBorderRadius: 32,
|
|
1781
|
+
outerBorderWidth: 2,
|
|
1782
|
+
paddingBottom: 12,
|
|
1783
|
+
paddingLeft: 24,
|
|
1784
|
+
paddingRight: 8,
|
|
1785
|
+
paddingTop: 12,
|
|
1786
|
+
placeholderColor: '#414547',
|
|
1787
|
+
submitButtonIcon: PaletteIconSearchBold
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
SearchButton: {
|
|
1791
|
+
appearances: {
|
|
1792
|
+
focus: {
|
|
1793
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
1794
|
+
type: 'state',
|
|
1795
|
+
values: [ true ]
|
|
1796
|
+
},
|
|
1797
|
+
hover: {
|
|
1798
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1799
|
+
type: 'state',
|
|
1800
|
+
values: [ true ]
|
|
1801
|
+
},
|
|
1802
|
+
inactive: {
|
|
1803
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
1804
|
+
type: 'state',
|
|
1805
|
+
values: [ true ]
|
|
1806
|
+
},
|
|
1807
|
+
pressed: {
|
|
1808
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
1809
|
+
type: 'state',
|
|
1810
|
+
values: [ true ]
|
|
1811
|
+
},
|
|
1812
|
+
priority: { description: '', type: 'variant', values: [ 'high' ] }
|
|
1813
|
+
},
|
|
1814
|
+
rules: [
|
|
1815
|
+
{
|
|
1816
|
+
if: { priority: 'high' },
|
|
1817
|
+
tokens: { backgroundColor: '#4b286d', iconColor: '#ffffff' }
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
if: { hover: true },
|
|
1821
|
+
tokens: {
|
|
1822
|
+
backgroundColor: '#7c53a5',
|
|
1823
|
+
borderWidth: 0,
|
|
1824
|
+
iconColor: '#ffffff'
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
if: { focus: true },
|
|
1829
|
+
tokens: {
|
|
1830
|
+
backgroundColor: 'transparent',
|
|
1831
|
+
borderColor: '#4b286d',
|
|
1832
|
+
borderWidth: 3,
|
|
1833
|
+
iconColor: '#4b286d'
|
|
1834
|
+
}
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
if: { pressed: true },
|
|
1838
|
+
tokens: {
|
|
1839
|
+
backgroundColor: '#3f2a54',
|
|
1840
|
+
borderWidth: 0,
|
|
1841
|
+
iconColor: '#ffffff'
|
|
1842
|
+
}
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
if: { inactive: true },
|
|
1846
|
+
tokens: {
|
|
1847
|
+
backgroundColor: '#e3e6e8',
|
|
1848
|
+
borderWidth: 0,
|
|
1849
|
+
iconColor: '#676e73'
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
],
|
|
1853
|
+
tokens: {
|
|
1854
|
+
backgroundColor: null,
|
|
1855
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
1856
|
+
borderRadius: 32,
|
|
1857
|
+
borderWidth: 0,
|
|
1858
|
+
iconColor: '#676e73',
|
|
1859
|
+
iconSize: 20,
|
|
1860
|
+
opacity: 1,
|
|
1861
|
+
paddingBottom: 8,
|
|
1862
|
+
paddingLeft: 8,
|
|
1863
|
+
paddingRight: 8,
|
|
1864
|
+
paddingTop: 8,
|
|
1865
|
+
shadow: null
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
Select: {
|
|
1869
|
+
appearances: {
|
|
1870
|
+
focus: {
|
|
1871
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
1872
|
+
type: 'state',
|
|
1873
|
+
values: [ true ]
|
|
1874
|
+
},
|
|
1875
|
+
hover: {
|
|
1876
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1877
|
+
type: 'state',
|
|
1878
|
+
values: [ true ]
|
|
1879
|
+
},
|
|
1880
|
+
inactive: {
|
|
1881
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
1882
|
+
type: 'state',
|
|
1883
|
+
values: [ true ]
|
|
1884
|
+
},
|
|
1885
|
+
validation: {
|
|
1886
|
+
description: 'Validation states for form inputs',
|
|
1887
|
+
type: 'state',
|
|
1888
|
+
values: [ 'error', 'success' ]
|
|
1889
|
+
}
|
|
1890
|
+
},
|
|
1891
|
+
rules: [
|
|
1892
|
+
{
|
|
1893
|
+
if: { hover: true, inactive: null },
|
|
1894
|
+
tokens: {
|
|
1895
|
+
outerBackgroundColor: '#e3e6e8',
|
|
1896
|
+
outerBorderColor: '#e3e6e8'
|
|
1897
|
+
}
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
if: { validation: 'success' },
|
|
1901
|
+
tokens: {
|
|
1902
|
+
borderColor: '#2b8000',
|
|
1903
|
+
validationIcon: PaletteIconStatusSuccess,
|
|
1904
|
+
validationIconColor: '#2b8000'
|
|
1905
|
+
}
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
if: { validation: 'error' },
|
|
1909
|
+
tokens: {
|
|
1910
|
+
borderColor: '#e12339',
|
|
1911
|
+
validationIcon: PaletteIconStatusError,
|
|
1912
|
+
validationIconColor: '#e12339'
|
|
1913
|
+
}
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
if: { focus: true },
|
|
1917
|
+
tokens: {
|
|
1918
|
+
borderColor: '#7c53a5',
|
|
1919
|
+
borderWidth: 3,
|
|
1920
|
+
validationIcon: null
|
|
1921
|
+
}
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
if: { inactive: true },
|
|
1925
|
+
tokens: { backgroundColor: '#f4f4f7', borderColor: '#f4f4f7' }
|
|
1926
|
+
}
|
|
1927
|
+
],
|
|
1928
|
+
tokens: {
|
|
1929
|
+
backgroundColor: '#ffffff',
|
|
1930
|
+
borderColor: '#676e73',
|
|
1931
|
+
borderRadius: 4,
|
|
1932
|
+
borderWidth: 1,
|
|
1933
|
+
color: '#414547',
|
|
1934
|
+
fontName: 'HelveticaNow',
|
|
1935
|
+
fontSize: 16,
|
|
1936
|
+
fontWeight: '400',
|
|
1937
|
+
height: 48,
|
|
1938
|
+
icon: PaletteIconCaretDown,
|
|
1939
|
+
iconColor: '#2b8000',
|
|
1940
|
+
iconSize: 24,
|
|
1941
|
+
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
1942
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
1943
|
+
outerBorderWidth: 2,
|
|
1944
|
+
paddingBottom: 12,
|
|
1945
|
+
paddingLeft: 16,
|
|
1946
|
+
paddingRight: 16,
|
|
1947
|
+
paddingTop: 12,
|
|
1948
|
+
validationIcon: null,
|
|
1949
|
+
validationIconColor: 'rgba(0, 0, 0, 0)',
|
|
1950
|
+
validationIconSize: 24
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
SideNav: {
|
|
1954
|
+
appearances: {},
|
|
1955
|
+
rules: [],
|
|
1956
|
+
tokens: { borderColor: '#b2b9bf', borderStyle: 'solid', borderWidth: 1 }
|
|
1957
|
+
},
|
|
1958
|
+
SideNavItem: {
|
|
1959
|
+
appearances: {
|
|
1960
|
+
active: {
|
|
1961
|
+
description: 'Used to mark currently active Item or and ItemGroup containing the currently active Item',
|
|
1962
|
+
type: 'state',
|
|
1963
|
+
values: [ true, false ]
|
|
1964
|
+
},
|
|
1965
|
+
expanded: {
|
|
1966
|
+
description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
|
|
1967
|
+
type: 'state',
|
|
1968
|
+
values: [ true ]
|
|
1969
|
+
},
|
|
1970
|
+
hover: {
|
|
1971
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1972
|
+
type: 'state',
|
|
1973
|
+
values: [ true ]
|
|
1974
|
+
},
|
|
1975
|
+
type: {
|
|
1976
|
+
description: '`parent` being the toggle button for an ItemsGroup, and `child` an element of the ItemGroup',
|
|
1977
|
+
type: 'state',
|
|
1978
|
+
values: [ 'child', 'parent' ]
|
|
1979
|
+
}
|
|
1980
|
+
},
|
|
1981
|
+
rules: [
|
|
1982
|
+
{
|
|
1983
|
+
if: { active: true },
|
|
1984
|
+
tokens: {
|
|
1985
|
+
accentBackgroundColor: '#4b286d',
|
|
1986
|
+
color: '#4b286d',
|
|
1987
|
+
fontName: 'HelveticaNow',
|
|
1988
|
+
fontWeight: '700',
|
|
1989
|
+
paddingLeft: 12
|
|
1990
|
+
}
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
if: { type: 'child' },
|
|
1994
|
+
tokens: {
|
|
1995
|
+
accentBackgroundColor: '#f4f4f7',
|
|
1996
|
+
accentOffset: 16,
|
|
1997
|
+
borderWidth: 0,
|
|
1998
|
+
fontSize: 14,
|
|
1999
|
+
lineHeight: 1.4,
|
|
2000
|
+
paddingLeft: 36
|
|
2001
|
+
}
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
if: { active: true, type: 'parent' },
|
|
2005
|
+
tokens: { paddingLeft: 12 }
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
if: { active: true, expanded: true, type: 'parent' },
|
|
2009
|
+
tokens: {
|
|
2010
|
+
accentBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2011
|
+
color: '#414547',
|
|
2012
|
+
paddingLeft: 16
|
|
2013
|
+
}
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
if: { hover: true },
|
|
2017
|
+
tokens: { backgroundColor: '#f4f4f7', color: '#4b286d' }
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
if: { active: true, type: 'child' },
|
|
2021
|
+
tokens: {
|
|
2022
|
+
accentBackgroundColor: '#4b286d',
|
|
2023
|
+
accentPadding: 16,
|
|
2024
|
+
backgroundColor: '#f4f4f7',
|
|
2025
|
+
color: '#4b286d'
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
{
|
|
2029
|
+
if: { active: false, hover: true, type: 'child' },
|
|
2030
|
+
tokens: {
|
|
2031
|
+
accentBackgroundColor: '#ffffff',
|
|
2032
|
+
accentOffset: 0,
|
|
2033
|
+
accentWidth: 16,
|
|
2034
|
+
color: '#414547'
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
],
|
|
2038
|
+
tokens: {
|
|
2039
|
+
accentBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2040
|
+
accentOffset: 0,
|
|
2041
|
+
accentPadding: 0,
|
|
2042
|
+
accentWidth: 4,
|
|
2043
|
+
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2044
|
+
borderColor: '#b2b9bf',
|
|
2045
|
+
borderStyle: 'solid',
|
|
2046
|
+
borderWidth: 1,
|
|
2047
|
+
color: '#414547',
|
|
2048
|
+
fontName: 'HelveticaNow',
|
|
2049
|
+
fontSize: 16,
|
|
2050
|
+
fontWeight: '400',
|
|
2051
|
+
justifyContent: 'space-between',
|
|
2052
|
+
lineHeight: 1.5,
|
|
2053
|
+
paddingBottom: 16,
|
|
2054
|
+
paddingLeft: 16,
|
|
2055
|
+
paddingRight: 16,
|
|
2056
|
+
paddingTop: 16
|
|
2057
|
+
}
|
|
2058
|
+
},
|
|
2059
|
+
SideNavItemsGroup: {
|
|
2060
|
+
appearances: {
|
|
2061
|
+
expanded: {
|
|
2062
|
+
description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
|
|
2063
|
+
type: 'state',
|
|
2064
|
+
values: [ true ]
|
|
2065
|
+
}
|
|
2066
|
+
},
|
|
2067
|
+
rules: [
|
|
2068
|
+
{
|
|
2069
|
+
if: { expanded: true },
|
|
2070
|
+
tokens: { icon: PaletteIconCaretUp }
|
|
2071
|
+
}
|
|
2072
|
+
],
|
|
2073
|
+
tokens: {
|
|
2074
|
+
collapseDuration: 250,
|
|
2075
|
+
contentPaddingBottom: 0,
|
|
2076
|
+
contentPaddingLeft: 0,
|
|
2077
|
+
contentPaddingRight: 0,
|
|
2078
|
+
contentPaddingTop: 0,
|
|
2079
|
+
expandDuration: 300,
|
|
2080
|
+
icon: PaletteIconCaretDown,
|
|
2081
|
+
iconColor: '#4b286d',
|
|
2082
|
+
iconGap: 8,
|
|
2083
|
+
iconPosition: 'right',
|
|
2084
|
+
iconSize: 24,
|
|
2085
|
+
justifyContent: 'space-between',
|
|
2086
|
+
verticalAlign: 'middle'
|
|
2087
|
+
}
|
|
2088
|
+
},
|
|
2089
|
+
Skeleton: {
|
|
2090
|
+
appearances: {},
|
|
2091
|
+
rules: [],
|
|
2092
|
+
tokens: {
|
|
2093
|
+
baseWidth: 40,
|
|
2094
|
+
characters: 10,
|
|
2095
|
+
color: '#b2b9bf',
|
|
2096
|
+
radius: 120,
|
|
2097
|
+
size: 3,
|
|
2098
|
+
spaceBetweenLines: 2,
|
|
2099
|
+
squareRadius: 4
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2102
|
+
StackView: {
|
|
2103
|
+
appearances: {},
|
|
2104
|
+
rules: [],
|
|
2105
|
+
tokens: {
|
|
2106
|
+
alignItems: 'stretch',
|
|
2107
|
+
flexGrow: 0,
|
|
2108
|
+
flexShrink: 0,
|
|
2109
|
+
justifyContent: 'flex-start'
|
|
2110
|
+
}
|
|
2111
|
+
},
|
|
2112
|
+
StepTracker: {
|
|
2113
|
+
appearances: {
|
|
2114
|
+
viewport: {
|
|
2115
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
2116
|
+
type: 'state',
|
|
2117
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
rules: [
|
|
2121
|
+
{
|
|
2122
|
+
if: { viewport: [ 'lg', 'xl' ] },
|
|
2123
|
+
tokens: { showStepLabel: true, showStepTrackerLabel: false }
|
|
2124
|
+
}
|
|
2125
|
+
],
|
|
2126
|
+
tokens: {
|
|
2127
|
+
completedIcon: null,
|
|
2128
|
+
completedIconColor: null,
|
|
2129
|
+
completedIconSize: null,
|
|
2130
|
+
connectorColor: '#676e73',
|
|
2131
|
+
connectorCompletedColor: '#7c53a5',
|
|
2132
|
+
connectorCompletedHeight: 3,
|
|
2133
|
+
connectorHeight: 1,
|
|
2134
|
+
connectorMinWidth: 16,
|
|
2135
|
+
containerPaddingBottom: null,
|
|
2136
|
+
containerPaddingLeft: null,
|
|
2137
|
+
containerPaddingRight: null,
|
|
2138
|
+
containerPaddingTop: null,
|
|
2139
|
+
knobBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2140
|
+
knobBorderColor: '#676e73',
|
|
2141
|
+
knobBorderWidth: 1,
|
|
2142
|
+
knobCompletedBackgroundColor: '#7c53a5',
|
|
2143
|
+
knobCompletedBorderColor: '#7c53a5',
|
|
2144
|
+
knobCompletedPaddingLeft: null,
|
|
2145
|
+
knobCompletedPaddingTop: null,
|
|
2146
|
+
knobCurrentBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2147
|
+
knobCurrentBorderColor: '#7c53a5',
|
|
2148
|
+
knobCurrentBorderWidth: 2,
|
|
2149
|
+
knobCurrentInnerColor: '#7c53a5',
|
|
2150
|
+
knobCurrentInnerSize: 8,
|
|
2151
|
+
knobCurrentPaddingLeft: 2,
|
|
2152
|
+
knobCurrentPaddingTop: 2,
|
|
2153
|
+
knobSize: 16,
|
|
2154
|
+
labelColor: '#414547',
|
|
2155
|
+
labelCurrentColor: '#7c53a5',
|
|
2156
|
+
labelCurrentFontName: 'HelveticaNow',
|
|
2157
|
+
labelCurrentFontWeight: '700',
|
|
2158
|
+
labelDirection: 'column',
|
|
2159
|
+
labelFontName: 'HelveticaNow',
|
|
2160
|
+
labelFontSize: 16,
|
|
2161
|
+
labelFontWeight: '400',
|
|
2162
|
+
labelGap: 0,
|
|
2163
|
+
labelLineHeight: 1.42857142857,
|
|
2164
|
+
labelMarginTop: 8,
|
|
2165
|
+
labelPaddingLeft: 16,
|
|
2166
|
+
labelPaddingRight: 16,
|
|
2167
|
+
showStepLabel: false,
|
|
2168
|
+
showStepName: true,
|
|
2169
|
+
showStepTrackerLabel: true
|
|
2170
|
+
}
|
|
2171
|
+
},
|
|
2172
|
+
Tabs: {
|
|
2173
|
+
appearances: {},
|
|
2174
|
+
rules: [],
|
|
2175
|
+
tokens: {
|
|
2176
|
+
borderBottomColor: '#676e73',
|
|
2177
|
+
borderBottomWidth: 1,
|
|
2178
|
+
buttonClearance: 16,
|
|
2179
|
+
gutter: 2,
|
|
2180
|
+
nextIcon: PaletteIconArrowRight,
|
|
2181
|
+
previousIcon: PaletteIconArrowLeft,
|
|
2182
|
+
space: 0
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
TabsItem: {
|
|
2186
|
+
appearances: {
|
|
2187
|
+
focus: {
|
|
2188
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
2189
|
+
type: 'state',
|
|
2190
|
+
values: [ true ]
|
|
2191
|
+
},
|
|
2192
|
+
hover: {
|
|
2193
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
2194
|
+
type: 'state',
|
|
2195
|
+
values: [ true ]
|
|
2196
|
+
},
|
|
2197
|
+
pressed: {
|
|
2198
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
2199
|
+
type: 'state',
|
|
2200
|
+
values: [ true ]
|
|
2201
|
+
},
|
|
2202
|
+
selected: {
|
|
2203
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
2204
|
+
type: 'state',
|
|
2205
|
+
values: [ true ]
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2208
|
+
rules: [
|
|
2209
|
+
{
|
|
2210
|
+
description: "The design uses height of 3: there's (rightly) no '3' in the Allium palette but the effect is 1px above and below a 1px line",
|
|
2211
|
+
if: { selected: true },
|
|
2212
|
+
tokens: {
|
|
2213
|
+
backgroundColor: '#f4f4f7',
|
|
2214
|
+
color: '#4b286d',
|
|
2215
|
+
highlightBarBorderRadius: 32,
|
|
2216
|
+
highlightBarBorderWidth: 1,
|
|
2217
|
+
highlightBarHeight: 1,
|
|
2218
|
+
highlightColor: '#4b286d'
|
|
2219
|
+
}
|
|
2220
|
+
},
|
|
2221
|
+
{
|
|
2222
|
+
if: { hover: true },
|
|
2223
|
+
tokens: { borderColor: '#b2b9bf', borderWidth: 2 }
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
if: { focus: true },
|
|
2227
|
+
tokens: { borderColor: '#4b286d', borderWidth: 2, color: '#4b286d' }
|
|
2228
|
+
},
|
|
2229
|
+
{
|
|
2230
|
+
if: { pressed: true },
|
|
2231
|
+
tokens: {
|
|
2232
|
+
backgroundColor: '#676e73',
|
|
2233
|
+
borderColor: 'transparent',
|
|
2234
|
+
borderWidth: 0,
|
|
2235
|
+
color: '#ffffff'
|
|
2236
|
+
}
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
if: { focus: true, pressed: true },
|
|
2240
|
+
tokens: { backgroundColor: '#4b286d' }
|
|
2241
|
+
}
|
|
2242
|
+
],
|
|
2243
|
+
tokens: {
|
|
2244
|
+
backgroundColor: 'transparent',
|
|
2245
|
+
borderColor: 'transparent',
|
|
2246
|
+
borderRadius: 32,
|
|
2247
|
+
borderWidth: 0,
|
|
2248
|
+
color: '#676e73',
|
|
2249
|
+
fontName: 'HelveticaNow',
|
|
2250
|
+
fontScaleCap: 64,
|
|
2251
|
+
fontSize: 14,
|
|
2252
|
+
fontWeight: '700',
|
|
2253
|
+
highlightBarBorderRadius: 0,
|
|
2254
|
+
highlightBarBorderWidth: 0,
|
|
2255
|
+
highlightBarHeight: 0,
|
|
2256
|
+
highlightColor: 'transparent',
|
|
2257
|
+
highlightTriangleSize: 0,
|
|
2258
|
+
letterSpacing: 0,
|
|
2259
|
+
lineHeight: 1.14285714286,
|
|
2260
|
+
maxWidth: 192,
|
|
2261
|
+
paddingHorizontal: 24,
|
|
2262
|
+
paddingVertical: 8,
|
|
2263
|
+
space: 1,
|
|
2264
|
+
textAlign: 'center',
|
|
2265
|
+
textTransform: 'none'
|
|
2266
|
+
}
|
|
2267
|
+
},
|
|
2268
|
+
Tags: {
|
|
2269
|
+
appearances: {
|
|
2270
|
+
viewport: {
|
|
2271
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
2272
|
+
type: 'state',
|
|
2273
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
rules: [ { if: { viewport: [ 'lg', 'xl' ] }, tokens: { space: 3 } } ],
|
|
2277
|
+
tokens: {
|
|
2278
|
+
alignItems: 'center',
|
|
2279
|
+
direction: 'row',
|
|
2280
|
+
flexGrow: 0,
|
|
2281
|
+
flexShrink: 0,
|
|
2282
|
+
justifyContent: 'flex-start',
|
|
2283
|
+
space: 1
|
|
2284
|
+
}
|
|
2285
|
+
},
|
|
2286
|
+
TagsItem: {
|
|
2287
|
+
appearances: {
|
|
2288
|
+
focus: {
|
|
2289
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
2290
|
+
type: 'state',
|
|
2291
|
+
values: [ true ]
|
|
2292
|
+
},
|
|
2293
|
+
hover: {
|
|
2294
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
2295
|
+
type: 'state',
|
|
2296
|
+
values: [ true ]
|
|
2297
|
+
},
|
|
2298
|
+
inactive: {
|
|
2299
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
2300
|
+
type: 'state',
|
|
2301
|
+
values: [ true ]
|
|
2302
|
+
},
|
|
2303
|
+
pressed: {
|
|
2304
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
2305
|
+
type: 'state',
|
|
2306
|
+
values: [ true ]
|
|
2307
|
+
},
|
|
2308
|
+
selected: {
|
|
2309
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
2310
|
+
type: 'state',
|
|
2311
|
+
values: [ true ]
|
|
2312
|
+
}
|
|
2313
|
+
},
|
|
2314
|
+
rules: [
|
|
2315
|
+
{
|
|
2316
|
+
if: { pressed: true },
|
|
2317
|
+
tokens: {
|
|
2318
|
+
backgroundColor: '#676e73',
|
|
2319
|
+
borderColor: '#676e73',
|
|
2320
|
+
borderWidth: 0,
|
|
2321
|
+
color: '#ffffff',
|
|
2322
|
+
iconBackground: '#414547',
|
|
2323
|
+
iconColor: '#ffffff'
|
|
2324
|
+
}
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
if: { focus: true },
|
|
2328
|
+
tokens: {
|
|
2329
|
+
borderColor: '#676e73',
|
|
2330
|
+
outerBorderColor: '#676e73',
|
|
2331
|
+
outerBorderGap: 2,
|
|
2332
|
+
outerBorderWidth: 2
|
|
2333
|
+
}
|
|
2334
|
+
},
|
|
2335
|
+
{ if: { hover: true }, tokens: { borderWidth: 3 } },
|
|
2336
|
+
{
|
|
2337
|
+
if: { selected: true },
|
|
2338
|
+
tokens: {
|
|
2339
|
+
backgroundColor: '#4b286d',
|
|
2340
|
+
borderWidth: 0,
|
|
2341
|
+
color: '#ffffff',
|
|
2342
|
+
icon: PaletteIconClose,
|
|
2343
|
+
iconBackground: '#7c53a5',
|
|
2344
|
+
iconColor: '#ffffff'
|
|
2345
|
+
}
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
if: { hover: true, selected: true },
|
|
2349
|
+
tokens: { backgroundColor: '#7c53a5', iconBackground: '#4b286d' }
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
if: { pressed: true, selected: true },
|
|
2353
|
+
tokens: { backgroundColor: '#3f2a54', iconBackground: '#7c53a5' }
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
if: { focus: true, selected: true },
|
|
2357
|
+
tokens: { outerBorderColor: '#4b286d' }
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
if: { focus: true, pressed: true, selected: true },
|
|
2361
|
+
tokens: { iconBackground: '#7c53a5', outerBorderColor: '#3f2a54' }
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
if: { inactive: true },
|
|
2365
|
+
tokens: {
|
|
2366
|
+
backgroundColor: '#b2b9bf',
|
|
2367
|
+
borderWidth: 0,
|
|
2368
|
+
color: '#ffffff'
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
],
|
|
2372
|
+
tokens: {
|
|
2373
|
+
alignSelf: 'center',
|
|
2374
|
+
backgroundColor: '#ffffff',
|
|
2375
|
+
borderColor: '#b2b9bf',
|
|
2376
|
+
borderRadius: 32,
|
|
2377
|
+
borderWidth: 1,
|
|
2378
|
+
color: '#676e73',
|
|
2379
|
+
fontName: 'HelveticaNow',
|
|
2380
|
+
fontSize: 14,
|
|
2381
|
+
fontWeight: '700',
|
|
2382
|
+
icon: PaletteIconAdd,
|
|
2383
|
+
iconAlignSelf: 'center',
|
|
2384
|
+
iconBackground: '#f4f4f7',
|
|
2385
|
+
iconBorderRadius: 32,
|
|
2386
|
+
iconColor: '#2c2e30',
|
|
2387
|
+
iconPadding: 2,
|
|
2388
|
+
iconPosition: 'right',
|
|
2389
|
+
iconSize: 16,
|
|
2390
|
+
iconSpace: 2,
|
|
2391
|
+
iconTranslateX: 0,
|
|
2392
|
+
iconTranslateY: 0,
|
|
2393
|
+
lineHeight: 1.42857142857,
|
|
2394
|
+
minWidth: 0,
|
|
2395
|
+
opacity: 1,
|
|
2396
|
+
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2397
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
2398
|
+
outerBorderGap: 2,
|
|
2399
|
+
outerBorderWidth: 2,
|
|
2400
|
+
paddingBottom: 8,
|
|
2401
|
+
paddingLeft: 16,
|
|
2402
|
+
paddingRight: 8,
|
|
2403
|
+
paddingTop: 8,
|
|
2404
|
+
shadow: null,
|
|
2405
|
+
textAlign: 'center',
|
|
2406
|
+
width: null
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2409
|
+
TextArea: {
|
|
2410
|
+
appearances: {},
|
|
2411
|
+
rules: [],
|
|
2412
|
+
tokens: { maxLines: 8, minLines: 5 }
|
|
2413
|
+
},
|
|
2414
|
+
TextInput: {
|
|
2415
|
+
appearances: {
|
|
2416
|
+
focus: {
|
|
2417
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
2418
|
+
type: 'state',
|
|
2419
|
+
values: [ true ]
|
|
2420
|
+
},
|
|
2421
|
+
hover: {
|
|
2422
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
2423
|
+
type: 'state',
|
|
2424
|
+
values: [ true ]
|
|
2425
|
+
},
|
|
2426
|
+
inactive: {
|
|
2427
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
2428
|
+
type: 'state',
|
|
2429
|
+
values: [ true ]
|
|
2430
|
+
},
|
|
2431
|
+
validation: {
|
|
2432
|
+
description: 'Validation states for form inputs',
|
|
2433
|
+
type: 'state',
|
|
2434
|
+
values: [ 'error', 'success' ]
|
|
2435
|
+
}
|
|
2436
|
+
},
|
|
2437
|
+
rules: [
|
|
2438
|
+
{
|
|
2439
|
+
if: { hover: true, inactive: null },
|
|
2440
|
+
tokens: {
|
|
2441
|
+
outerBackgroundColor: '#e3e6e8',
|
|
2442
|
+
outerBorderColor: '#e3e6e8'
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
if: { validation: 'success' },
|
|
2447
|
+
tokens: {
|
|
2448
|
+
borderColor: '#2b8000',
|
|
2449
|
+
icon: PaletteIconStatusSuccess,
|
|
2450
|
+
iconColor: '#2b8000'
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
if: { validation: 'error' },
|
|
2455
|
+
tokens: {
|
|
2456
|
+
borderColor: '#e12339',
|
|
2457
|
+
icon: PaletteIconStatusError,
|
|
2458
|
+
iconColor: '#e12339'
|
|
2459
|
+
}
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
if: { focus: true },
|
|
2463
|
+
tokens: { borderColor: '#7c53a5', borderWidth: 3, icon: null }
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
if: { inactive: true },
|
|
2467
|
+
tokens: { backgroundColor: '#f4f4f7', borderColor: '#f4f4f7' }
|
|
2468
|
+
}
|
|
2469
|
+
],
|
|
2470
|
+
tokens: {
|
|
2471
|
+
backgroundColor: '#ffffff',
|
|
2472
|
+
borderColor: '#676e73',
|
|
2473
|
+
borderRadius: 4,
|
|
2474
|
+
borderWidth: 1,
|
|
2475
|
+
color: '#414547',
|
|
2476
|
+
fontName: 'HelveticaNow',
|
|
2477
|
+
fontSize: 16,
|
|
2478
|
+
fontWeight: '400',
|
|
2479
|
+
icon: null,
|
|
2480
|
+
iconColor: 'rgba(0, 0, 0, 0)',
|
|
2481
|
+
iconSize: 24,
|
|
2482
|
+
lineHeight: 1.5,
|
|
2483
|
+
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2484
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
2485
|
+
outerBorderWidth: 2,
|
|
2486
|
+
paddingBottom: 12,
|
|
2487
|
+
paddingLeft: 16,
|
|
2488
|
+
paddingRight: 16,
|
|
2489
|
+
paddingTop: 12
|
|
2490
|
+
}
|
|
2491
|
+
},
|
|
2492
|
+
ToggleSwitch: {
|
|
2493
|
+
appearances: {
|
|
2494
|
+
focus: {
|
|
2495
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
2496
|
+
type: 'state',
|
|
2497
|
+
values: [ true ]
|
|
2498
|
+
},
|
|
2499
|
+
hover: {
|
|
2500
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
2501
|
+
type: 'state',
|
|
2502
|
+
values: [ true ]
|
|
2503
|
+
},
|
|
2504
|
+
inactive: {
|
|
2505
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
2506
|
+
type: 'state',
|
|
2507
|
+
values: [ true ]
|
|
2508
|
+
},
|
|
2509
|
+
pressed: {
|
|
2510
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
2511
|
+
type: 'state',
|
|
2512
|
+
values: [ true ]
|
|
2513
|
+
},
|
|
2514
|
+
selected: {
|
|
2515
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
2516
|
+
type: 'state',
|
|
2517
|
+
values: [ true ]
|
|
2518
|
+
}
|
|
2519
|
+
},
|
|
2520
|
+
rules: [
|
|
2521
|
+
{ if: { hover: true }, tokens: { backgroundColor: '#414547' } },
|
|
2522
|
+
{
|
|
2523
|
+
if: { pressed: true },
|
|
2524
|
+
tokens: { backgroundColor: '#2c2e30' }
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
if: { focus: true },
|
|
2528
|
+
tokens: {
|
|
2529
|
+
outerBackgroundColor: '#ffffff',
|
|
2530
|
+
outerBorderColor: '#676e73',
|
|
2531
|
+
outerBorderGap: 3,
|
|
2532
|
+
outerBorderWidth: 2
|
|
2533
|
+
}
|
|
2534
|
+
},
|
|
2535
|
+
{
|
|
2536
|
+
if: { focus: true, pressed: true },
|
|
2537
|
+
tokens: { outerBorderColor: '#2c2e30' }
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
if: { selected: true },
|
|
2541
|
+
tokens: {
|
|
2542
|
+
backgroundColor: '#2b8000',
|
|
2543
|
+
icon: PaletteIconCheckmark,
|
|
2544
|
+
iconColor: '#2b8000'
|
|
2545
|
+
}
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
if: { hover: true, selected: true },
|
|
2549
|
+
tokens: { backgroundColor: '#1f5c09', iconColor: '#1f5c09' }
|
|
2550
|
+
},
|
|
2551
|
+
{
|
|
2552
|
+
if: { pressed: true, selected: true },
|
|
2553
|
+
tokens: { backgroundColor: '#163e06', iconColor: '#163e06' }
|
|
2554
|
+
},
|
|
2555
|
+
{
|
|
2556
|
+
if: { focus: true, selected: true },
|
|
2557
|
+
tokens: { outerBorderColor: '#2b8000' }
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
if: { focus: true, pressed: true, selected: true },
|
|
2561
|
+
tokens: { outerBorderColor: '#163e06' }
|
|
2562
|
+
},
|
|
2563
|
+
{
|
|
2564
|
+
if: { inactive: true },
|
|
2565
|
+
tokens: {
|
|
2566
|
+
backgroundColor: '#b2b9bf',
|
|
2567
|
+
iconColor: '#676e73',
|
|
2568
|
+
outerBorderColor: '#b2b9bf'
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
],
|
|
2572
|
+
tokens: {
|
|
2573
|
+
alignSelf: 'flex-start',
|
|
2574
|
+
backgroundColor: '#676e73',
|
|
2575
|
+
borderColor: 'rgba(0, 0, 0, 0)',
|
|
2576
|
+
borderRadius: 32,
|
|
2577
|
+
borderWidth: 0,
|
|
2578
|
+
icon: null,
|
|
2579
|
+
iconColor: '#676e73',
|
|
2580
|
+
iconSize: 12,
|
|
2581
|
+
opacity: 1,
|
|
2582
|
+
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2583
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
2584
|
+
outerBorderGap: 0,
|
|
2585
|
+
outerBorderWidth: 0,
|
|
2586
|
+
paddingBottom: 0,
|
|
2587
|
+
paddingLeft: 0,
|
|
2588
|
+
paddingRight: 0,
|
|
2589
|
+
paddingTop: 0,
|
|
2590
|
+
shadow: {
|
|
2591
|
+
blur: 2,
|
|
2592
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
2593
|
+
inset: true,
|
|
2594
|
+
offsetX: 0,
|
|
2595
|
+
offsetY: 2,
|
|
2596
|
+
spread: 0
|
|
2597
|
+
},
|
|
2598
|
+
switchBorderColor: 'rgba(0, 0, 0, 0)',
|
|
2599
|
+
switchBorderRadius: 32,
|
|
2600
|
+
switchBorderWidth: 0,
|
|
2601
|
+
switchColor: '#ffffff',
|
|
2602
|
+
switchShadow: {
|
|
2603
|
+
blur: 2,
|
|
2604
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
2605
|
+
inset: false,
|
|
2606
|
+
offsetX: 0,
|
|
2607
|
+
offsetY: 2,
|
|
2608
|
+
spread: 0
|
|
2609
|
+
},
|
|
2610
|
+
switchSize: 16,
|
|
2611
|
+
trackBorderColor: 'rgba(0, 0, 0, 0)',
|
|
2612
|
+
trackBorderRadius: 32,
|
|
2613
|
+
trackBorderWidth: 3,
|
|
2614
|
+
width: 40
|
|
2615
|
+
}
|
|
2616
|
+
},
|
|
2617
|
+
Tooltip: {
|
|
2618
|
+
appearances: { inverse: { type: 'variant', values: [ true ] } },
|
|
2619
|
+
rules: [
|
|
2620
|
+
{
|
|
2621
|
+
if: { inverse: true },
|
|
2622
|
+
tokens: { backgroundColor: '#ffffff', color: '#414547' }
|
|
2623
|
+
}
|
|
2624
|
+
],
|
|
2625
|
+
tokens: {
|
|
2626
|
+
arrowBorderRadius: 1,
|
|
2627
|
+
arrowOffset: 4,
|
|
2628
|
+
arrowWidth: 16,
|
|
2629
|
+
backgroundColor: '#2c2e30',
|
|
2630
|
+
borderRadius: 8,
|
|
2631
|
+
color: '#ffffff',
|
|
2632
|
+
fontName: 'HelveticaNow',
|
|
2633
|
+
fontSize: 14,
|
|
2634
|
+
fontWeight: '400',
|
|
2635
|
+
lineHeight: 1.5,
|
|
2636
|
+
paddingBottom: 8,
|
|
2637
|
+
paddingLeft: 16,
|
|
2638
|
+
paddingRight: 16,
|
|
2639
|
+
paddingTop: 8,
|
|
2640
|
+
shadow: {
|
|
2641
|
+
blur: 8,
|
|
2642
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
2643
|
+
inset: false,
|
|
2644
|
+
offsetX: 0,
|
|
2645
|
+
offsetY: 4,
|
|
2646
|
+
spread: 0
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
},
|
|
2650
|
+
TooltipButton: {
|
|
2651
|
+
appearances: {
|
|
2652
|
+
focus: {
|
|
2653
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
2654
|
+
type: 'state',
|
|
2655
|
+
values: [ true ]
|
|
2656
|
+
},
|
|
2657
|
+
hover: {
|
|
2658
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
2659
|
+
type: 'state',
|
|
2660
|
+
values: [ true ]
|
|
2661
|
+
},
|
|
2662
|
+
inverse: { type: 'variant', values: [ true ] },
|
|
2663
|
+
pressed: {
|
|
2664
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
2665
|
+
type: 'state',
|
|
2666
|
+
values: [ true ]
|
|
2667
|
+
}
|
|
2668
|
+
},
|
|
2669
|
+
rules: [
|
|
2670
|
+
{ if: { inverse: true }, tokens: { iconColor: '#ffffff' } },
|
|
2671
|
+
{ if: { hover: true }, tokens: { iconScale: 1.25 } },
|
|
2672
|
+
{ if: { pressed: true }, tokens: { iconColor: '#676e73' } },
|
|
2673
|
+
{
|
|
2674
|
+
if: { inverse: true, pressed: true },
|
|
2675
|
+
tokens: { iconColor: '#b2b9bf' }
|
|
2676
|
+
},
|
|
2677
|
+
{
|
|
2678
|
+
if: { focus: true },
|
|
2679
|
+
tokens: { outerBorderColor: '#676e73' }
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
if: { focus: true, inverse: true },
|
|
2683
|
+
tokens: { outerBorderColor: '#b2b9bf' }
|
|
2684
|
+
}
|
|
2685
|
+
],
|
|
2686
|
+
tokens: {
|
|
2687
|
+
borderRadius: 32,
|
|
2688
|
+
icon: PaletteIconQuestion,
|
|
2689
|
+
iconColor: '#2c2e30',
|
|
2690
|
+
iconScale: 1,
|
|
2691
|
+
iconSize: 16,
|
|
2692
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
2693
|
+
outerBorderGap: 4,
|
|
2694
|
+
outerBorderWidth: 1,
|
|
2695
|
+
width: 16
|
|
2696
|
+
}
|
|
2697
|
+
},
|
|
2698
|
+
Typography: {
|
|
2699
|
+
appearances: {
|
|
2700
|
+
bold: {
|
|
2701
|
+
description: 'Sets the font weight, to bold on some body text styles. Does not change accessibility properties.',
|
|
2702
|
+
type: 'variant',
|
|
2703
|
+
values: [ true ]
|
|
2704
|
+
},
|
|
2705
|
+
colour: {
|
|
2706
|
+
description: 'Each typography variant has a default color, and at least a secondary color variant. In exceptional cases where a different colour is needed,\n' +
|
|
2707
|
+
' use the tokens prop.',
|
|
2708
|
+
type: 'variant',
|
|
2709
|
+
values: [ 'secondary', 'tertiary' ]
|
|
2710
|
+
},
|
|
2711
|
+
compact: {
|
|
2712
|
+
description: 'Reduces line height on some body text styles. For data-rich content, not for flow content',
|
|
2713
|
+
type: 'variant',
|
|
2714
|
+
values: [ true ]
|
|
2715
|
+
},
|
|
2716
|
+
inverse: {
|
|
2717
|
+
description: 'Styles the link white for use on dark backgrounds.',
|
|
2718
|
+
type: 'variant',
|
|
2719
|
+
values: [ true ]
|
|
2720
|
+
},
|
|
2721
|
+
size: {
|
|
2722
|
+
description: 'Styles text as body or heading text with a given size. Smaller numbers indicate larger sizes,\n' +
|
|
2723
|
+
'"display" headings are larger than "h" headings. Default is medium size body text. Does not change\n' +
|
|
2724
|
+
'accessibility or SEO-related properties; use the heading prop if text should be treated semantically as a heading.',
|
|
2725
|
+
type: 'variant',
|
|
2726
|
+
values: [
|
|
2727
|
+
'micro', 'small',
|
|
2728
|
+
'large', 'eyebrow',
|
|
2729
|
+
'h1', 'h2',
|
|
2730
|
+
'h3', 'h4',
|
|
2731
|
+
'h5', 'h6',
|
|
2732
|
+
'display1', 'display2'
|
|
2733
|
+
]
|
|
2734
|
+
},
|
|
2735
|
+
viewport: {
|
|
2736
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
2737
|
+
type: 'state',
|
|
2738
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
2739
|
+
}
|
|
2740
|
+
},
|
|
2741
|
+
rules: [
|
|
2742
|
+
{ if: { colour: 'secondary' }, tokens: { color: '#414547' } },
|
|
2743
|
+
{
|
|
2744
|
+
if: { size: [ 'display1', 'display2', 'h1', 'h2', 'h3' ] },
|
|
2745
|
+
tokens: { color: '#4b286d' }
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
if: {
|
|
2749
|
+
colour: 'secondary',
|
|
2750
|
+
size: [ 'display1', 'display2', 'h1', 'h2', 'h3' ]
|
|
2751
|
+
},
|
|
2752
|
+
tokens: { color: '#2c2e30' }
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
if: { colour: 'tertiary', size: 'h6' },
|
|
2756
|
+
tokens: { color: '#676e73' }
|
|
2757
|
+
},
|
|
2758
|
+
{ if: { size: 'eyebrow' }, tokens: { color: '#414547' } },
|
|
2759
|
+
{
|
|
2760
|
+
if: { colour: 'secondary', size: 'eyebrow' },
|
|
2761
|
+
tokens: { color: '#4b286d' }
|
|
2762
|
+
},
|
|
2763
|
+
{ if: { inverse: true }, tokens: { color: '#ffffff' } },
|
|
2764
|
+
{
|
|
2765
|
+
if: { size: 'display1' },
|
|
2766
|
+
tokens: {
|
|
2767
|
+
fontName: 'HelveticaNow',
|
|
2768
|
+
fontSize: 40,
|
|
2769
|
+
fontWeight: '300',
|
|
2770
|
+
letterSpacing: -0.035,
|
|
2771
|
+
lineHeight: 1.2
|
|
2772
|
+
}
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
if: { size: 'display1', viewport: [ 'lg', 'xl' ] },
|
|
2776
|
+
tokens: { fontSize: 64, lineHeight: 1.125 }
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
if: { size: 'display2' },
|
|
2780
|
+
tokens: {
|
|
2781
|
+
fontName: 'HelveticaNow',
|
|
2782
|
+
fontSize: 36,
|
|
2783
|
+
fontWeight: '400',
|
|
2784
|
+
letterSpacing: -0.035,
|
|
2785
|
+
lineHeight: 1.22222222222
|
|
2786
|
+
}
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
if: { size: 'display2', viewport: [ 'lg', 'xl' ] },
|
|
2790
|
+
tokens: {
|
|
2791
|
+
fontName: 'HelveticaNow',
|
|
2792
|
+
fontSize: 56,
|
|
2793
|
+
fontWeight: '300',
|
|
2794
|
+
letterSpacing: -0.039,
|
|
2795
|
+
lineHeight: 1.14285714286
|
|
2796
|
+
}
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
if: { size: 'h1' },
|
|
2800
|
+
tokens: {
|
|
2801
|
+
fontSize: 28,
|
|
2802
|
+
letterSpacing: -0.017,
|
|
2803
|
+
lineHeight: 1.28571428571
|
|
2804
|
+
}
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
if: { size: 'h1', viewport: [ 'lg', 'xl' ] },
|
|
2808
|
+
tokens: {
|
|
2809
|
+
fontName: 'HelveticaNow',
|
|
2810
|
+
fontSize: 40,
|
|
2811
|
+
fontWeight: '300',
|
|
2812
|
+
letterSpacing: -0.035,
|
|
2813
|
+
lineHeight: 1.2
|
|
2814
|
+
}
|
|
2815
|
+
},
|
|
2816
|
+
{
|
|
2817
|
+
if: { size: 'h2' },
|
|
2818
|
+
tokens: {
|
|
2819
|
+
fontName: 'HelveticaNow',
|
|
2820
|
+
fontSize: 24,
|
|
2821
|
+
fontWeight: '500',
|
|
2822
|
+
lineHeight: 1.33333333333
|
|
2823
|
+
}
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
if: { size: 'h2', viewport: [ 'lg', 'xl' ] },
|
|
2827
|
+
tokens: {
|
|
2828
|
+
fontSize: 28,
|
|
2829
|
+
letterSpacing: -0.017,
|
|
2830
|
+
lineHeight: 1.28571428571
|
|
2831
|
+
}
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
if: { size: 'h3' },
|
|
2835
|
+
tokens: {
|
|
2836
|
+
fontName: 'HelveticaNow',
|
|
2837
|
+
fontSize: 20,
|
|
2838
|
+
fontWeight: '500',
|
|
2839
|
+
lineHeight: 1.4
|
|
2840
|
+
}
|
|
2841
|
+
},
|
|
2842
|
+
{
|
|
2843
|
+
if: { size: 'h3', viewport: [ 'lg', 'xl' ] },
|
|
2844
|
+
tokens: { fontSize: 24, lineHeight: 1.33333333333 }
|
|
2845
|
+
},
|
|
2846
|
+
{
|
|
2847
|
+
if: { size: 'h4' },
|
|
2848
|
+
tokens: {
|
|
2849
|
+
fontName: 'HelveticaNow',
|
|
2850
|
+
fontSize: 16,
|
|
2851
|
+
fontWeight: '500',
|
|
2852
|
+
lineHeight: 1.5
|
|
2853
|
+
}
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
if: { size: 'h5' },
|
|
2857
|
+
tokens: {
|
|
2858
|
+
fontName: 'HelveticaNow',
|
|
2859
|
+
fontSize: 14,
|
|
2860
|
+
fontWeight: '500',
|
|
2861
|
+
lineHeight: 1.28571428571
|
|
2862
|
+
}
|
|
2863
|
+
},
|
|
2864
|
+
{
|
|
2865
|
+
if: { size: 'h6' },
|
|
2866
|
+
tokens: {
|
|
2867
|
+
fontName: 'HelveticaNow',
|
|
2868
|
+
fontSize: 12,
|
|
2869
|
+
fontWeight: '700',
|
|
2870
|
+
lineHeight: 1.33333333333
|
|
2871
|
+
}
|
|
2872
|
+
},
|
|
2873
|
+
{
|
|
2874
|
+
if: { size: 'large' },
|
|
2875
|
+
tokens: { fontSize: 20, lineHeight: 1.6 }
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
if: { compact: true, size: 'large' },
|
|
2879
|
+
tokens: { lineHeight: 1.2 }
|
|
2880
|
+
},
|
|
2881
|
+
{
|
|
2882
|
+
description: "The compact line height for the 'default' font size, but doesn't apply for any other styles",
|
|
2883
|
+
if: { compact: true, size: null },
|
|
2884
|
+
tokens: { lineHeight: 1.25 }
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
if: { size: 'small' },
|
|
2888
|
+
tokens: { fontSize: 14, lineHeight: 1.42857142857 }
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
if: { compact: true, size: 'small' },
|
|
2892
|
+
tokens: { lineHeight: 1.14285714286 }
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
if: { size: 'micro' },
|
|
2896
|
+
tokens: {
|
|
2897
|
+
fontName: 'HelveticaNow',
|
|
2898
|
+
fontSize: 12,
|
|
2899
|
+
fontWeight: '500',
|
|
2900
|
+
lineHeight: 1.33333333333
|
|
2901
|
+
}
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
if: { size: 'eyebrow' },
|
|
2905
|
+
tokens: {
|
|
2906
|
+
fontName: 'HelveticaNow',
|
|
2907
|
+
fontSize: 14,
|
|
2908
|
+
fontWeight: '700',
|
|
2909
|
+
lineHeight: 1.28571428571,
|
|
2910
|
+
textTransform: 'uppercase'
|
|
2911
|
+
}
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
description: 'Bold is only available on body text styles, not headings',
|
|
2915
|
+
if: { bold: true, size: [ 'large', null, 'small', 'micro' ] },
|
|
2916
|
+
tokens: { fontName: 'HelveticaNow', fontWeight: '700' }
|
|
2917
|
+
}
|
|
2918
|
+
],
|
|
2919
|
+
tokens: {
|
|
2920
|
+
color: '#2c2e30',
|
|
2921
|
+
fontName: 'HelveticaNow',
|
|
2922
|
+
fontScaleCap: 64,
|
|
2923
|
+
fontSize: 16,
|
|
2924
|
+
fontWeight: '400',
|
|
2925
|
+
letterSpacing: 0,
|
|
2926
|
+
lineHeight: 1.5,
|
|
2927
|
+
textTransform: 'none'
|
|
2928
|
+
}
|
|
2929
|
+
},
|
|
2930
|
+
spacingScale: {
|
|
2931
|
+
appearances: {
|
|
2932
|
+
space: {
|
|
2933
|
+
description: 'Index of the intended position on the spacing scale',
|
|
2934
|
+
type: 'state',
|
|
2935
|
+
values: [
|
|
2936
|
+
0, 1, 2, 3, 4,
|
|
2937
|
+
5, 6, 7, 8, 9,
|
|
2938
|
+
10, 11
|
|
2939
|
+
]
|
|
2940
|
+
},
|
|
2941
|
+
viewport: {
|
|
2942
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
2943
|
+
type: 'state',
|
|
2944
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
2945
|
+
}
|
|
2946
|
+
},
|
|
2947
|
+
rules: [
|
|
2948
|
+
{ if: { viewport: [ 'lg', 'xl' ] }, tokens: { size: 120 } },
|
|
2949
|
+
{ if: { space: 11 }, tokens: { size: 96 } },
|
|
2950
|
+
{ if: { space: 10 }, tokens: { size: 80 } },
|
|
2951
|
+
{ if: { space: 9 }, tokens: { size: 64 } },
|
|
2952
|
+
{ if: { space: 8 }, tokens: { size: 48 } },
|
|
2953
|
+
{ if: { space: 7 }, tokens: { size: 40 } },
|
|
2954
|
+
{ if: { space: 6 }, tokens: { size: 36 } },
|
|
2955
|
+
{ if: { space: 5 }, tokens: { size: 32 } },
|
|
2956
|
+
{ if: { space: 4 }, tokens: { size: 24 } },
|
|
2957
|
+
{ if: { space: 3 }, tokens: { size: 16 } },
|
|
2958
|
+
{ if: { space: 2 }, tokens: { size: 8 } },
|
|
2959
|
+
{ if: { space: 1 }, tokens: { size: 4 } },
|
|
2960
|
+
{
|
|
2961
|
+
if: { space: 11, viewport: [ 'lg', 'xl' ] },
|
|
2962
|
+
tokens: { size: 120 }
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
if: { space: 10, viewport: [ 'lg', 'xl' ] },
|
|
2966
|
+
tokens: { size: 96 }
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
if: { space: 9, viewport: [ 'lg', 'xl' ] },
|
|
2970
|
+
tokens: { size: 72 }
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
if: { space: 8, viewport: [ 'lg', 'xl' ] },
|
|
2974
|
+
tokens: { size: 64 }
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
if: { space: 7, viewport: [ 'lg', 'xl' ] },
|
|
2978
|
+
tokens: { size: 48 }
|
|
2979
|
+
},
|
|
2980
|
+
{
|
|
2981
|
+
if: { space: 6, viewport: [ 'lg', 'xl' ] },
|
|
2982
|
+
tokens: { size: 40 }
|
|
2983
|
+
},
|
|
2984
|
+
{ if: { space: 0 }, tokens: { size: 0 } }
|
|
2985
|
+
],
|
|
2986
|
+
tokens: { size: 96 }
|
|
2987
|
+
}
|
|
2988
|
+
},
|
|
2989
|
+
metadata: {
|
|
2990
|
+
name: 'allium',
|
|
2991
|
+
package: '@telus-uds/theme-allium',
|
|
2992
|
+
themeTokensVersion: '0.0.2-prerelease.0'
|
|
2993
|
+
}
|
|
2994
|
+
}
|