@telus-uds/theme-allium 0.0.2-prerelease.5 → 1.0.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.
Files changed (84) hide show
  1. package/CHANGELOG.md +1946 -0
  2. package/README.md +3 -9
  3. package/build/schema.json +8279 -0
  4. package/build/theme.js +2994 -0
  5. package/package.json +12 -15
  6. package/theme.json +3731 -0
  7. package/lib/components/ActivityIndicator.js +0 -35
  8. package/lib/components/Box.js +0 -89
  9. package/lib/components/Button.js +0 -252
  10. package/lib/components/ButtonGroup.js +0 -34
  11. package/lib/components/ButtonGroupItem.js +0 -108
  12. package/lib/components/Card.js +0 -120
  13. package/lib/components/Checkbox.js +0 -80
  14. package/lib/components/ChevronLink.js +0 -39
  15. package/lib/components/Divider.js +0 -44
  16. package/lib/components/ExpandCollapse.js +0 -23
  17. package/lib/components/ExpandCollapseControl.js +0 -49
  18. package/lib/components/ExpandCollapsePanel.js +0 -25
  19. package/lib/components/Feedback.js +0 -89
  20. package/lib/components/Icon.js +0 -47
  21. package/lib/components/InputLabel.js +0 -33
  22. package/lib/components/InputSupports.js +0 -19
  23. package/lib/components/Link.js +0 -241
  24. package/lib/components/List.js +0 -86
  25. package/lib/components/Pagination.js +0 -40
  26. package/lib/components/PaginationPageButton.js +0 -82
  27. package/lib/components/PaginationSideButton.js +0 -113
  28. package/lib/components/Radio.js +0 -78
  29. package/lib/components/Select.js +0 -102
  30. package/lib/components/SideNav.js +0 -23
  31. package/lib/components/SideNavItem.js +0 -118
  32. package/lib/components/SideNavItemsGroup.js +0 -49
  33. package/lib/components/Skeleton.js +0 -26
  34. package/lib/components/StackView.js +0 -22
  35. package/lib/components/Tags.js +0 -34
  36. package/lib/components/TagsItem.js +0 -133
  37. package/lib/components/TextArea.js +0 -20
  38. package/lib/components/TextInput.js +0 -97
  39. package/lib/components/ToggleSwitch.js +0 -144
  40. package/lib/components/Tooltip.js +0 -48
  41. package/lib/components/TooltipButton.js +0 -86
  42. package/lib/components/Typography.js +0 -370
  43. package/lib/components/index.js +0 -303
  44. package/lib/components/spacingScale.js +0 -163
  45. package/lib/index.js +0 -30
  46. package/src/components/ActivityIndicator.js +0 -25
  47. package/src/components/Box.js +0 -35
  48. package/src/components/Button.js +0 -174
  49. package/src/components/ButtonGroup.js +0 -16
  50. package/src/components/ButtonGroupItem.js +0 -88
  51. package/src/components/Card.js +0 -99
  52. package/src/components/Checkbox.js +0 -65
  53. package/src/components/ChevronLink.js +0 -19
  54. package/src/components/Divider.js +0 -34
  55. package/src/components/ExpandCollapse.js +0 -12
  56. package/src/components/ExpandCollapseControl.js +0 -29
  57. package/src/components/ExpandCollapsePanel.js +0 -15
  58. package/src/components/Feedback.js +0 -75
  59. package/src/components/Icon.js +0 -35
  60. package/src/components/InputLabel.js +0 -29
  61. package/src/components/InputSupports.js +0 -9
  62. package/src/components/Link.js +0 -211
  63. package/src/components/List.js +0 -70
  64. package/src/components/Pagination.js +0 -30
  65. package/src/components/PaginationPageButton.js +0 -71
  66. package/src/components/PaginationSideButton.js +0 -99
  67. package/src/components/Radio.js +0 -64
  68. package/src/components/Select.js +0 -88
  69. package/src/components/SideNav.js +0 -12
  70. package/src/components/SideNavItem.js +0 -115
  71. package/src/components/SideNavItemsGroup.js +0 -34
  72. package/src/components/Skeleton.js +0 -16
  73. package/src/components/StackView.js +0 -12
  74. package/src/components/Tags.js +0 -16
  75. package/src/components/TagsItem.js +0 -118
  76. package/src/components/TextArea.js +0 -10
  77. package/src/components/TextInput.js +0 -83
  78. package/src/components/ToggleSwitch.js +0 -118
  79. package/src/components/Tooltip.js +0 -41
  80. package/src/components/TooltipButton.js +0 -68
  81. package/src/components/Typography.js +0 -355
  82. package/src/components/index.js +0 -37
  83. package/src/components/spacingScale.js +0 -36
  84. package/src/index.js +0 -17
@@ -1,118 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- import checkmarkIcon from '@telus-uds/palette-allium/build/rn/icons/checkmark.icon.svg'
6
-
7
- export default {
8
- appearances: {
9
- focus: appearances.ToggleSwitch.focus,
10
- hover: appearances.ToggleSwitch.hover,
11
- pressed: appearances.ToggleSwitch.pressed,
12
- inactive: appearances.ToggleSwitch.inactive,
13
- selected: appearances.ToggleSwitch.selected
14
- },
15
- tokens: {
16
- borderColor: palette.color.transparent,
17
- borderWidth: palette.border.none,
18
- borderRadius: palette.radius.pill32,
19
- outerBorderColor: palette.color.transparent,
20
- outerBorderWidth: palette.border.none,
21
- outerBorderGap: palette.size.size0,
22
- outerBorderRadius: palette.radius.pill32,
23
- outerBackgroundColor: palette.color.transparent,
24
- backgroundColor: palette.color.greyShuttle,
25
- opacity: system.opacity.opaque,
26
- paddingLeft: system.size.zero,
27
- paddingRight: system.size.zero,
28
- paddingTop: system.size.zero,
29
- paddingBottom: system.size.zero,
30
- shadow: palette.shadow.surfaceInset,
31
- alignSelf: 'flex-start',
32
-
33
- icon: system.icon.none,
34
- width: palette.size.size40,
35
- trackBorderWidth: palette.border.border3,
36
- trackBorderColor: palette.color.transparent,
37
- trackBorderRadius: palette.radius.pill32,
38
- iconSize: palette.size.size12,
39
- iconColor: palette.color.greyShuttle,
40
- switchSize: palette.size.size16,
41
- switchColor: palette.color.white,
42
- switchBorderColor: palette.color.transparent,
43
- switchBorderWidth: palette.border.none,
44
- switchBorderRadius: palette.radius.pill32,
45
- switchShadow: palette.shadow.surfaceRaised
46
- },
47
- rules: [
48
- {
49
- if: { hover: true },
50
- tokens: {
51
- backgroundColor: palette.color.greyCharcoal
52
- }
53
- },
54
- {
55
- if: { pressed: true },
56
- tokens: {
57
- backgroundColor: palette.color.greyThunder
58
- }
59
- },
60
- {
61
- if: { focus: true },
62
- tokens: {
63
- outerBackgroundColor: palette.color.white,
64
- outerBorderGap: palette.border.border3,
65
- outerBorderWidth: palette.border.border2,
66
- outerBorderColor: palette.color.greyShuttle
67
- }
68
- },
69
- {
70
- if: { focus: true, pressed: true },
71
- tokens: {
72
- outerBorderColor: palette.color.greyThunder
73
- }
74
- },
75
- {
76
- if: { selected: true },
77
- tokens: {
78
- icon: checkmarkIcon,
79
- backgroundColor: palette.color.greenAccessible,
80
- iconColor: palette.color.greenAccessible
81
- }
82
- },
83
- {
84
- if: { selected: true, hover: true },
85
- tokens: {
86
- backgroundColor: palette.color.greenSanFelix,
87
- iconColor: palette.color.greenSanFelix
88
- }
89
- },
90
- {
91
- if: { selected: true, pressed: true },
92
- tokens: {
93
- backgroundColor: palette.color.greenDarkFern,
94
- iconColor: palette.color.greenDarkFern
95
- }
96
- },
97
- {
98
- if: { selected: true, focus: true },
99
- tokens: {
100
- outerBorderColor: palette.color.greenAccessible
101
- }
102
- },
103
- {
104
- if: { selected: true, focus: true, pressed: true },
105
- tokens: {
106
- outerBorderColor: palette.color.greenDarkFern
107
- }
108
- },
109
- {
110
- if: { inactive: true },
111
- tokens: {
112
- backgroundColor: palette.color.greyCloud,
113
- outerBorderColor: palette.color.greyCloud,
114
- iconColor: palette.color.greyShuttle
115
- }
116
- }
117
- ]
118
- }
@@ -1,41 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
-
3
- export default {
4
- appearances: {
5
- inverse: {
6
- values: [true],
7
- type: 'variant'
8
- }
9
- },
10
- tokens: {
11
- backgroundColor: palette.color.greyThunder,
12
- paddingTop: palette.size.size8,
13
- paddingBottom: palette.size.size8,
14
- paddingLeft: palette.size.size16,
15
- paddingRight: palette.size.size16,
16
- borderRadius: palette.radius.radius8,
17
- shadow: palette.shadow.elevation1,
18
-
19
- color: palette.color.white,
20
- fontSize: palette.fontSize.size14,
21
- lineHeight: palette.lineHeight.ratio3to2,
22
-
23
- // TODO: replace with font token
24
- fontName: Object.keys(palette.font)[0],
25
- fontWeight: '400',
26
- // font: palette.font.HelveticaNow[400]
27
-
28
- arrowWidth: palette.size.size16,
29
- arrowBorderRadius: palette.radius.radius1,
30
- arrowOffset: palette.size.size4
31
- },
32
- rules: [
33
- {
34
- if: { inverse: true },
35
- tokens: {
36
- backgroundColor: palette.color.white,
37
- color: palette.color.greyCharcoal
38
- }
39
- }
40
- ]
41
- }
@@ -1,68 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- import questionIcon from '@telus-uds/palette-allium/build/rn/icons/question.icon.svg'
6
-
7
- export default {
8
- appearances: {
9
- focus: appearances.TooltipButton.focus,
10
- hover: appearances.TooltipButton.hover,
11
- pressed: appearances.TooltipButton.pressed,
12
- inverse: {
13
- values: [true],
14
- type: 'variant'
15
- }
16
- },
17
- tokens: {
18
- outerBorderColor: palette.color.transparent,
19
- outerBorderWidth: palette.border.border1,
20
- outerBorderGap: palette.size.size4,
21
- outerBorderRadius: palette.radius.pill32,
22
- borderRadius: palette.radius.pill32,
23
- width: palette.size.size16,
24
-
25
- icon: questionIcon,
26
- iconScale: system.iconScale.scale1,
27
- iconSize: palette.size.size16,
28
- iconColor: palette.color.greyThunder
29
- },
30
- rules: [
31
- {
32
- if: { inverse: true },
33
- tokens: {
34
- iconColor: palette.color.white
35
- }
36
- },
37
- {
38
- if: { hover: true },
39
- tokens: {
40
- iconScale: system.iconScale.scale1_25
41
- }
42
- },
43
- {
44
- if: { pressed: true },
45
- tokens: {
46
- iconColor: palette.color.greyShuttle
47
- }
48
- },
49
- {
50
- if: { inverse: true, pressed: true },
51
- tokens: {
52
- iconColor: palette.color.greyCloud
53
- }
54
- },
55
- {
56
- if: { focus: true },
57
- tokens: {
58
- outerBorderColor: palette.color.greyShuttle
59
- }
60
- },
61
- {
62
- if: { inverse: true, focus: true },
63
- tokens: {
64
- outerBorderColor: palette.color.greyCloud
65
- }
66
- }
67
- ]
68
- }
@@ -1,355 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- export default {
6
- appearances: {
7
- size: {
8
- description: `Styles text as body or heading text with a given size. Smaller numbers indicate larger sizes,
9
- "display" headings are larger than "h" headings. Default is medium size body text. Does not change
10
- accessibility or SEO-related properties; use the heading prop if text should be treated semantically as a heading.`,
11
- values: [
12
- 'micro',
13
- 'small',
14
- 'large',
15
- 'eyebrow',
16
- 'h1',
17
- 'h2',
18
- 'h3',
19
- 'h4',
20
- 'h5',
21
- 'h6',
22
- 'display1',
23
- 'display2'
24
- ],
25
- type: 'variant'
26
- },
27
- colour: {
28
- description: `Each typography variant has a default color, and at least a secondary color variant. In exceptional cases where a different colour is needed,
29
- use the tokens prop.`,
30
- values: ['secondary', 'tertiary'],
31
- type: 'variant'
32
- },
33
- bold: {
34
- description:
35
- 'Sets the font weight, to bold on some body text styles. Does not change accessibility properties.',
36
- values: [true],
37
- type: 'variant'
38
- },
39
- inverse: {
40
- description: 'Styles the link white for use on dark backgrounds.',
41
- values: [true],
42
- type: 'variant'
43
- },
44
- compact: {
45
- description:
46
- 'Reduces line height on some body text styles. For data-rich content, not for flow content',
47
- values: [true],
48
- type: 'variant'
49
- },
50
- viewport: appearances.system.viewport
51
- },
52
- tokens: {
53
- // TODO: replace with font token
54
- fontName: Object.keys(palette.font)[0],
55
- fontWeight: '400',
56
- // font: palette.font.HelveticaNow[400]
57
-
58
- fontSize: palette.fontSize.size16,
59
- color: palette.color.greyThunder,
60
- lineHeight: palette.lineHeight.ratio3to2,
61
- letterSpacing: system.letterSpacing.none,
62
- textTransform: system.textTransform.none,
63
- fontScaleCap: palette.fontSize.size64
64
- },
65
- rules: [
66
- /**
67
- * Colour rules: most variants are thunder / charcoal, but some heading sizes are purple / thunder, inverse is white for all
68
- */
69
- {
70
- if: { colour: 'secondary' },
71
- tokens: {
72
- color: palette.color.greyCharcoal
73
- }
74
- },
75
-
76
- {
77
- if: { size: ['display1', 'display2', 'h1', 'h2', 'h3'] },
78
- tokens: {
79
- color: palette.color.purpleTelus
80
- }
81
- },
82
- {
83
- if: { size: ['display1', 'display2', 'h1', 'h2', 'h3'], colour: 'secondary' },
84
- tokens: {
85
- color: palette.color.greyThunder
86
- }
87
- },
88
- {
89
- if: { size: 'h6', colour: 'tertiary' }, // TODO pending confirmation that this is necessary
90
- tokens: {
91
- color: palette.color.greyShuttle
92
- }
93
- },
94
- {
95
- if: { size: 'eyebrow' },
96
- tokens: {
97
- color: palette.color.greyCharcoal
98
- }
99
- },
100
- {
101
- if: { size: 'eyebrow', colour: 'secondary' },
102
- tokens: {
103
- color: palette.color.purpleTelus
104
- }
105
- },
106
- {
107
- if: { inverse: true },
108
- tokens: {
109
- color: palette.color.white
110
- }
111
- },
112
-
113
- /**
114
- * Size/weight/line height/letter spacing rules
115
- */
116
- /* Display 1 */
117
- {
118
- if: { size: 'display1' },
119
- tokens: {
120
- fontSize: palette.fontSize.size40,
121
-
122
- // TODO: replace with font token
123
- fontWeight: '300',
124
- // font: palette.font.HelveticaNow[300]
125
-
126
- lineHeight: palette.lineHeight.ratio6to5,
127
- letterSpacing: palette.letterSpacing.medium
128
- }
129
- },
130
- {
131
- if: { size: 'display1', viewport: ['lg', 'xl'] },
132
- tokens: {
133
- fontSize: palette.fontSize.size64,
134
- lineHeight: palette.lineHeight.ratio9to8
135
- }
136
- },
137
-
138
- /* Display 2 */
139
- {
140
- if: { size: 'display2' },
141
- tokens: {
142
- fontSize: palette.fontSize.size36,
143
-
144
- // TODO: replace with font token
145
- fontWeight: '400',
146
- // font: palette.font.HelveticaNow[400]
147
-
148
- letterSpacing: palette.letterSpacing.medium,
149
- lineHeight: palette.lineHeight.ratio11to9
150
- }
151
- },
152
- {
153
- if: { size: 'display2', viewport: ['lg', 'xl'] },
154
- tokens: {
155
- fontSize: palette.fontSize.size56,
156
-
157
- // TODO: replace with font token
158
- fontWeight: '300',
159
- // font: palette.font.HelveticaNow[300]
160
-
161
- lineHeight: palette.lineHeight.ratio8to7,
162
- letterSpacing: palette.letterSpacing.condensed
163
- }
164
- },
165
-
166
- /* h1 */
167
- {
168
- if: { size: 'h1' },
169
- tokens: {
170
- fontSize: palette.fontSize.size28,
171
- lineHeight: palette.lineHeight.ratio9to7,
172
- letterSpacing: palette.letterSpacing.loose
173
- }
174
- },
175
- {
176
- if: { size: 'h1', viewport: ['lg', 'xl'] },
177
- tokens: {
178
- fontSize: palette.fontSize.size40,
179
-
180
- // TODO: replace with font token
181
- fontWeight: '300',
182
- // font: palette.font.HelveticaNow[300]
183
-
184
- lineHeight: palette.lineHeight.ratio6to5,
185
- letterSpacing: palette.letterSpacing.medium
186
- }
187
- },
188
-
189
- /* h2 */
190
- {
191
- if: { size: 'h2' },
192
- tokens: {
193
- fontSize: palette.fontSize.size24,
194
-
195
- // TODO: replace with font token
196
- fontWeight: '500',
197
- // font: palette.font.HelveticaNow[500]
198
-
199
- lineHeight: palette.lineHeight.ratio4to3
200
- }
201
- },
202
- {
203
- if: { size: 'h2', viewport: ['lg', 'xl'] },
204
- tokens: {
205
- fontSize: palette.fontSize.size28,
206
- lineHeight: palette.lineHeight.ratio9to7,
207
- letterSpacing: palette.letterSpacing.loose
208
- }
209
- },
210
-
211
- /* h3 */
212
- {
213
- if: { size: 'h3' },
214
- tokens: {
215
- fontSize: palette.fontSize.size20,
216
-
217
- // TODO: replace with font token
218
- fontWeight: '500',
219
- // font: palette.font.HelveticaNow[500]
220
-
221
- lineHeight: palette.lineHeight.ratio7to5
222
- }
223
- },
224
- {
225
- if: { size: 'h3', viewport: ['lg', 'xl'] },
226
- tokens: {
227
- fontSize: palette.fontSize.size24,
228
- lineHeight: palette.lineHeight.ratio4to3
229
- }
230
- },
231
-
232
- /* h4 */
233
- {
234
- if: { size: 'h4' },
235
- tokens: {
236
- fontSize: palette.fontSize.size16,
237
-
238
- // TODO: replace with font token
239
- fontWeight: '500',
240
- // font: palette.font.HelveticaNow[500]
241
-
242
- lineHeight: palette.lineHeight.ratio3to2
243
- }
244
- },
245
-
246
- /* h5 */
247
- {
248
- if: { size: 'h5' },
249
- tokens: {
250
- fontSize: palette.fontSize.size14,
251
-
252
- // TODO: replace with font token
253
- fontWeight: '500',
254
- // font: palette.font.HelveticaNow[500]
255
-
256
- lineHeight: palette.lineHeight.ratio9to7
257
- }
258
- },
259
-
260
- /* h6 */
261
- {
262
- if: { size: 'h6' },
263
- tokens: {
264
- fontSize: palette.fontSize.size12,
265
-
266
- // TODO: replace with font token
267
- fontWeight: '700',
268
- // font: palette.font.HelveticaNow[700]
269
-
270
- lineHeight: palette.lineHeight.ratio4to3
271
- }
272
- },
273
-
274
- /* large */
275
- {
276
- if: { size: 'large' },
277
- tokens: {
278
- fontSize: palette.fontSize.size20,
279
- lineHeight: palette.lineHeight.ratio8to5
280
- }
281
- },
282
- {
283
- if: { size: 'large', compact: true },
284
- tokens: {
285
- lineHeight: palette.lineHeight.ratio6to5
286
- }
287
- },
288
-
289
- /* default (medium) */
290
- {
291
- if: { size: null, compact: true },
292
- description:
293
- "The compact line height for the 'default' font size, but doesn't apply for any other styles",
294
- tokens: {
295
- lineHeight: palette.lineHeight.ratio5to4
296
- }
297
- },
298
- /* small */
299
- {
300
- if: { size: 'small' },
301
- tokens: {
302
- fontSize: palette.fontSize.size14,
303
- lineHeight: palette.lineHeight.ratio10to7
304
- }
305
- },
306
- {
307
- if: { size: 'small', compact: true },
308
- tokens: {
309
- lineHeight: palette.lineHeight.ratio8to7
310
- }
311
- },
312
-
313
- /* micro */
314
- {
315
- if: { size: 'micro' },
316
- tokens: {
317
- fontSize: palette.fontSize.size12,
318
-
319
- // TODO: replace with font token
320
- fontWeight: '500',
321
- // font: palette.font.HelveticaNow[500]
322
-
323
- lineHeight: palette.lineHeight.ratio4to3
324
- }
325
- },
326
-
327
- /* eyebrow */
328
- {
329
- if: { size: 'eyebrow' },
330
- tokens: {
331
- fontSize: palette.fontSize.size14,
332
-
333
- // TODO: replace with font token
334
- fontWeight: '700',
335
- // font: palette.font.HelveticaNow[700]
336
-
337
- textTransform: system.textTransform.uppercase,
338
- lineHeight: palette.lineHeight.ratio9to7
339
- }
340
- },
341
-
342
- /**
343
- * bold styles
344
- */
345
- {
346
- if: { size: ['large', null, 'small', 'micro'], bold: true },
347
- description: 'Bold is only available on body text styles, not headings',
348
- tokens: {
349
- // TODO: replace with font token
350
- fontWeight: '700'
351
- // font: palette.font.HelveticaNow[700]
352
- }
353
- }
354
- ]
355
- }
@@ -1,37 +0,0 @@
1
- export { default as ActivityIndicator } from './ActivityIndicator'
2
- export { default as Box } from './Box'
3
- export { default as Button } from './Button'
4
- export { default as ButtonGroup } from './ButtonGroup'
5
- export { default as ButtonGroupItem } from './ButtonGroupItem'
6
- export { default as Card } from './Card'
7
- export { default as Checkbox } from './Checkbox'
8
- export { default as ChevronLink } from './ChevronLink'
9
- export { default as Divider } from './Divider'
10
- export { default as ExpandCollapse } from './ExpandCollapse'
11
- export { default as ExpandCollapseControl } from './ExpandCollapseControl'
12
- export { default as ExpandCollapsePanel } from './ExpandCollapsePanel'
13
- export { default as Feedback } from './Feedback'
14
- export { default as Icon } from './Icon'
15
- export { default as InputLabel } from './InputLabel'
16
- export { default as InputSupports } from './InputSupports'
17
- export { default as Link } from './Link'
18
- export { default as List } from './List'
19
- export { default as Pagination } from './Pagination'
20
- export { default as PaginationPageButton } from './PaginationPageButton'
21
- export { default as PaginationSideButton } from './PaginationSideButton'
22
- export { default as Radio } from './Radio'
23
- export { default as Select } from './Select'
24
- export { default as SideNav } from './SideNav'
25
- export { default as SideNavItem } from './SideNavItem'
26
- export { default as SideNavItemsGroup } from './SideNavItemsGroup'
27
- export { default as Skeleton } from './Skeleton'
28
- export { default as StackView } from './StackView'
29
- export { default as Tags } from './Tags'
30
- export { default as TagsItem } from './TagsItem'
31
- export { default as TextArea } from './TextArea'
32
- export { default as TextInput } from './TextInput'
33
- export { default as ToggleSwitch } from './ToggleSwitch'
34
- export { default as Tooltip } from './Tooltip'
35
- export { default as TooltipButton } from './TooltipButton'
36
- export { default as Typography } from './Typography'
37
- export { default as spacingScale } from './spacingScale'
@@ -1,36 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import { appearances } from '@telus-uds/system-themes/schema'
3
-
4
- export default {
5
- appearances: {
6
- space: appearances.spacingScale.space,
7
- viewport: appearances.system.viewport
8
- },
9
- // Largest spacings first, so they apply any time space >= highest index'
10
- tokens: { size: palette.size.size96 },
11
- rules: [
12
- { if: { viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size120 } },
13
-
14
- { if: { space: 11 }, tokens: { size: palette.size.size96 } },
15
- { if: { space: 10 }, tokens: { size: palette.size.size80 } },
16
- { if: { space: 9 }, tokens: { size: palette.size.size64 } },
17
- { if: { space: 8 }, tokens: { size: palette.size.size48 } },
18
- { if: { space: 7 }, tokens: { size: palette.size.size40 } },
19
- { if: { space: 6 }, tokens: { size: palette.size.size36 } },
20
- { if: { space: 5 }, tokens: { size: palette.size.size32 } },
21
- { if: { space: 4 }, tokens: { size: palette.size.size24 } },
22
- { if: { space: 3 }, tokens: { size: palette.size.size16 } },
23
- { if: { space: 2 }, tokens: { size: palette.size.size8 } },
24
- { if: { space: 1 }, tokens: { size: palette.size.size4 } },
25
-
26
- { if: { space: 11, viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size120 } },
27
- { if: { space: 10, viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size96 } },
28
- { if: { space: 9, viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size72 } },
29
- { if: { space: 8, viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size64 } },
30
- { if: { space: 7 }, tokens: { size: palette.size.size48 } },
31
- { if: { space: 6 }, tokens: { size: palette.size.size40 } },
32
-
33
- // Zero spacing last; overrides all other rules when space === 0
34
- { if: { space: 0 }, tokens: { size: palette.size.size0 } }
35
- ]
36
- }
package/src/index.js DELETED
@@ -1,17 +0,0 @@
1
- import packageJson from '../package.json'
2
- import * as components from './components'
3
-
4
- // TODO: replace this with theme build tooling and schema checks as part of
5
- // https://github.com/telus/universal-design-system/issues/92
6
- const metadata = {
7
- name: 'allium',
8
- package: packageJson.name,
9
- version: packageJson.version
10
- }
11
-
12
- const alliumTheme = {
13
- metadata,
14
- components
15
- }
16
-
17
- export default alliumTheme