@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
|
@@ -82,6 +82,80 @@ $white: utilities.merge(
|
|
|
82
82
|
button-separator: #e0e0e0,
|
|
83
83
|
skeleton-01: #e5e5e5,
|
|
84
84
|
skeleton-02: #c6c6c6,
|
|
85
|
+
background: #ffffff,
|
|
86
|
+
layer: #f4f4f4,
|
|
87
|
+
layer-accent: #e0e0e0,
|
|
88
|
+
field: #f4f4f4,
|
|
89
|
+
background-inverse: #393939,
|
|
90
|
+
background-brand: #0f62fe,
|
|
91
|
+
interactive: #0f62fe,
|
|
92
|
+
border-subtle: #e0e0e0,
|
|
93
|
+
border-strong: #8d8d8d,
|
|
94
|
+
border-inverse: #161616,
|
|
95
|
+
border-interactive: #0f62fe,
|
|
96
|
+
text-primary: #161616,
|
|
97
|
+
text-secondary: #525252,
|
|
98
|
+
text-placeholder: #a8a8a8,
|
|
99
|
+
text-helper: #6f6f6f,
|
|
100
|
+
text-on-color: #ffffff,
|
|
101
|
+
text-inverse: #ffffff,
|
|
102
|
+
link-primary: #0f62fe,
|
|
103
|
+
link-secondary: #0043ce,
|
|
104
|
+
link-visited: #8a3ffc,
|
|
105
|
+
link-inverse: #78a9ff,
|
|
106
|
+
icon-primary: #161616,
|
|
107
|
+
icon-secondary: #525252,
|
|
108
|
+
icon-on-color: #ffffff,
|
|
109
|
+
icon-inverse: #ffffff,
|
|
110
|
+
support-error: #da1e28,
|
|
111
|
+
support-success: #24a148,
|
|
112
|
+
support-warning: #f1c21b,
|
|
113
|
+
support-info: #0043ce,
|
|
114
|
+
support-error-inverse: #fa4d56,
|
|
115
|
+
support-success-inverse: #42be65,
|
|
116
|
+
support-warning-inverse: #f1c21b,
|
|
117
|
+
support-info-inverse: #4589ff,
|
|
118
|
+
overlay: rgba(22, 22, 22, 0.5),
|
|
119
|
+
toggle-off: #8d8d8d,
|
|
120
|
+
button-primary: #0f62fe,
|
|
121
|
+
button-secondary: #393939,
|
|
122
|
+
button-tertiary: #0f62fe,
|
|
123
|
+
button-danger-primary: #da1e28,
|
|
124
|
+
button-danger-secondary: #da1e28,
|
|
125
|
+
background-active: #c6c6c6,
|
|
126
|
+
layer-active: #c6c6c6,
|
|
127
|
+
button-danger-active: #750e13,
|
|
128
|
+
button-primary-active: #002d9c,
|
|
129
|
+
button-secondary-active: #6f6f6f,
|
|
130
|
+
button-tertiary-active: #002d9c,
|
|
131
|
+
focus-inset: #ffffff,
|
|
132
|
+
focus-inverse: #ffffff,
|
|
133
|
+
background-hover: #e5e5e5,
|
|
134
|
+
layer-hover: #e5e5e5,
|
|
135
|
+
field-hover: #e5e5e5,
|
|
136
|
+
background-inverse-hover: #4c4c4c,
|
|
137
|
+
link-primary-hover: #0043ce,
|
|
138
|
+
button-danger-hover: #b81921,
|
|
139
|
+
button-primary-hover: #0353e9,
|
|
140
|
+
button-secondary-hover: #4c4c4c,
|
|
141
|
+
button-tertiary-hover: #0353e9,
|
|
142
|
+
background-selected: #e0e0e0,
|
|
143
|
+
background-selected-hover: #cacaca,
|
|
144
|
+
layer-selected: #e0e0e0,
|
|
145
|
+
layer-selected-hover: #cacaca,
|
|
146
|
+
layer-selected-inverse: #161616,
|
|
147
|
+
border-subtle-selected: #c6c6c6,
|
|
148
|
+
layer-disabled: #f4f4f4,
|
|
149
|
+
field-disabled: #f4f4f4,
|
|
150
|
+
border-disabled: #f4f4f4,
|
|
151
|
+
text-disabled: #c6c6c6,
|
|
152
|
+
button-disabled: #c6c6c6,
|
|
153
|
+
icon-disabled: #c6c6c6,
|
|
154
|
+
text-on-color-disabled: #8d8d8d,
|
|
155
|
+
icon-on-color-disabled: #8d8d8d,
|
|
156
|
+
layer-selected-disabled: #8d8d8d,
|
|
157
|
+
skeleton-background: #e5e5e5,
|
|
158
|
+
skeleton-element: #c6c6c6,
|
|
85
159
|
brand-01: #0f62fe,
|
|
86
160
|
brand-02: #393939,
|
|
87
161
|
brand-03: #0f62fe,
|
|
@@ -104,7 +178,12 @@ $g10: map.merge(
|
|
|
104
178
|
field-01: #ffffff,
|
|
105
179
|
field-02: #f4f4f4,
|
|
106
180
|
disabled-01: #ffffff,
|
|
107
|
-
|
|
181
|
+
background: #f4f4f4,
|
|
182
|
+
layer: #ffffff,
|
|
183
|
+
field: #ffffff,
|
|
184
|
+
layer-disabled: #ffffff,
|
|
185
|
+
field-disabled: #ffffff,
|
|
186
|
+
border-disabled: #ffffff,
|
|
108
187
|
)
|
|
109
188
|
) !default;
|
|
110
189
|
|
|
@@ -170,6 +249,67 @@ $g90: map.merge(
|
|
|
170
249
|
button-separator: #161616,
|
|
171
250
|
skeleton-01: #353535,
|
|
172
251
|
skeleton-02: #525252,
|
|
252
|
+
background: #262626,
|
|
253
|
+
layer: #393939,
|
|
254
|
+
layer-accent: #525252,
|
|
255
|
+
field: #393939,
|
|
256
|
+
background-inverse: #f4f4f4,
|
|
257
|
+
interactive: #4589ff,
|
|
258
|
+
border-subtle: #525252,
|
|
259
|
+
border-inverse: #f4f4f4,
|
|
260
|
+
border-interactive: #4589ff,
|
|
261
|
+
text-primary: #f4f4f4,
|
|
262
|
+
text-secondary: #c6c6c6,
|
|
263
|
+
text-placeholder: #6f6f6f,
|
|
264
|
+
text-helper: #8d8d8d,
|
|
265
|
+
text-inverse: #161616,
|
|
266
|
+
link-primary: #78a9ff,
|
|
267
|
+
link-secondary: #a6c8ff,
|
|
268
|
+
link-visited: #be95ff,
|
|
269
|
+
link-inverse: #0f62fe,
|
|
270
|
+
icon-primary: #f4f4f4,
|
|
271
|
+
icon-secondary: #c6c6c6,
|
|
272
|
+
icon-inverse: #161616,
|
|
273
|
+
support-error: #ff8389,
|
|
274
|
+
support-success: #42be65,
|
|
275
|
+
support-info: #4589ff,
|
|
276
|
+
support-error-inverse: #da1e28,
|
|
277
|
+
support-success-inverse: #24a148,
|
|
278
|
+
support-info-inverse: #0f62fe,
|
|
279
|
+
overlay: rgba(22, 22, 22, 0.7),
|
|
280
|
+
button-secondary: #6f6f6f,
|
|
281
|
+
button-tertiary: #ffffff,
|
|
282
|
+
button-danger-secondary: #ff8389,
|
|
283
|
+
background-active: #6f6f6f,
|
|
284
|
+
layer-active: #6f6f6f,
|
|
285
|
+
button-secondary-active: #393939,
|
|
286
|
+
button-tertiary-active: #c6c6c6,
|
|
287
|
+
focus-inset: #161616,
|
|
288
|
+
focus-inverse: #0f62fe,
|
|
289
|
+
background-hover: #4c4c4c,
|
|
290
|
+
layer-hover: #4c4c4c,
|
|
291
|
+
field-hover: #4c4c4c,
|
|
292
|
+
background-inverse-hover: #e5e5e5,
|
|
293
|
+
link-primary-hover: #a6c8ff,
|
|
294
|
+
button-secondary-hover: #606060,
|
|
295
|
+
button-tertiary-hover: #f4f4f4,
|
|
296
|
+
background-selected: #525252,
|
|
297
|
+
background-selected-hover: #656565,
|
|
298
|
+
layer-selected: #525252,
|
|
299
|
+
layer-selected-hover: #656565,
|
|
300
|
+
layer-selected-inverse: #f4f4f4,
|
|
301
|
+
border-subtle-selected: #6f6f6f,
|
|
302
|
+
layer-disabled: #393939,
|
|
303
|
+
field-disabled: #393939,
|
|
304
|
+
border-disabled: #393939,
|
|
305
|
+
text-disabled: #6f6f6f,
|
|
306
|
+
button-disabled: #6f6f6f,
|
|
307
|
+
icon-disabled: #6f6f6f,
|
|
308
|
+
text-on-color-disabled: #a8a8a8,
|
|
309
|
+
icon-on-color-disabled: #a8a8a8,
|
|
310
|
+
layer-selected-disabled: #a8a8a8,
|
|
311
|
+
skeleton-background: #353535,
|
|
312
|
+
skeleton-element: #525252,
|
|
173
313
|
brand-02: #6f6f6f,
|
|
174
314
|
brand-03: #ffffff,
|
|
175
315
|
active-01: #6f6f6f,
|
|
@@ -239,6 +379,66 @@ $g100: map.merge(
|
|
|
239
379
|
button-separator: #161616,
|
|
240
380
|
skeleton-01: #353535,
|
|
241
381
|
skeleton-02: #525252,
|
|
382
|
+
background: #161616,
|
|
383
|
+
layer: #262626,
|
|
384
|
+
layer-accent: #393939,
|
|
385
|
+
field: #262626,
|
|
386
|
+
background-inverse: #f4f4f4,
|
|
387
|
+
interactive: #4589ff,
|
|
388
|
+
border-subtle: #393939,
|
|
389
|
+
border-strong: #6f6f6f,
|
|
390
|
+
border-inverse: #f4f4f4,
|
|
391
|
+
border-interactive: #4589ff,
|
|
392
|
+
text-primary: #f4f4f4,
|
|
393
|
+
text-secondary: #c6c6c6,
|
|
394
|
+
text-placeholder: #6f6f6f,
|
|
395
|
+
text-helper: #8d8d8d,
|
|
396
|
+
text-inverse: #161616,
|
|
397
|
+
link-primary: #78a9ff,
|
|
398
|
+
link-secondary: #a6c8ff,
|
|
399
|
+
link-visited: #be95ff,
|
|
400
|
+
link-inverse: #0f62fe,
|
|
401
|
+
icon-primary: #f4f4f4,
|
|
402
|
+
icon-secondary: #c6c6c6,
|
|
403
|
+
icon-inverse: #161616,
|
|
404
|
+
support-error: #fa4d56,
|
|
405
|
+
support-success: #42be65,
|
|
406
|
+
support-info: #4589ff,
|
|
407
|
+
support-error-inverse: #da1e28,
|
|
408
|
+
support-success-inverse: #24a148,
|
|
409
|
+
support-info-inverse: #0f62fe,
|
|
410
|
+
overlay: rgba(22, 22, 22, 0.7),
|
|
411
|
+
toggle-off: #6f6f6f,
|
|
412
|
+
button-secondary: #6f6f6f,
|
|
413
|
+
button-tertiary: #ffffff,
|
|
414
|
+
button-danger-secondary: #fa4d56,
|
|
415
|
+
background-active: #525252,
|
|
416
|
+
layer-active: #525252,
|
|
417
|
+
button-secondary-active: #393939,
|
|
418
|
+
button-tertiary-active: #c6c6c6,
|
|
419
|
+
focus-inset: #161616,
|
|
420
|
+
focus-inverse: #0f62fe,
|
|
421
|
+
background-hover: #353535,
|
|
422
|
+
layer-hover: #353535,
|
|
423
|
+
field-hover: #353535,
|
|
424
|
+
background-inverse-hover: #e5e5e5,
|
|
425
|
+
link-primary-hover: #a6c8ff,
|
|
426
|
+
button-secondary-hover: #606060,
|
|
427
|
+
button-tertiary-hover: #f4f4f4,
|
|
428
|
+
background-selected: #393939,
|
|
429
|
+
background-selected-hover: #4c4c4c,
|
|
430
|
+
layer-selected: #393939,
|
|
431
|
+
layer-selected-hover: #4c4c4c,
|
|
432
|
+
layer-selected-inverse: #f4f4f4,
|
|
433
|
+
border-subtle-selected: #525252,
|
|
434
|
+
layer-disabled: #262626,
|
|
435
|
+
field-disabled: #262626,
|
|
436
|
+
border-disabled: #262626,
|
|
437
|
+
text-disabled: #525252,
|
|
438
|
+
button-disabled: #525252,
|
|
439
|
+
icon-disabled: #525252,
|
|
440
|
+
skeleton-background: #353535,
|
|
441
|
+
skeleton-element: #525252,
|
|
242
442
|
brand-02: #6f6f6f,
|
|
243
443
|
brand-03: #ffffff,
|
|
244
444
|
active-01: #525252,
|
package/src/g10.js
CHANGED
|
@@ -8,7 +8,7 @@ import { adjustLightness } from './tools';
|
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
// Blue
|
|
11
|
-
|
|
11
|
+
blue20,
|
|
12
12
|
blue40,
|
|
13
13
|
blue60,
|
|
14
14
|
blue70,
|
|
@@ -128,7 +128,7 @@ export const disabled01 = white;
|
|
|
128
128
|
export const disabled02 = gray30;
|
|
129
129
|
export const disabled03 = gray50;
|
|
130
130
|
|
|
131
|
-
export const highlight =
|
|
131
|
+
export const highlight = blue20;
|
|
132
132
|
|
|
133
133
|
export const decorative01 = gray20;
|
|
134
134
|
|
|
@@ -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
|
export {
|
|
141
234
|
// Type
|
|
142
235
|
caption01,
|
|
@@ -184,12 +277,14 @@ export {
|
|
|
184
277
|
spacing10,
|
|
185
278
|
spacing11,
|
|
186
279
|
spacing12,
|
|
280
|
+
spacing13,
|
|
187
281
|
// Fluid spacing
|
|
188
282
|
fluidSpacing01,
|
|
189
283
|
fluidSpacing02,
|
|
190
284
|
fluidSpacing03,
|
|
191
285
|
fluidSpacing04,
|
|
192
286
|
// Layout
|
|
287
|
+
// Deprecated -- Remove in v11
|
|
193
288
|
layout01,
|
|
194
289
|
layout02,
|
|
195
290
|
layout03,
|
package/src/g100.js
CHANGED
|
@@ -136,6 +136,99 @@ export const buttonSeparator = '#161616';
|
|
|
136
136
|
export const skeleton01 = '#353535';
|
|
137
137
|
export const skeleton02 = gray70;
|
|
138
138
|
|
|
139
|
+
// New color tokens
|
|
140
|
+
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
141
|
+
export const background = uiBackground;
|
|
142
|
+
export const layer = ui01;
|
|
143
|
+
export const layerAccent = ui03;
|
|
144
|
+
export const field = field01;
|
|
145
|
+
export const backgroundInverse = inverse02;
|
|
146
|
+
export const backgroundBrand = interactive01;
|
|
147
|
+
export const interactive = interactive04;
|
|
148
|
+
|
|
149
|
+
export const borderSubtle = ui03;
|
|
150
|
+
export const borderStrong = ui04;
|
|
151
|
+
export const borderInverse = ui05;
|
|
152
|
+
export const borderInteractive = interactive04;
|
|
153
|
+
|
|
154
|
+
export const textPrimary = text01;
|
|
155
|
+
export const textSecondary = text02;
|
|
156
|
+
export const textPlaceholder = text03;
|
|
157
|
+
export const textHelper = text05;
|
|
158
|
+
export const textOnColor = text04;
|
|
159
|
+
export const textInverse = inverse01;
|
|
160
|
+
|
|
161
|
+
export const linkPrimary = link01;
|
|
162
|
+
export const linkSecondary = link02;
|
|
163
|
+
export const linkVisited = visitedLink;
|
|
164
|
+
export const linkInverse = inverseLink;
|
|
165
|
+
|
|
166
|
+
export const iconPrimary = icon01;
|
|
167
|
+
export const iconSecondary = icon02;
|
|
168
|
+
export const iconOnColor = icon03;
|
|
169
|
+
export const iconInverse = inverse01;
|
|
170
|
+
|
|
171
|
+
export const supportError = support01;
|
|
172
|
+
export const supportSuccess = support02;
|
|
173
|
+
export const supportWarning = support03;
|
|
174
|
+
export const supportInfo = support04;
|
|
175
|
+
export const supportErrorInverse = inverseSupport01;
|
|
176
|
+
export const supportSuccessInverse = inverseSupport02;
|
|
177
|
+
export const supportWarningInverse = inverseSupport03;
|
|
178
|
+
export const supportInfoInverse = inverseSupport04;
|
|
179
|
+
|
|
180
|
+
export const overlay = overlay01;
|
|
181
|
+
export const toggleOff = ui04;
|
|
182
|
+
|
|
183
|
+
export const buttonPrimary = interactive01;
|
|
184
|
+
export const buttonSecondary = interactive02;
|
|
185
|
+
export const buttonTertiary = interactive03;
|
|
186
|
+
export const buttonDangerPrimary = danger01;
|
|
187
|
+
export const buttonDangerSecondary = danger02;
|
|
188
|
+
|
|
189
|
+
export const backgroundActive = activeUI;
|
|
190
|
+
export const layerActive = activeUI;
|
|
191
|
+
|
|
192
|
+
export const buttonDangerActive = activeDanger;
|
|
193
|
+
export const buttonPrimaryActive = activePrimary;
|
|
194
|
+
export const buttonSecondaryActive = activeSecondary;
|
|
195
|
+
export const buttonTertiaryActive = activeTertiary;
|
|
196
|
+
|
|
197
|
+
export const focusInset = inverse01;
|
|
198
|
+
export const focusInverse = inverseFocusUi;
|
|
199
|
+
|
|
200
|
+
export const backgroundHover = hoverUI;
|
|
201
|
+
export const layerHover = hoverUI;
|
|
202
|
+
export const fieldHover = hoverUI;
|
|
203
|
+
export const backgroundInverseHover = inverseHoverUI;
|
|
204
|
+
export const linkPrimaryHover = hoverPrimaryText;
|
|
205
|
+
export const buttonDangerHover = hoverDanger;
|
|
206
|
+
export const buttonPrimaryHover = hoverPrimary;
|
|
207
|
+
export const buttonSecondaryHover = hoverSecondary;
|
|
208
|
+
export const buttonTertiaryHover = hoverTertiary;
|
|
209
|
+
|
|
210
|
+
export const backgroundSelected = selectedUI;
|
|
211
|
+
export const backgroundSelectedHover = hoverSelectedUI;
|
|
212
|
+
export const layerSelected = selectedUI;
|
|
213
|
+
export const layerSelectedHover = hoverSelectedUI;
|
|
214
|
+
export const layerSelectedInverse = ui05;
|
|
215
|
+
export const borderSubtleSelected = activeUI;
|
|
216
|
+
|
|
217
|
+
export const layerDisabled = disabled01;
|
|
218
|
+
export const fieldDisabled = disabled01;
|
|
219
|
+
export const borderDisabled = disabled01;
|
|
220
|
+
|
|
221
|
+
export const textDisabled = disabled02;
|
|
222
|
+
export const buttonDisabled = disabled02;
|
|
223
|
+
export const iconDisabled = disabled02;
|
|
224
|
+
|
|
225
|
+
export const textOnColorDisabled = disabled03;
|
|
226
|
+
export const iconOnColorDisabled = disabled03;
|
|
227
|
+
export const layerSelectedDisabled = disabled03;
|
|
228
|
+
|
|
229
|
+
export const skeletonBackground = skeleton01;
|
|
230
|
+
export const skeletonElement = skeleton02;
|
|
231
|
+
|
|
139
232
|
export {
|
|
140
233
|
// Type
|
|
141
234
|
caption01,
|
|
@@ -183,12 +276,14 @@ export {
|
|
|
183
276
|
spacing10,
|
|
184
277
|
spacing11,
|
|
185
278
|
spacing12,
|
|
279
|
+
spacing13,
|
|
186
280
|
// Fluid spacing
|
|
187
281
|
fluidSpacing01,
|
|
188
282
|
fluidSpacing02,
|
|
189
283
|
fluidSpacing03,
|
|
190
284
|
fluidSpacing04,
|
|
191
285
|
// Layout
|
|
286
|
+
// Deprecated -- Remove in v11
|
|
192
287
|
layout01,
|
|
193
288
|
layout02,
|
|
194
289
|
layout03,
|
package/src/g90.js
CHANGED
|
@@ -138,6 +138,99 @@ export const buttonSeparator = '#161616';
|
|
|
138
138
|
export const skeleton01 = '#353535';
|
|
139
139
|
export const skeleton02 = gray70;
|
|
140
140
|
|
|
141
|
+
// New color tokens
|
|
142
|
+
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
143
|
+
export const background = uiBackground;
|
|
144
|
+
export const layer = ui01;
|
|
145
|
+
export const layerAccent = ui03;
|
|
146
|
+
export const field = field01;
|
|
147
|
+
export const backgroundInverse = inverse02;
|
|
148
|
+
export const backgroundBrand = interactive01;
|
|
149
|
+
export const interactive = interactive04;
|
|
150
|
+
|
|
151
|
+
export const borderSubtle = ui03;
|
|
152
|
+
export const borderStrong = ui04;
|
|
153
|
+
export const borderInverse = ui05;
|
|
154
|
+
export const borderInteractive = interactive04;
|
|
155
|
+
|
|
156
|
+
export const textPrimary = text01;
|
|
157
|
+
export const textSecondary = text02;
|
|
158
|
+
export const textPlaceholder = text03;
|
|
159
|
+
export const textHelper = text05;
|
|
160
|
+
export const textOnColor = text04;
|
|
161
|
+
export const textInverse = inverse01;
|
|
162
|
+
|
|
163
|
+
export const linkPrimary = link01;
|
|
164
|
+
export const linkSecondary = link02;
|
|
165
|
+
export const linkVisited = visitedLink;
|
|
166
|
+
export const linkInverse = inverseLink;
|
|
167
|
+
|
|
168
|
+
export const iconPrimary = icon01;
|
|
169
|
+
export const iconSecondary = icon02;
|
|
170
|
+
export const iconOnColor = icon03;
|
|
171
|
+
export const iconInverse = inverse01;
|
|
172
|
+
|
|
173
|
+
export const supportError = support01;
|
|
174
|
+
export const supportSuccess = support02;
|
|
175
|
+
export const supportWarning = support03;
|
|
176
|
+
export const supportInfo = support04;
|
|
177
|
+
export const supportErrorInverse = inverseSupport01;
|
|
178
|
+
export const supportSuccessInverse = inverseSupport02;
|
|
179
|
+
export const supportWarningInverse = inverseSupport03;
|
|
180
|
+
export const supportInfoInverse = inverseSupport04;
|
|
181
|
+
|
|
182
|
+
export const overlay = overlay01;
|
|
183
|
+
export const toggleOff = ui04;
|
|
184
|
+
|
|
185
|
+
export const buttonPrimary = interactive01;
|
|
186
|
+
export const buttonSecondary = interactive02;
|
|
187
|
+
export const buttonTertiary = interactive03;
|
|
188
|
+
export const buttonDangerPrimary = danger01;
|
|
189
|
+
export const buttonDangerSecondary = danger02;
|
|
190
|
+
|
|
191
|
+
export const backgroundActive = activeUI;
|
|
192
|
+
export const layerActive = activeUI;
|
|
193
|
+
|
|
194
|
+
export const buttonDangerActive = activeDanger;
|
|
195
|
+
export const buttonPrimaryActive = activePrimary;
|
|
196
|
+
export const buttonSecondaryActive = activeSecondary;
|
|
197
|
+
export const buttonTertiaryActive = activeTertiary;
|
|
198
|
+
|
|
199
|
+
export const focusInset = inverse01;
|
|
200
|
+
export const focusInverse = inverseFocusUi;
|
|
201
|
+
|
|
202
|
+
export const backgroundHover = hoverUI;
|
|
203
|
+
export const layerHover = hoverUI;
|
|
204
|
+
export const fieldHover = hoverUI;
|
|
205
|
+
export const backgroundInverseHover = inverseHoverUI;
|
|
206
|
+
export const linkPrimaryHover = hoverPrimaryText;
|
|
207
|
+
export const buttonDangerHover = hoverDanger;
|
|
208
|
+
export const buttonPrimaryHover = hoverPrimary;
|
|
209
|
+
export const buttonSecondaryHover = hoverSecondary;
|
|
210
|
+
export const buttonTertiaryHover = hoverTertiary;
|
|
211
|
+
|
|
212
|
+
export const backgroundSelected = selectedUI;
|
|
213
|
+
export const backgroundSelectedHover = hoverSelectedUI;
|
|
214
|
+
export const layerSelected = selectedUI;
|
|
215
|
+
export const layerSelectedHover = hoverSelectedUI;
|
|
216
|
+
export const layerSelectedInverse = ui05;
|
|
217
|
+
export const borderSubtleSelected = activeUI;
|
|
218
|
+
|
|
219
|
+
export const layerDisabled = disabled01;
|
|
220
|
+
export const fieldDisabled = disabled01;
|
|
221
|
+
export const borderDisabled = disabled01;
|
|
222
|
+
|
|
223
|
+
export const textDisabled = disabled02;
|
|
224
|
+
export const buttonDisabled = disabled02;
|
|
225
|
+
export const iconDisabled = disabled02;
|
|
226
|
+
|
|
227
|
+
export const textOnColorDisabled = disabled03;
|
|
228
|
+
export const iconOnColorDisabled = disabled03;
|
|
229
|
+
export const layerSelectedDisabled = disabled03;
|
|
230
|
+
|
|
231
|
+
export const skeletonBackground = skeleton01;
|
|
232
|
+
export const skeletonElement = skeleton02;
|
|
233
|
+
|
|
141
234
|
export {
|
|
142
235
|
// Type
|
|
143
236
|
caption01,
|
|
@@ -185,12 +278,14 @@ export {
|
|
|
185
278
|
spacing10,
|
|
186
279
|
spacing11,
|
|
187
280
|
spacing12,
|
|
281
|
+
spacing13,
|
|
188
282
|
// Fluid spacing
|
|
189
283
|
fluidSpacing01,
|
|
190
284
|
fluidSpacing02,
|
|
191
285
|
fluidSpacing03,
|
|
192
286
|
fluidSpacing04,
|
|
193
287
|
// Layout
|
|
288
|
+
// Deprecated -- Remove in v11
|
|
194
289
|
layout01,
|
|
195
290
|
layout02,
|
|
196
291
|
layout03,
|