@carbon/themes 10.30.0 → 10.32.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/README.md +3 -18
- package/es/index.js +1343 -584
- package/lib/index.js +1495 -656
- package/package.json +6 -6
- package/scss/generated/_mixins.scss +1421 -146
- package/scss/generated/_themes.scss +718 -1
- package/scss/generated/_tokens.scss +750 -0
- package/scss/modules/generated/_themes.scss +201 -1
- package/src/g10.js +97 -2
- package/src/g100.js +95 -0
- package/src/g90.js +95 -0
- package/src/tokens.js +186 -0
- package/src/v9.js +95 -0
- package/src/white.js +95 -0
- package/umd/index.js +1495 -656
package/src/tokens.js
CHANGED
|
@@ -105,6 +105,99 @@ const colors = [
|
|
|
105
105
|
'skeleton01',
|
|
106
106
|
'skeleton02',
|
|
107
107
|
|
|
108
|
+
// New color tokens
|
|
109
|
+
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
110
|
+
'background',
|
|
111
|
+
'layer',
|
|
112
|
+
'layerAccent',
|
|
113
|
+
'field',
|
|
114
|
+
'backgroundInverse',
|
|
115
|
+
'backgroundBrand',
|
|
116
|
+
'interactive',
|
|
117
|
+
|
|
118
|
+
'borderSubtle',
|
|
119
|
+
'borderStrong',
|
|
120
|
+
'borderInverse',
|
|
121
|
+
'borderInteractive',
|
|
122
|
+
|
|
123
|
+
'textPrimary',
|
|
124
|
+
'textSecondary',
|
|
125
|
+
'textPlaceholder',
|
|
126
|
+
'textHelper',
|
|
127
|
+
'textOnColor',
|
|
128
|
+
'textInverse',
|
|
129
|
+
|
|
130
|
+
'linkPrimary',
|
|
131
|
+
'linkSecondary',
|
|
132
|
+
'linkVisited',
|
|
133
|
+
'linkInverse',
|
|
134
|
+
|
|
135
|
+
'iconPrimary',
|
|
136
|
+
'iconSecondary',
|
|
137
|
+
'iconOnColor',
|
|
138
|
+
'iconInverse',
|
|
139
|
+
|
|
140
|
+
'supportError',
|
|
141
|
+
'supportSuccess',
|
|
142
|
+
'supportWarning',
|
|
143
|
+
'supportInfo',
|
|
144
|
+
'supportErrorInverse',
|
|
145
|
+
'supportSuccessInverse',
|
|
146
|
+
'supportWarningInverse',
|
|
147
|
+
'supportInfoInverse',
|
|
148
|
+
|
|
149
|
+
'overlay',
|
|
150
|
+
'toggleOff',
|
|
151
|
+
|
|
152
|
+
'buttonPrimary',
|
|
153
|
+
'buttonSecondary',
|
|
154
|
+
'buttonTertiary',
|
|
155
|
+
'buttonDangerPrimary',
|
|
156
|
+
'buttonDangerSecondary',
|
|
157
|
+
|
|
158
|
+
'backgroundActive',
|
|
159
|
+
'layerActive',
|
|
160
|
+
|
|
161
|
+
'buttonDangerActive',
|
|
162
|
+
'buttonPrimaryActive',
|
|
163
|
+
'buttonSecondaryActive',
|
|
164
|
+
'buttonTertiaryActive',
|
|
165
|
+
|
|
166
|
+
'focusInset',
|
|
167
|
+
'focusInverse',
|
|
168
|
+
|
|
169
|
+
'backgroundHover',
|
|
170
|
+
'layerHover',
|
|
171
|
+
'fieldHover',
|
|
172
|
+
'backgroundInverseHover',
|
|
173
|
+
'linkPrimaryHover',
|
|
174
|
+
'buttonDangerHover',
|
|
175
|
+
'buttonPrimaryHover',
|
|
176
|
+
'buttonSecondaryHover',
|
|
177
|
+
'buttonTertiaryHover',
|
|
178
|
+
|
|
179
|
+
'backgroundSelected',
|
|
180
|
+
'backgroundSelectedHover',
|
|
181
|
+
'layerSelected',
|
|
182
|
+
'layerSelectedHover',
|
|
183
|
+
'layerSelectedInverse',
|
|
184
|
+
'borderSubtleSelected',
|
|
185
|
+
|
|
186
|
+
'layerDisabled',
|
|
187
|
+
'fieldDisabled',
|
|
188
|
+
'borderDisabled',
|
|
189
|
+
|
|
190
|
+
'textDisabled',
|
|
191
|
+
'buttonDisabled',
|
|
192
|
+
'iconDisabled',
|
|
193
|
+
|
|
194
|
+
'textOnColorDisabled',
|
|
195
|
+
'iconOnColorDisabled',
|
|
196
|
+
'layerSelectedDisabled',
|
|
197
|
+
|
|
198
|
+
'skeletonBackground',
|
|
199
|
+
'skeletonElement',
|
|
200
|
+
|
|
108
201
|
// Deprecated
|
|
109
202
|
'brand01',
|
|
110
203
|
'brand02',
|
|
@@ -206,6 +299,55 @@ export const unstable__meta = {
|
|
|
206
299
|
'inverseSupport03',
|
|
207
300
|
'inverseSupport04',
|
|
208
301
|
'overlay01',
|
|
302
|
+
|
|
303
|
+
//new tokens
|
|
304
|
+
'background',
|
|
305
|
+
'layer',
|
|
306
|
+
'layerAccent',
|
|
307
|
+
'field',
|
|
308
|
+
'backgroundInverse',
|
|
309
|
+
'backgroundBrand',
|
|
310
|
+
'interactive',
|
|
311
|
+
|
|
312
|
+
'borderSubtle',
|
|
313
|
+
'borderStrong',
|
|
314
|
+
'borderInverse',
|
|
315
|
+
'borderInteractive',
|
|
316
|
+
|
|
317
|
+
'textPrimary',
|
|
318
|
+
'textSecondary',
|
|
319
|
+
'textPlaceholder',
|
|
320
|
+
'textHelper',
|
|
321
|
+
'textOnColor',
|
|
322
|
+
'textInverse',
|
|
323
|
+
|
|
324
|
+
'linkPrimary',
|
|
325
|
+
'linkSecondary',
|
|
326
|
+
'linkVisited',
|
|
327
|
+
'linkInverse',
|
|
328
|
+
|
|
329
|
+
'iconPrimary',
|
|
330
|
+
'iconSecondary',
|
|
331
|
+
'iconOnColor',
|
|
332
|
+
'iconInverse',
|
|
333
|
+
|
|
334
|
+
'supportError',
|
|
335
|
+
'supportSuccess',
|
|
336
|
+
'supportWarning',
|
|
337
|
+
'supportInfo',
|
|
338
|
+
'supportErrorInverse',
|
|
339
|
+
'supportSuccessInverse',
|
|
340
|
+
'supportWarningInverse',
|
|
341
|
+
'supportInfoInverse',
|
|
342
|
+
|
|
343
|
+
'overlay',
|
|
344
|
+
'toggleOff',
|
|
345
|
+
|
|
346
|
+
'buttonPrimary',
|
|
347
|
+
'buttonSecondary',
|
|
348
|
+
'buttonTertiary',
|
|
349
|
+
'buttonDangerPrimary',
|
|
350
|
+
'buttonDangerSecondary',
|
|
209
351
|
],
|
|
210
352
|
},
|
|
211
353
|
{
|
|
@@ -242,6 +384,50 @@ export const unstable__meta = {
|
|
|
242
384
|
'hoverField',
|
|
243
385
|
'decorative01',
|
|
244
386
|
'buttonSeparator',
|
|
387
|
+
|
|
388
|
+
// new tokens
|
|
389
|
+
'backgroundActive',
|
|
390
|
+
'layerActive',
|
|
391
|
+
|
|
392
|
+
'buttonDangerActive',
|
|
393
|
+
'buttonPrimaryActive',
|
|
394
|
+
'buttonSecondaryActive',
|
|
395
|
+
'buttonTertiaryActive',
|
|
396
|
+
|
|
397
|
+
'focusInset',
|
|
398
|
+
'focusInverse',
|
|
399
|
+
|
|
400
|
+
'backgroundHover',
|
|
401
|
+
'layerHover',
|
|
402
|
+
'fieldHover',
|
|
403
|
+
'backgroundInverseHover',
|
|
404
|
+
'linkPrimaryHover',
|
|
405
|
+
'buttonDangerHover',
|
|
406
|
+
'buttonPrimaryHover',
|
|
407
|
+
'buttonSecondaryHover',
|
|
408
|
+
'buttonTertiaryHover',
|
|
409
|
+
|
|
410
|
+
'backgroundSelected',
|
|
411
|
+
'backgroundSelectedHover',
|
|
412
|
+
'layerSelected',
|
|
413
|
+
'layerSelectedHover',
|
|
414
|
+
'layerSelectedInverse',
|
|
415
|
+
'borderSubtleSelected',
|
|
416
|
+
|
|
417
|
+
'layerDisabled',
|
|
418
|
+
'fieldDisabled',
|
|
419
|
+
'borderDisabled',
|
|
420
|
+
|
|
421
|
+
'textDisabled',
|
|
422
|
+
'buttonDisabled',
|
|
423
|
+
'iconDisabled',
|
|
424
|
+
|
|
425
|
+
'textOnColorDisabled',
|
|
426
|
+
'iconOnColorDisabled',
|
|
427
|
+
'layerSelectedDisabled',
|
|
428
|
+
|
|
429
|
+
'skeletonBackground',
|
|
430
|
+
'skeletonElement',
|
|
245
431
|
],
|
|
246
432
|
},
|
|
247
433
|
],
|
package/src/v9.js
CHANGED
|
@@ -101,6 +101,99 @@ export const buttonSeparator = '#e0e0e0';
|
|
|
101
101
|
export const skeleton01 = 'rgba(61, 112, 178, .1)';
|
|
102
102
|
export const skeleton02 = 'rgba(61, 112, 178, .1)';
|
|
103
103
|
|
|
104
|
+
// New color tokens
|
|
105
|
+
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
106
|
+
export const background = uiBackground;
|
|
107
|
+
export const layer = ui01;
|
|
108
|
+
export const layerAccent = ui03;
|
|
109
|
+
export const field = field01;
|
|
110
|
+
export const backgroundInverse = inverse02;
|
|
111
|
+
export const backgroundBrand = interactive01;
|
|
112
|
+
export const interactive = interactive04;
|
|
113
|
+
|
|
114
|
+
export const borderSubtle = ui03;
|
|
115
|
+
export const borderStrong = ui04;
|
|
116
|
+
export const borderInverse = ui05;
|
|
117
|
+
export const borderInteractive = interactive04;
|
|
118
|
+
|
|
119
|
+
export const textPrimary = text01;
|
|
120
|
+
export const textSecondary = text02;
|
|
121
|
+
export const textPlaceholder = text03;
|
|
122
|
+
export const textHelper = text05;
|
|
123
|
+
export const textOnColor = text04;
|
|
124
|
+
export const textInverse = inverse01;
|
|
125
|
+
|
|
126
|
+
export const linkPrimary = link01;
|
|
127
|
+
export const linkSecondary = link02;
|
|
128
|
+
export const linkVisited = visitedLink;
|
|
129
|
+
export const linkInverse = inverseLink;
|
|
130
|
+
|
|
131
|
+
export const iconPrimary = icon01;
|
|
132
|
+
export const iconSecondary = icon02;
|
|
133
|
+
export const iconOnColor = icon03;
|
|
134
|
+
export const iconInverse = inverse01;
|
|
135
|
+
|
|
136
|
+
export const supportError = support01;
|
|
137
|
+
export const supportSuccess = support02;
|
|
138
|
+
export const supportWarning = support03;
|
|
139
|
+
export const supportInfo = support04;
|
|
140
|
+
export const supportErrorInverse = inverseSupport01;
|
|
141
|
+
export const supportSuccessInverse = inverseSupport02;
|
|
142
|
+
export const supportWarningInverse = inverseSupport03;
|
|
143
|
+
export const supportInfoInverse = inverseSupport04;
|
|
144
|
+
|
|
145
|
+
export const overlay = overlay01;
|
|
146
|
+
export const toggleOff = ui04;
|
|
147
|
+
|
|
148
|
+
export const buttonPrimary = interactive01;
|
|
149
|
+
export const buttonSecondary = interactive02;
|
|
150
|
+
export const buttonTertiary = interactive03;
|
|
151
|
+
export const buttonDangerPrimary = danger01;
|
|
152
|
+
export const buttonDangerSecondary = danger02;
|
|
153
|
+
|
|
154
|
+
export const backgroundActive = activeUI;
|
|
155
|
+
export const layerActive = activeUI;
|
|
156
|
+
|
|
157
|
+
export const buttonDangerActive = activeDanger;
|
|
158
|
+
export const buttonPrimaryActive = activePrimary;
|
|
159
|
+
export const buttonSecondaryActive = activeSecondary;
|
|
160
|
+
export const buttonTertiaryActive = activeTertiary;
|
|
161
|
+
|
|
162
|
+
export const focusInset = inverse01;
|
|
163
|
+
export const focusInverse = inverseFocusUi;
|
|
164
|
+
|
|
165
|
+
export const backgroundHover = hoverUI;
|
|
166
|
+
export const layerHover = hoverUI;
|
|
167
|
+
export const fieldHover = hoverUI;
|
|
168
|
+
export const backgroundInverseHover = inverseHoverUI;
|
|
169
|
+
export const linkPrimaryHover = hoverPrimaryText;
|
|
170
|
+
export const buttonDangerHover = hoverDanger;
|
|
171
|
+
export const buttonPrimaryHover = hoverPrimary;
|
|
172
|
+
export const buttonSecondaryHover = hoverSecondary;
|
|
173
|
+
export const buttonTertiaryHover = hoverTertiary;
|
|
174
|
+
|
|
175
|
+
export const backgroundSelected = selectedUI;
|
|
176
|
+
export const backgroundSelectedHover = hoverSelectedUI;
|
|
177
|
+
export const layerSelected = selectedUI;
|
|
178
|
+
export const layerSelectedHover = hoverSelectedUI;
|
|
179
|
+
export const layerSelectedInverse = ui05;
|
|
180
|
+
export const borderSubtleSelected = activeUI;
|
|
181
|
+
|
|
182
|
+
export const layerDisabled = disabled01;
|
|
183
|
+
export const fieldDisabled = disabled01;
|
|
184
|
+
export const borderDisabled = disabled01;
|
|
185
|
+
|
|
186
|
+
export const textDisabled = disabled02;
|
|
187
|
+
export const buttonDisabled = disabled02;
|
|
188
|
+
export const iconDisabled = disabled02;
|
|
189
|
+
|
|
190
|
+
export const textOnColorDisabled = disabled03;
|
|
191
|
+
export const iconOnColorDisabled = disabled03;
|
|
192
|
+
export const layerSelectedDisabled = disabled03;
|
|
193
|
+
|
|
194
|
+
export const skeletonBackground = skeleton01;
|
|
195
|
+
export const skeletonElement = skeleton02;
|
|
196
|
+
|
|
104
197
|
export {
|
|
105
198
|
// Type
|
|
106
199
|
caption01,
|
|
@@ -148,12 +241,14 @@ export {
|
|
|
148
241
|
spacing10,
|
|
149
242
|
spacing11,
|
|
150
243
|
spacing12,
|
|
244
|
+
spacing13,
|
|
151
245
|
// Fluid spacing
|
|
152
246
|
fluidSpacing01,
|
|
153
247
|
fluidSpacing02,
|
|
154
248
|
fluidSpacing03,
|
|
155
249
|
fluidSpacing04,
|
|
156
250
|
// Layout
|
|
251
|
+
// Deprecated -- Remove in v11
|
|
157
252
|
layout01,
|
|
158
253
|
layout02,
|
|
159
254
|
layout03,
|
package/src/white.js
CHANGED
|
@@ -137,6 +137,99 @@ export const buttonSeparator = '#e0e0e0';
|
|
|
137
137
|
export const skeleton01 = '#e5e5e5';
|
|
138
138
|
export const skeleton02 = gray30;
|
|
139
139
|
|
|
140
|
+
// New color tokens
|
|
141
|
+
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
142
|
+
export const background = uiBackground;
|
|
143
|
+
export const layer = ui01;
|
|
144
|
+
export const layerAccent = ui03;
|
|
145
|
+
export const field = field01;
|
|
146
|
+
export const backgroundInverse = inverse02;
|
|
147
|
+
export const backgroundBrand = interactive01;
|
|
148
|
+
export const interactive = interactive04;
|
|
149
|
+
|
|
150
|
+
export const borderSubtle = ui03;
|
|
151
|
+
export const borderStrong = ui04;
|
|
152
|
+
export const borderInverse = ui05;
|
|
153
|
+
export const borderInteractive = interactive04;
|
|
154
|
+
|
|
155
|
+
export const textPrimary = text01;
|
|
156
|
+
export const textSecondary = text02;
|
|
157
|
+
export const textPlaceholder = text03;
|
|
158
|
+
export const textHelper = text05;
|
|
159
|
+
export const textOnColor = text04;
|
|
160
|
+
export const textInverse = inverse01;
|
|
161
|
+
|
|
162
|
+
export const linkPrimary = link01;
|
|
163
|
+
export const linkSecondary = link02;
|
|
164
|
+
export const linkVisited = visitedLink;
|
|
165
|
+
export const linkInverse = inverseLink;
|
|
166
|
+
|
|
167
|
+
export const iconPrimary = icon01;
|
|
168
|
+
export const iconSecondary = icon02;
|
|
169
|
+
export const iconOnColor = icon03;
|
|
170
|
+
export const iconInverse = inverse01;
|
|
171
|
+
|
|
172
|
+
export const supportError = support01;
|
|
173
|
+
export const supportSuccess = support02;
|
|
174
|
+
export const supportWarning = support03;
|
|
175
|
+
export const supportInfo = support04;
|
|
176
|
+
export const supportErrorInverse = inverseSupport01;
|
|
177
|
+
export const supportSuccessInverse = inverseSupport02;
|
|
178
|
+
export const supportWarningInverse = inverseSupport03;
|
|
179
|
+
export const supportInfoInverse = inverseSupport04;
|
|
180
|
+
|
|
181
|
+
export const overlay = overlay01;
|
|
182
|
+
export const toggleOff = ui04;
|
|
183
|
+
|
|
184
|
+
export const buttonPrimary = interactive01;
|
|
185
|
+
export const buttonSecondary = interactive02;
|
|
186
|
+
export const buttonTertiary = interactive03;
|
|
187
|
+
export const buttonDangerPrimary = danger01;
|
|
188
|
+
export const buttonDangerSecondary = danger02;
|
|
189
|
+
|
|
190
|
+
export const backgroundActive = activeUI;
|
|
191
|
+
export const layerActive = activeUI;
|
|
192
|
+
|
|
193
|
+
export const buttonDangerActive = activeDanger;
|
|
194
|
+
export const buttonPrimaryActive = activePrimary;
|
|
195
|
+
export const buttonSecondaryActive = activeSecondary;
|
|
196
|
+
export const buttonTertiaryActive = activeTertiary;
|
|
197
|
+
|
|
198
|
+
export const focusInset = inverse01;
|
|
199
|
+
export const focusInverse = inverseFocusUi;
|
|
200
|
+
|
|
201
|
+
export const backgroundHover = hoverUI;
|
|
202
|
+
export const layerHover = hoverUI;
|
|
203
|
+
export const fieldHover = hoverUI;
|
|
204
|
+
export const backgroundInverseHover = inverseHoverUI;
|
|
205
|
+
export const linkPrimaryHover = hoverPrimaryText;
|
|
206
|
+
export const buttonDangerHover = hoverDanger;
|
|
207
|
+
export const buttonPrimaryHover = hoverPrimary;
|
|
208
|
+
export const buttonSecondaryHover = hoverSecondary;
|
|
209
|
+
export const buttonTertiaryHover = hoverTertiary;
|
|
210
|
+
|
|
211
|
+
export const backgroundSelected = selectedUI;
|
|
212
|
+
export const backgroundSelectedHover = hoverSelectedUI;
|
|
213
|
+
export const layerSelected = selectedUI;
|
|
214
|
+
export const layerSelectedHover = hoverSelectedUI;
|
|
215
|
+
export const layerSelectedInverse = ui05;
|
|
216
|
+
export const borderSubtleSelected = activeUI;
|
|
217
|
+
|
|
218
|
+
export const layerDisabled = disabled01;
|
|
219
|
+
export const fieldDisabled = disabled01;
|
|
220
|
+
export const borderDisabled = disabled01;
|
|
221
|
+
|
|
222
|
+
export const textDisabled = disabled02;
|
|
223
|
+
export const buttonDisabled = disabled02;
|
|
224
|
+
export const iconDisabled = disabled02;
|
|
225
|
+
|
|
226
|
+
export const textOnColorDisabled = disabled03;
|
|
227
|
+
export const iconOnColorDisabled = disabled03;
|
|
228
|
+
export const layerSelectedDisabled = disabled03;
|
|
229
|
+
|
|
230
|
+
export const skeletonBackground = skeleton01;
|
|
231
|
+
export const skeletonElement = skeleton02;
|
|
232
|
+
|
|
140
233
|
// Type
|
|
141
234
|
export {
|
|
142
235
|
caption01,
|
|
@@ -187,12 +280,14 @@ export {
|
|
|
187
280
|
spacing10,
|
|
188
281
|
spacing11,
|
|
189
282
|
spacing12,
|
|
283
|
+
spacing13,
|
|
190
284
|
// Fluid spacing
|
|
191
285
|
fluidSpacing01,
|
|
192
286
|
fluidSpacing02,
|
|
193
287
|
fluidSpacing03,
|
|
194
288
|
fluidSpacing04,
|
|
195
289
|
// Layout
|
|
290
|
+
// Deprecated -- Remove in v11
|
|
196
291
|
layout01,
|
|
197
292
|
layout02,
|
|
198
293
|
layout03,
|