@carbon/themes 10.49.0-rc.0 → 10.51.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/es/index.js +4 -28
- package/lib/index.js +3 -29
- package/package.json +7 -7
- package/scss/generated/_mixins.scss +0 -38
- package/scss/generated/_themes.scss +0 -24
- package/scss/generated/_tokens.scss +0 -20
- package/scss/modules/generated/_themes.scss +18 -18
- package/scss/modules/generated/_tokens.scss +8 -8
- package/src/g10.js +0 -2
- package/src/g100.js +0 -2
- package/src/g80.js +1 -3
- package/src/g90.js +0 -2
- package/src/next/g10.js +13 -13
- package/src/next/g100.js +17 -16
- package/src/next/g90.js +16 -15
- package/src/next/tokens/v11TokenGroup.js +3 -9
- package/src/next/white.js +18 -17
- package/src/tokens.js +0 -4
- package/src/v9.js +0 -2
- package/src/white.js +0 -2
- package/umd/index.js +3 -29
|
@@ -36,7 +36,6 @@ $white: (
|
|
|
36
36
|
field-01: #f4f4f4,
|
|
37
37
|
field-02: #ffffff,
|
|
38
38
|
field-03: #f4f4f4,
|
|
39
|
-
field-disabled: #f4f4f4,
|
|
40
39
|
field-hover-01: #e8e8e8,
|
|
41
40
|
field-hover-02: #e8e8e8,
|
|
42
41
|
field-hover-03: #e8e8e8,
|
|
@@ -44,7 +43,7 @@ $white: (
|
|
|
44
43
|
focus-inset: #ffffff,
|
|
45
44
|
focus-inverse: #ffffff,
|
|
46
45
|
highlight: #d0e2ff,
|
|
47
|
-
icon-disabled:
|
|
46
|
+
icon-disabled: rgba(22, 22, 22, 0.25),
|
|
48
47
|
icon-inverse: #ffffff,
|
|
49
48
|
icon-on-color: #ffffff,
|
|
50
49
|
icon-on-color-disabled: #8d8d8d,
|
|
@@ -66,7 +65,6 @@ $white: (
|
|
|
66
65
|
layer-active-01: #c6c6c6,
|
|
67
66
|
layer-active-02: #c6c6c6,
|
|
68
67
|
layer-active-03: #c6c6c6,
|
|
69
|
-
layer-disabled: #f4f4f4,
|
|
70
68
|
layer-hover-01: #e8e8e8,
|
|
71
69
|
layer-hover-02: #e8e8e8,
|
|
72
70
|
layer-hover-03: #e8e8e8,
|
|
@@ -79,6 +77,8 @@ $white: (
|
|
|
79
77
|
layer-selected-hover-03: #d1d1d1,
|
|
80
78
|
layer-selected-inverse: #161616,
|
|
81
79
|
link-inverse: #78a9ff,
|
|
80
|
+
link-inverse-active: #f4f4f4,
|
|
81
|
+
link-inverse-hover: #a6c8ff,
|
|
82
82
|
link-primary: #0f62fe,
|
|
83
83
|
link-primary-hover: #0043ce,
|
|
84
84
|
link-secondary: #0043ce,
|
|
@@ -141,7 +141,6 @@ $g10: (
|
|
|
141
141
|
field-01: #ffffff,
|
|
142
142
|
field-02: #f4f4f4,
|
|
143
143
|
field-03: #ffffff,
|
|
144
|
-
field-disabled: #ffffff,
|
|
145
144
|
field-hover-01: #e8e8e8,
|
|
146
145
|
field-hover-02: #e8e8e8,
|
|
147
146
|
field-hover-03: #e8e8e8,
|
|
@@ -149,7 +148,7 @@ $g10: (
|
|
|
149
148
|
focus-inset: #ffffff,
|
|
150
149
|
focus-inverse: #ffffff,
|
|
151
150
|
highlight: #d0e2ff,
|
|
152
|
-
icon-disabled:
|
|
151
|
+
icon-disabled: rgba(22, 22, 22, 0.25),
|
|
153
152
|
icon-inverse: #ffffff,
|
|
154
153
|
icon-on-color: #ffffff,
|
|
155
154
|
icon-on-color-disabled: #8d8d8d,
|
|
@@ -171,7 +170,6 @@ $g10: (
|
|
|
171
170
|
layer-active-01: #c6c6c6,
|
|
172
171
|
layer-active-02: #c6c6c6,
|
|
173
172
|
layer-active-03: #c6c6c6,
|
|
174
|
-
layer-disabled: #ffffff,
|
|
175
173
|
layer-hover-01: #e8e8e8,
|
|
176
174
|
layer-hover-02: #e8e8e8,
|
|
177
175
|
layer-hover-03: #e8e8e8,
|
|
@@ -184,6 +182,8 @@ $g10: (
|
|
|
184
182
|
layer-selected-hover-03: #d1d1d1,
|
|
185
183
|
layer-selected-inverse: #161616,
|
|
186
184
|
link-inverse: #78a9ff,
|
|
185
|
+
link-inverse-active: #f4f4f4,
|
|
186
|
+
link-inverse-hover: #a6c8ff,
|
|
187
187
|
link-primary: #0f62fe,
|
|
188
188
|
link-primary-hover: #0043ce,
|
|
189
189
|
link-secondary: #0043ce,
|
|
@@ -246,7 +246,6 @@ $g90: (
|
|
|
246
246
|
field-01: #393939,
|
|
247
247
|
field-02: #525252,
|
|
248
248
|
field-03: #6f6f6f,
|
|
249
|
-
field-disabled: #393939,
|
|
250
249
|
field-hover-01: #474747,
|
|
251
250
|
field-hover-02: #636363,
|
|
252
251
|
field-hover-03: #5e5e5e,
|
|
@@ -254,7 +253,7 @@ $g90: (
|
|
|
254
253
|
focus-inset: #161616,
|
|
255
254
|
focus-inverse: #0f62fe,
|
|
256
255
|
highlight: #0043ce,
|
|
257
|
-
icon-disabled:
|
|
256
|
+
icon-disabled: rgba(244, 244, 244, 0.25),
|
|
258
257
|
icon-inverse: #161616,
|
|
259
258
|
icon-on-color: #ffffff,
|
|
260
259
|
icon-on-color-disabled: rgba(255, 255, 255, 0.25),
|
|
@@ -271,12 +270,11 @@ $g90: (
|
|
|
271
270
|
layer-accent-active-02: #393939,
|
|
272
271
|
layer-accent-active-03: #525252,
|
|
273
272
|
layer-accent-hover-01: #636363,
|
|
274
|
-
layer-accent-hover-02: #
|
|
273
|
+
layer-accent-hover-02: #5e5e5e,
|
|
275
274
|
layer-accent-hover-03: #7a7a7a,
|
|
276
275
|
layer-active-01: #6f6f6f,
|
|
277
276
|
layer-active-02: #8d8d8d,
|
|
278
277
|
layer-active-03: #393939,
|
|
279
|
-
layer-disabled: #393939,
|
|
280
278
|
layer-hover-01: #474747,
|
|
281
279
|
layer-hover-02: #636363,
|
|
282
280
|
layer-hover-03: #5e5e5e,
|
|
@@ -289,6 +287,8 @@ $g90: (
|
|
|
289
287
|
layer-selected-hover-03: #7a7a7a,
|
|
290
288
|
layer-selected-inverse: #f4f4f4,
|
|
291
289
|
link-inverse: #0f62fe,
|
|
290
|
+
link-inverse-active: #161616,
|
|
291
|
+
link-inverse-hover: #0043ce,
|
|
292
292
|
link-primary: #78a9ff,
|
|
293
293
|
link-primary-hover: #a6c8ff,
|
|
294
294
|
link-secondary: #a6c8ff,
|
|
@@ -303,7 +303,7 @@ $g90: (
|
|
|
303
303
|
support-error: #ff8389,
|
|
304
304
|
support-error-inverse: #da1e28,
|
|
305
305
|
support-info: #4589ff,
|
|
306
|
-
support-info-inverse: #
|
|
306
|
+
support-info-inverse: #0043ce,
|
|
307
307
|
support-success: #42be65,
|
|
308
308
|
support-success-inverse: #24a148,
|
|
309
309
|
support-warning: #f1c21b,
|
|
@@ -351,15 +351,14 @@ $g100: (
|
|
|
351
351
|
field-01: #262626,
|
|
352
352
|
field-02: #393939,
|
|
353
353
|
field-03: #525252,
|
|
354
|
-
field-disabled: #393939,
|
|
355
354
|
field-hover-01: #333333,
|
|
356
355
|
field-hover-02: #474747,
|
|
357
356
|
field-hover-03: #636363,
|
|
358
357
|
focus: #ffffff,
|
|
359
358
|
focus-inset: #161616,
|
|
360
359
|
focus-inverse: #0f62fe,
|
|
361
|
-
highlight: #
|
|
362
|
-
icon-disabled:
|
|
360
|
+
highlight: #002d9c,
|
|
361
|
+
icon-disabled: rgba(244, 244, 244, 0.25),
|
|
363
362
|
icon-inverse: #161616,
|
|
364
363
|
icon-on-color: #ffffff,
|
|
365
364
|
icon-on-color-disabled: rgba(255, 255, 255, 0.25),
|
|
@@ -381,7 +380,6 @@ $g100: (
|
|
|
381
380
|
layer-active-01: #525252,
|
|
382
381
|
layer-active-02: #6f6f6f,
|
|
383
382
|
layer-active-03: #8d8d8d,
|
|
384
|
-
layer-disabled: #262626,
|
|
385
383
|
layer-hover-01: #333333,
|
|
386
384
|
layer-hover-02: #474747,
|
|
387
385
|
layer-hover-03: #636363,
|
|
@@ -394,6 +392,8 @@ $g100: (
|
|
|
394
392
|
layer-selected-hover-03: #5e5e5e,
|
|
395
393
|
layer-selected-inverse: #f4f4f4,
|
|
396
394
|
link-inverse: #0f62fe,
|
|
395
|
+
link-inverse-active: #161616,
|
|
396
|
+
link-inverse-hover: #0043ce,
|
|
397
397
|
link-primary: #78a9ff,
|
|
398
398
|
link-primary-hover: #a6c8ff,
|
|
399
399
|
link-secondary: #a6c8ff,
|
|
@@ -408,13 +408,13 @@ $g100: (
|
|
|
408
408
|
support-error: #fa4d56,
|
|
409
409
|
support-error-inverse: #da1e28,
|
|
410
410
|
support-info: #4589ff,
|
|
411
|
-
support-info-inverse: #
|
|
411
|
+
support-info-inverse: #0043ce,
|
|
412
412
|
support-success: #42be65,
|
|
413
413
|
support-success-inverse: #24a148,
|
|
414
414
|
support-warning: #f1c21b,
|
|
415
415
|
support-warning-inverse: #f1c21b,
|
|
416
416
|
text-disabled: rgba(244, 244, 244, 0.25),
|
|
417
|
-
text-error: #
|
|
417
|
+
text-error: #ff8389,
|
|
418
418
|
text-helper: #a8a8a8,
|
|
419
419
|
text-inverse: #161616,
|
|
420
420
|
text-on-color: #ffffff,
|
|
@@ -422,7 +422,7 @@ $g100: (
|
|
|
422
422
|
text-placeholder: rgba(244, 244, 244, 0.4),
|
|
423
423
|
text-primary: #f4f4f4,
|
|
424
424
|
text-secondary: #c6c6c6,
|
|
425
|
-
toggle-off: #
|
|
425
|
+
toggle-off: #6f6f6f,
|
|
426
426
|
) !default;
|
|
427
427
|
$g100: utilities.merge(
|
|
428
428
|
$g100,
|
|
@@ -88,9 +88,6 @@ $layer-selected-03: _get('layer-selected-03') !default;
|
|
|
88
88
|
/// The CSS Custom Property for the `layer-selected-hover-03` token
|
|
89
89
|
$layer-selected-hover-03: _get('layer-selected-hover-03') !default;
|
|
90
90
|
|
|
91
|
-
/// The CSS Custom Property for the `layer-disabled` token
|
|
92
|
-
$layer-disabled: _get('layer-disabled') !default;
|
|
93
|
-
|
|
94
91
|
/// The CSS Custom Property for the `layer-selected-inverse` token
|
|
95
92
|
$layer-selected-inverse: _get('layer-selected-inverse') !default;
|
|
96
93
|
|
|
@@ -142,9 +139,6 @@ $field-03: _get('field-03') !default;
|
|
|
142
139
|
/// The CSS Custom Property for the `field-hover-03` token
|
|
143
140
|
$field-hover-03: _get('field-hover-03') !default;
|
|
144
141
|
|
|
145
|
-
/// The CSS Custom Property for the `field-disabled` token
|
|
146
|
-
$field-disabled: _get('field-disabled') !default;
|
|
147
|
-
|
|
148
142
|
/// The CSS Custom Property for the `interactive` token
|
|
149
143
|
$interactive: _get('interactive') !default;
|
|
150
144
|
|
|
@@ -223,11 +217,17 @@ $link-primary-hover: _get('link-primary-hover') !default;
|
|
|
223
217
|
/// The CSS Custom Property for the `link-secondary` token
|
|
224
218
|
$link-secondary: _get('link-secondary') !default;
|
|
225
219
|
|
|
220
|
+
/// The CSS Custom Property for the `link-visited` token
|
|
221
|
+
$link-visited: _get('link-visited') !default;
|
|
222
|
+
|
|
226
223
|
/// The CSS Custom Property for the `link-inverse` token
|
|
227
224
|
$link-inverse: _get('link-inverse') !default;
|
|
228
225
|
|
|
229
|
-
/// The CSS Custom Property for the `link-
|
|
230
|
-
$link-
|
|
226
|
+
/// The CSS Custom Property for the `link-inverse-active` token
|
|
227
|
+
$link-inverse-active: _get('link-inverse-active') !default;
|
|
228
|
+
|
|
229
|
+
/// The CSS Custom Property for the `link-inverse-hover` token
|
|
230
|
+
$link-inverse-hover: _get('link-inverse-hover') !default;
|
|
231
231
|
|
|
232
232
|
/// The CSS Custom Property for the `icon-primary` token
|
|
233
233
|
$icon-primary: _get('icon-primary') !default;
|
package/src/g10.js
CHANGED
|
@@ -219,8 +219,6 @@ export const layerSelectedHover = hoverSelectedUI;
|
|
|
219
219
|
export const layerSelectedInverse = ui05;
|
|
220
220
|
export const borderSubtleSelected = activeUI;
|
|
221
221
|
|
|
222
|
-
export const layerDisabled = disabled01;
|
|
223
|
-
export const fieldDisabled = disabled01;
|
|
224
222
|
export const borderDisabled = disabled01;
|
|
225
223
|
|
|
226
224
|
export const textDisabled = disabled02;
|
package/src/g100.js
CHANGED
|
@@ -218,8 +218,6 @@ export const layerSelectedHover = hoverSelectedUI;
|
|
|
218
218
|
export const layerSelectedInverse = ui05;
|
|
219
219
|
export const borderSubtleSelected = activeUI;
|
|
220
220
|
|
|
221
|
-
export const layerDisabled = disabled01;
|
|
222
|
-
export const fieldDisabled = disabled01;
|
|
223
221
|
export const borderDisabled = disabled01;
|
|
224
222
|
|
|
225
223
|
export const textDisabled = disabled02;
|
package/src/g80.js
CHANGED
|
@@ -130,8 +130,6 @@ export const layerSelectedHover = adjustLightness(layerSelected, -6);
|
|
|
130
130
|
export const layerSelectedInverse = gray10;
|
|
131
131
|
export const borderSubtleSelected = gray50;
|
|
132
132
|
|
|
133
|
-
export const layerDisabled = gray70;
|
|
134
|
-
export const fieldDisabled = gray70;
|
|
135
133
|
export const borderDisabled = gray70;
|
|
136
134
|
|
|
137
135
|
export const textDisabled = gray50;
|
|
@@ -228,7 +226,7 @@ export const hoverRow = layerHover;
|
|
|
228
226
|
|
|
229
227
|
export const visitedLink = linkVisited;
|
|
230
228
|
|
|
231
|
-
export const disabled01 =
|
|
229
|
+
export const disabled01 = gray70;
|
|
232
230
|
export const disabled02 = textDisabled;
|
|
233
231
|
export const disabled03 = textOnColorDisabled;
|
|
234
232
|
|
package/src/g90.js
CHANGED
|
@@ -220,8 +220,6 @@ export const layerSelectedHover = hoverSelectedUI;
|
|
|
220
220
|
export const layerSelectedInverse = ui05;
|
|
221
221
|
export const borderSubtleSelected = activeUI;
|
|
222
222
|
|
|
223
|
-
export const layerDisabled = disabled01;
|
|
224
|
-
export const fieldDisabled = disabled01;
|
|
225
223
|
export const borderDisabled = disabled01;
|
|
226
224
|
|
|
227
225
|
export const textDisabled = disabled02;
|
package/src/next/g10.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import {
|
|
9
9
|
// Blue
|
|
10
10
|
blue20,
|
|
11
|
+
blue30,
|
|
11
12
|
blue40,
|
|
12
13
|
blue60,
|
|
13
14
|
blue70,
|
|
@@ -23,6 +24,7 @@ import {
|
|
|
23
24
|
gray60,
|
|
24
25
|
gray70,
|
|
25
26
|
gray80,
|
|
27
|
+
gray80Hover,
|
|
26
28
|
gray100,
|
|
27
29
|
|
|
28
30
|
// Support
|
|
@@ -39,17 +41,17 @@ import {
|
|
|
39
41
|
white,
|
|
40
42
|
whiteHover,
|
|
41
43
|
} from '@carbon/colors';
|
|
42
|
-
import {
|
|
44
|
+
import { adjustAlpha } from '../tools';
|
|
43
45
|
|
|
44
46
|
// Background
|
|
45
47
|
export const background = gray10;
|
|
46
48
|
export const backgroundInverse = gray80;
|
|
47
49
|
export const backgroundBrand = blue60;
|
|
48
50
|
export const backgroundActive = gray30;
|
|
49
|
-
export const backgroundHover =
|
|
50
|
-
export const backgroundInverseHover =
|
|
51
|
+
export const backgroundHover = gray10Hover;
|
|
52
|
+
export const backgroundInverseHover = gray80Hover;
|
|
51
53
|
export const backgroundSelected = gray20;
|
|
52
|
-
export const backgroundSelectedHover =
|
|
54
|
+
export const backgroundSelectedHover = gray20Hover;
|
|
53
55
|
|
|
54
56
|
// Layer
|
|
55
57
|
// layer-01
|
|
@@ -74,24 +76,23 @@ export const layerSelected03 = gray20;
|
|
|
74
76
|
export const layerSelectedHover03 = gray20Hover;
|
|
75
77
|
|
|
76
78
|
// layer
|
|
77
|
-
export const layerDisabled = white;
|
|
78
79
|
export const layerSelectedInverse = gray100;
|
|
79
80
|
export const layerSelectedDisabled = gray50;
|
|
80
81
|
|
|
81
82
|
// layer-accent-01
|
|
82
83
|
export const layerAccent01 = gray20;
|
|
83
84
|
export const layerAccentActive01 = gray40;
|
|
84
|
-
export const layerAccentHover01 =
|
|
85
|
+
export const layerAccentHover01 = gray20Hover;
|
|
85
86
|
|
|
86
87
|
// layer-accent-02
|
|
87
88
|
export const layerAccent02 = gray20;
|
|
88
89
|
export const layerAccentActive02 = gray40;
|
|
89
|
-
export const layerAccentHover02 =
|
|
90
|
+
export const layerAccentHover02 = gray20Hover;
|
|
90
91
|
|
|
91
92
|
// layer-accent-03
|
|
92
93
|
export const layerAccent03 = gray20;
|
|
93
94
|
export const layerAccentActive03 = gray40;
|
|
94
|
-
export const layerAccentHover03 =
|
|
95
|
+
export const layerAccentHover03 = gray20Hover;
|
|
95
96
|
|
|
96
97
|
// Field
|
|
97
98
|
// field-01
|
|
@@ -106,9 +107,6 @@ export const fieldHover02 = gray10Hover;
|
|
|
106
107
|
export const field03 = white;
|
|
107
108
|
export const fieldHover03 = whiteHover;
|
|
108
109
|
|
|
109
|
-
// field
|
|
110
|
-
export const fieldDisabled = white;
|
|
111
|
-
|
|
112
110
|
// Border
|
|
113
111
|
// border-subtle-00
|
|
114
112
|
export const borderSubtle00 = gray20;
|
|
@@ -156,6 +154,8 @@ export const linkPrimaryHover = blue70;
|
|
|
156
154
|
export const linkSecondary = blue70;
|
|
157
155
|
export const linkInverse = blue40;
|
|
158
156
|
export const linkVisited = purple60;
|
|
157
|
+
export const linkInverseActive = gray10;
|
|
158
|
+
export const linkInverseHover = blue30;
|
|
159
159
|
|
|
160
160
|
// Icon
|
|
161
161
|
export const iconPrimary = gray100;
|
|
@@ -163,7 +163,7 @@ export const iconSecondary = gray70;
|
|
|
163
163
|
export const iconInverse = white;
|
|
164
164
|
export const iconOnColor = white;
|
|
165
165
|
export const iconOnColorDisabled = gray50;
|
|
166
|
-
export const iconDisabled =
|
|
166
|
+
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
|
|
167
167
|
|
|
168
168
|
// Support
|
|
169
169
|
export const supportError = red60;
|
|
@@ -184,7 +184,7 @@ export const focusInset = white;
|
|
|
184
184
|
export const focusInverse = white;
|
|
185
185
|
|
|
186
186
|
// Skeleton
|
|
187
|
-
export const skeletonBackground =
|
|
187
|
+
export const skeletonBackground = gray10Hover;
|
|
188
188
|
export const skeletonElement = gray30;
|
|
189
189
|
|
|
190
190
|
// Misc
|
package/src/next/g100.js
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
9
|
// Blue
|
|
10
|
-
blue20,
|
|
11
10
|
blue40,
|
|
12
11
|
blue60,
|
|
12
|
+
blue70,
|
|
13
|
+
blue80,
|
|
13
14
|
|
|
14
15
|
// Gray
|
|
15
16
|
gray10,
|
|
@@ -33,7 +34,7 @@ import {
|
|
|
33
34
|
green50,
|
|
34
35
|
yellow30,
|
|
35
36
|
orange40,
|
|
36
|
-
|
|
37
|
+
red40,
|
|
37
38
|
red50,
|
|
38
39
|
red60,
|
|
39
40
|
purple40,
|
|
@@ -45,6 +46,8 @@ import {
|
|
|
45
46
|
|
|
46
47
|
// Tools
|
|
47
48
|
rgba,
|
|
49
|
+
gray100Hover,
|
|
50
|
+
gray10Hover,
|
|
48
51
|
} from '@carbon/colors';
|
|
49
52
|
import { adjustLightness, adjustAlpha } from '../tools';
|
|
50
53
|
|
|
@@ -53,16 +56,16 @@ export const background = gray100;
|
|
|
53
56
|
export const backgroundInverse = gray10;
|
|
54
57
|
export const backgroundBrand = blue60;
|
|
55
58
|
export const backgroundActive = gray80;
|
|
56
|
-
export const backgroundHover =
|
|
57
|
-
export const backgroundInverseHover =
|
|
59
|
+
export const backgroundHover = gray100Hover;
|
|
60
|
+
export const backgroundInverseHover = gray10Hover;
|
|
58
61
|
export const backgroundSelected = gray90;
|
|
59
|
-
export const backgroundSelectedHover =
|
|
62
|
+
export const backgroundSelectedHover = gray90Hover;
|
|
60
63
|
|
|
61
64
|
// Layer
|
|
62
65
|
// layer-01
|
|
63
66
|
export const layer01 = gray90;
|
|
64
67
|
export const layerActive01 = gray70;
|
|
65
|
-
export const layerHover01 =
|
|
68
|
+
export const layerHover01 = gray90Hover;
|
|
66
69
|
export const layerSelected01 = gray80;
|
|
67
70
|
export const layerSelectedHover01 = gray80Hover;
|
|
68
71
|
|
|
@@ -81,14 +84,13 @@ export const layerSelected03 = gray60;
|
|
|
81
84
|
export const layerSelectedHover03 = gray60Hover;
|
|
82
85
|
|
|
83
86
|
// layer
|
|
84
|
-
export const layerDisabled = gray90;
|
|
85
87
|
export const layerSelectedInverse = gray10;
|
|
86
88
|
export const layerSelectedDisabled = gray40;
|
|
87
89
|
|
|
88
90
|
// layer-accent-01
|
|
89
91
|
export const layerAccent01 = gray80;
|
|
90
92
|
export const layerAccentActive01 = gray60;
|
|
91
|
-
export const layerAccentHover01 =
|
|
93
|
+
export const layerAccentHover01 = gray80Hover;
|
|
92
94
|
|
|
93
95
|
// layer-accent-02
|
|
94
96
|
export const layerAccent02 = gray70;
|
|
@@ -113,9 +115,6 @@ export const fieldHover02 = gray80Hover;
|
|
|
113
115
|
export const field03 = gray70;
|
|
114
116
|
export const fieldHover03 = gray70Hover;
|
|
115
117
|
|
|
116
|
-
// field
|
|
117
|
-
export const fieldDisabled = gray80;
|
|
118
|
-
|
|
119
118
|
// Border
|
|
120
119
|
// border-subtle-00
|
|
121
120
|
export const borderSubtle00 = gray80;
|
|
@@ -151,7 +150,7 @@ export const textPrimary = gray10;
|
|
|
151
150
|
export const textSecondary = gray30;
|
|
152
151
|
export const textPlaceholder = adjustAlpha(textPrimary, 0.4);
|
|
153
152
|
export const textHelper = gray40;
|
|
154
|
-
export const textError =
|
|
153
|
+
export const textError = red40;
|
|
155
154
|
export const textInverse = gray100;
|
|
156
155
|
export const textOnColor = white;
|
|
157
156
|
export const textOnColorDisabled = adjustAlpha(textOnColor, 0.25);
|
|
@@ -163,6 +162,8 @@ export const linkPrimaryHover = blue30;
|
|
|
163
162
|
export const linkSecondary = blue30;
|
|
164
163
|
export const linkInverse = blue60;
|
|
165
164
|
export const linkVisited = purple40;
|
|
165
|
+
export const linkInverseActive = gray100;
|
|
166
|
+
export const linkInverseHover = blue70;
|
|
166
167
|
|
|
167
168
|
// Icon
|
|
168
169
|
export const iconPrimary = gray10;
|
|
@@ -170,7 +171,7 @@ export const iconSecondary = gray30;
|
|
|
170
171
|
export const iconInverse = gray100;
|
|
171
172
|
export const iconOnColor = white;
|
|
172
173
|
export const iconOnColorDisabled = adjustAlpha(iconOnColor, 0.25);
|
|
173
|
-
export const iconDisabled =
|
|
174
|
+
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
|
|
174
175
|
|
|
175
176
|
// Support
|
|
176
177
|
export const supportError = red50;
|
|
@@ -180,7 +181,7 @@ export const supportInfo = blue50;
|
|
|
180
181
|
export const supportErrorInverse = red60;
|
|
181
182
|
export const supportSuccessInverse = green50;
|
|
182
183
|
export const supportWarningInverse = yellow30;
|
|
183
|
-
export const supportInfoInverse =
|
|
184
|
+
export const supportInfoInverse = blue70;
|
|
184
185
|
export const supportCautionMinor = yellow30;
|
|
185
186
|
export const supportCautionMajor = orange40;
|
|
186
187
|
export const supportCautionUndefined = purple50;
|
|
@@ -196,9 +197,9 @@ export const skeletonElement = gray80;
|
|
|
196
197
|
|
|
197
198
|
// Misc
|
|
198
199
|
export const interactive = blue50;
|
|
199
|
-
export const highlight =
|
|
200
|
+
export const highlight = blue80;
|
|
200
201
|
export const overlay = rgba(black, 0.65);
|
|
201
|
-
export const toggleOff =
|
|
202
|
+
export const toggleOff = gray60;
|
|
202
203
|
export const shadow = rgba(black, 0.8);
|
|
203
204
|
|
|
204
205
|
export {
|
package/src/next/g90.js
CHANGED
|
@@ -44,24 +44,27 @@ import {
|
|
|
44
44
|
|
|
45
45
|
// Tools
|
|
46
46
|
rgba,
|
|
47
|
+
gray90Hover,
|
|
48
|
+
gray10Hover,
|
|
49
|
+
gray80Hover,
|
|
47
50
|
} from '@carbon/colors';
|
|
48
|
-
import {
|
|
51
|
+
import { adjustAlpha } from '../tools';
|
|
49
52
|
|
|
50
53
|
// Background
|
|
51
54
|
export const background = gray90;
|
|
52
55
|
export const backgroundInverse = gray10;
|
|
53
56
|
export const backgroundBrand = blue60;
|
|
54
57
|
export const backgroundActive = gray80;
|
|
55
|
-
export const backgroundHover =
|
|
56
|
-
export const backgroundInverseHover =
|
|
58
|
+
export const backgroundHover = gray90Hover;
|
|
59
|
+
export const backgroundInverseHover = gray10Hover;
|
|
57
60
|
export const backgroundSelected = gray80;
|
|
58
|
-
export const backgroundSelectedHover =
|
|
61
|
+
export const backgroundSelectedHover = gray80Hover;
|
|
59
62
|
|
|
60
63
|
// Layer
|
|
61
64
|
// layer-01
|
|
62
65
|
export const layer01 = gray80;
|
|
63
66
|
export const layerActive01 = gray60;
|
|
64
|
-
export const layerHover01 =
|
|
67
|
+
export const layerHover01 = gray80Hover;
|
|
65
68
|
export const layerSelected01 = gray70;
|
|
66
69
|
export const layerSelectedHover01 = gray70Hover;
|
|
67
70
|
|
|
@@ -80,19 +83,18 @@ export const layerSelected03 = gray50;
|
|
|
80
83
|
export const layerSelectedHover03 = gray50Hover;
|
|
81
84
|
|
|
82
85
|
// layer
|
|
83
|
-
export const layerDisabled = gray80;
|
|
84
86
|
export const layerSelectedInverse = gray10;
|
|
85
87
|
export const layerSelectedDisabled = gray40;
|
|
86
88
|
|
|
87
89
|
// layer-accent-01
|
|
88
90
|
export const layerAccent01 = gray70;
|
|
89
91
|
export const layerAccentActive01 = gray50;
|
|
90
|
-
export const layerAccentHover01 =
|
|
92
|
+
export const layerAccentHover01 = gray70Hover;
|
|
91
93
|
|
|
92
94
|
// layer-accent-02
|
|
93
95
|
export const layerAccent02 = gray60;
|
|
94
96
|
export const layerAccentActive02 = gray80;
|
|
95
|
-
export const layerAccentHover02 =
|
|
97
|
+
export const layerAccentHover02 = gray60Hover;
|
|
96
98
|
|
|
97
99
|
// layer-accent-03
|
|
98
100
|
export const layerAccent03 = gray50;
|
|
@@ -102,7 +104,7 @@ export const layerAccentHover03 = gray50Hover;
|
|
|
102
104
|
// Field
|
|
103
105
|
// field-01
|
|
104
106
|
export const field01 = gray80;
|
|
105
|
-
export const fieldHover01 =
|
|
107
|
+
export const fieldHover01 = gray80Hover;
|
|
106
108
|
|
|
107
109
|
// field-02
|
|
108
110
|
export const field02 = gray70;
|
|
@@ -112,9 +114,6 @@ export const fieldHover02 = gray70Hover;
|
|
|
112
114
|
export const field03 = gray60;
|
|
113
115
|
export const fieldHover03 = gray60Hover;
|
|
114
116
|
|
|
115
|
-
// field
|
|
116
|
-
export const fieldDisabled = gray80;
|
|
117
|
-
|
|
118
117
|
// Border
|
|
119
118
|
// border-subtle-00
|
|
120
119
|
export const borderSubtle00 = gray70;
|
|
@@ -162,6 +161,8 @@ export const linkPrimaryHover = blue30;
|
|
|
162
161
|
export const linkSecondary = blue30;
|
|
163
162
|
export const linkInverse = blue60;
|
|
164
163
|
export const linkVisited = purple40;
|
|
164
|
+
export const linkInverseActive = gray100;
|
|
165
|
+
export const linkInverseHover = blue70;
|
|
165
166
|
|
|
166
167
|
// Icon
|
|
167
168
|
export const iconPrimary = gray10;
|
|
@@ -169,7 +170,7 @@ export const iconSecondary = gray30;
|
|
|
169
170
|
export const iconInverse = gray100;
|
|
170
171
|
export const iconOnColor = white;
|
|
171
172
|
export const iconOnColorDisabled = adjustAlpha(iconOnColor, 0.25);
|
|
172
|
-
export const iconDisabled =
|
|
173
|
+
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
|
|
173
174
|
|
|
174
175
|
// Support
|
|
175
176
|
export const supportError = red40;
|
|
@@ -179,7 +180,7 @@ export const supportInfo = blue50;
|
|
|
179
180
|
export const supportErrorInverse = red60;
|
|
180
181
|
export const supportSuccessInverse = green50;
|
|
181
182
|
export const supportWarningInverse = yellow30;
|
|
182
|
-
export const supportInfoInverse =
|
|
183
|
+
export const supportInfoInverse = blue70;
|
|
183
184
|
export const supportCautionMinor = yellow30;
|
|
184
185
|
export const supportCautionMajor = orange40;
|
|
185
186
|
export const supportCautionUndefined = purple50;
|
|
@@ -190,7 +191,7 @@ export const focusInset = gray100;
|
|
|
190
191
|
export const focusInverse = blue60;
|
|
191
192
|
|
|
192
193
|
// Skeleton
|
|
193
|
-
export const skeletonBackground =
|
|
194
|
+
export const skeletonBackground = gray90Hover;
|
|
194
195
|
export const skeletonElement = gray70;
|
|
195
196
|
|
|
196
197
|
// Misc
|
|
@@ -98,10 +98,6 @@ export const layer = TokenGroup.create({
|
|
|
98
98
|
state: 'hover',
|
|
99
99
|
name: 'layer-selected-hover-03',
|
|
100
100
|
},
|
|
101
|
-
{
|
|
102
|
-
state: 'disabled',
|
|
103
|
-
name: 'layer-disabled',
|
|
104
|
-
},
|
|
105
101
|
{
|
|
106
102
|
name: 'layer-selected-inverse',
|
|
107
103
|
},
|
|
@@ -170,10 +166,6 @@ export const field = TokenGroup.create({
|
|
|
170
166
|
state: 'hover',
|
|
171
167
|
name: 'field-hover-03',
|
|
172
168
|
},
|
|
173
|
-
{
|
|
174
|
-
state: 'disabled',
|
|
175
|
-
name: 'field-disabled',
|
|
176
|
-
},
|
|
177
169
|
],
|
|
178
170
|
});
|
|
179
171
|
|
|
@@ -261,11 +253,13 @@ export const link = TokenGroup.create({
|
|
|
261
253
|
name: 'link-primary-hover',
|
|
262
254
|
},
|
|
263
255
|
'link-secondary',
|
|
264
|
-
'link-inverse',
|
|
265
256
|
{
|
|
266
257
|
state: 'visited',
|
|
267
258
|
name: 'link-visited',
|
|
268
259
|
},
|
|
260
|
+
'link-inverse',
|
|
261
|
+
'link-inverse-active',
|
|
262
|
+
'link-inverse-hover',
|
|
269
263
|
],
|
|
270
264
|
});
|
|
271
265
|
|