@carbon/themes 10.22.1 → 10.24.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/docs/sass.md +130 -83
- package/es/index.js +23 -13
- package/lib/index.js +24 -13
- package/package.json +13 -9
- package/scss/generated/_mixins.scss +51 -33
- package/scss/generated/_themes.scss +26 -16
- package/scss/generated/_tokens.scss +31 -21
- package/src/g10.js +2 -2
- package/src/g100.js +2 -2
- package/src/g90.js +2 -2
- package/src/tokens.js +5 -5
- package/src/v9.js +2 -2
- package/src/white.js +2 -2
- package/umd/index.js +24 -13
package/lib/index.js
CHANGED
|
@@ -128,7 +128,9 @@ var activeSecondary = colors.gray60;
|
|
|
128
128
|
var hoverTertiary = '#0353e9';
|
|
129
129
|
var activeTertiary = colors.blue80;
|
|
130
130
|
var hoverUI = '#e5e5e5';
|
|
131
|
+
var hoverLightUI = '#e5e5e5';
|
|
131
132
|
var activeUI = colors.gray30;
|
|
133
|
+
var activeLightUI = colors.gray30;
|
|
132
134
|
var selectedUI = colors.gray20;
|
|
133
135
|
var selectedLightUI = colors.gray20;
|
|
134
136
|
var inverseHoverUI = '#4c4c4c';
|
|
@@ -142,7 +144,6 @@ var disabled02 = colors.gray30;
|
|
|
142
144
|
var disabled03 = colors.gray50;
|
|
143
145
|
var highlight = colors.blue20;
|
|
144
146
|
var decorative01 = colors.gray20;
|
|
145
|
-
var hoverLightUI = '#e5e5e5';
|
|
146
147
|
var buttonSeparator = '#e0e0e0';
|
|
147
148
|
var skeleton01 = '#e5e5e5';
|
|
148
149
|
var skeleton02 = colors.gray30; // Type
|
|
@@ -201,7 +202,9 @@ var white = /*#__PURE__*/Object.freeze({
|
|
|
201
202
|
hoverTertiary: hoverTertiary,
|
|
202
203
|
activeTertiary: activeTertiary,
|
|
203
204
|
hoverUI: hoverUI,
|
|
205
|
+
hoverLightUI: hoverLightUI,
|
|
204
206
|
activeUI: activeUI,
|
|
207
|
+
activeLightUI: activeLightUI,
|
|
205
208
|
selectedUI: selectedUI,
|
|
206
209
|
selectedLightUI: selectedLightUI,
|
|
207
210
|
inverseHoverUI: inverseHoverUI,
|
|
@@ -215,7 +218,6 @@ var white = /*#__PURE__*/Object.freeze({
|
|
|
215
218
|
disabled03: disabled03,
|
|
216
219
|
highlight: highlight,
|
|
217
220
|
decorative01: decorative01,
|
|
218
|
-
hoverLightUI: hoverLightUI,
|
|
219
221
|
buttonSeparator: buttonSeparator,
|
|
220
222
|
skeleton01: skeleton01,
|
|
221
223
|
skeleton02: skeleton02,
|
|
@@ -341,7 +343,9 @@ var activeSecondary$1 = colors.gray60;
|
|
|
341
343
|
var hoverTertiary$1 = '#0353e9';
|
|
342
344
|
var activeTertiary$1 = colors.blue80;
|
|
343
345
|
var hoverUI$1 = '#e5e5e5';
|
|
346
|
+
var hoverLightUI$1 = '#e5e5e5';
|
|
344
347
|
var activeUI$1 = colors.gray30;
|
|
348
|
+
var activeLightUI$1 = colors.gray30;
|
|
345
349
|
var selectedUI$1 = colors.gray20;
|
|
346
350
|
var selectedLightUI$1 = colors.gray20;
|
|
347
351
|
var inverseHoverUI$1 = '#4c4c4c';
|
|
@@ -355,7 +359,6 @@ var disabled02$1 = colors.gray30;
|
|
|
355
359
|
var disabled03$1 = colors.gray50;
|
|
356
360
|
var highlight$1 = colors.blue10;
|
|
357
361
|
var decorative01$1 = colors.gray20;
|
|
358
|
-
var hoverLightUI$1 = '#e5e5e5';
|
|
359
362
|
var buttonSeparator$1 = '#e0e0e0';
|
|
360
363
|
var skeleton01$1 = '#e5e5e5';
|
|
361
364
|
var skeleton02$1 = colors.gray30;
|
|
@@ -414,7 +417,9 @@ var g10 = /*#__PURE__*/Object.freeze({
|
|
|
414
417
|
hoverTertiary: hoverTertiary$1,
|
|
415
418
|
activeTertiary: activeTertiary$1,
|
|
416
419
|
hoverUI: hoverUI$1,
|
|
420
|
+
hoverLightUI: hoverLightUI$1,
|
|
417
421
|
activeUI: activeUI$1,
|
|
422
|
+
activeLightUI: activeLightUI$1,
|
|
418
423
|
selectedUI: selectedUI$1,
|
|
419
424
|
selectedLightUI: selectedLightUI$1,
|
|
420
425
|
inverseHoverUI: inverseHoverUI$1,
|
|
@@ -428,7 +433,6 @@ var g10 = /*#__PURE__*/Object.freeze({
|
|
|
428
433
|
disabled03: disabled03$1,
|
|
429
434
|
highlight: highlight$1,
|
|
430
435
|
decorative01: decorative01$1,
|
|
431
|
-
hoverLightUI: hoverLightUI$1,
|
|
432
436
|
buttonSeparator: buttonSeparator$1,
|
|
433
437
|
skeleton01: skeleton01$1,
|
|
434
438
|
skeleton02: skeleton02$1,
|
|
@@ -554,7 +558,9 @@ var activeSecondary$2 = colors.gray80;
|
|
|
554
558
|
var hoverTertiary$2 = colors.gray10;
|
|
555
559
|
var activeTertiary$2 = colors.gray30;
|
|
556
560
|
var hoverUI$2 = '#353535';
|
|
561
|
+
var hoverLightUI$2 = '#4c4c4c';
|
|
557
562
|
var activeUI$2 = colors.gray70;
|
|
563
|
+
var activeLightUI$2 = colors.gray60;
|
|
558
564
|
var selectedUI$2 = colors.gray80;
|
|
559
565
|
var selectedLightUI$2 = colors.gray70;
|
|
560
566
|
var inverseHoverUI$2 = '#e5e5e5';
|
|
@@ -568,7 +574,6 @@ var disabled02$2 = colors.gray70;
|
|
|
568
574
|
var disabled03$2 = colors.gray50;
|
|
569
575
|
var highlight$2 = colors.blue80;
|
|
570
576
|
var decorative01$2 = colors.gray70;
|
|
571
|
-
var hoverLightUI$2 = '#525252';
|
|
572
577
|
var buttonSeparator$2 = '#161616';
|
|
573
578
|
var skeleton01$2 = '#353535';
|
|
574
579
|
var skeleton02$2 = colors.gray80;
|
|
@@ -627,7 +632,9 @@ var g100 = /*#__PURE__*/Object.freeze({
|
|
|
627
632
|
hoverTertiary: hoverTertiary$2,
|
|
628
633
|
activeTertiary: activeTertiary$2,
|
|
629
634
|
hoverUI: hoverUI$2,
|
|
635
|
+
hoverLightUI: hoverLightUI$2,
|
|
630
636
|
activeUI: activeUI$2,
|
|
637
|
+
activeLightUI: activeLightUI$2,
|
|
631
638
|
selectedUI: selectedUI$2,
|
|
632
639
|
selectedLightUI: selectedLightUI$2,
|
|
633
640
|
inverseHoverUI: inverseHoverUI$2,
|
|
@@ -641,7 +648,6 @@ var g100 = /*#__PURE__*/Object.freeze({
|
|
|
641
648
|
disabled03: disabled03$2,
|
|
642
649
|
highlight: highlight$2,
|
|
643
650
|
decorative01: decorative01$2,
|
|
644
|
-
hoverLightUI: hoverLightUI$2,
|
|
645
651
|
buttonSeparator: buttonSeparator$2,
|
|
646
652
|
skeleton01: skeleton01$2,
|
|
647
653
|
skeleton02: skeleton02$2,
|
|
@@ -767,7 +773,9 @@ var activeSecondary$3 = colors.gray80;
|
|
|
767
773
|
var hoverTertiary$3 = colors.gray10;
|
|
768
774
|
var activeTertiary$3 = colors.gray30;
|
|
769
775
|
var hoverUI$3 = '#4c4c4c';
|
|
776
|
+
var hoverLightUI$3 = '#656565';
|
|
770
777
|
var activeUI$3 = colors.gray60;
|
|
778
|
+
var activeLightUI$3 = colors.gray50;
|
|
771
779
|
var selectedUI$3 = colors.gray70;
|
|
772
780
|
var selectedLightUI$3 = colors.gray60;
|
|
773
781
|
var inverseHoverUI$3 = '#e5e5e5';
|
|
@@ -781,7 +789,6 @@ var disabled02$3 = colors.gray60;
|
|
|
781
789
|
var disabled03$3 = colors.gray40;
|
|
782
790
|
var highlight$3 = colors.blue70;
|
|
783
791
|
var decorative01$3 = colors.gray60;
|
|
784
|
-
var hoverLightUI$3 = '#6f6f6f';
|
|
785
792
|
var buttonSeparator$3 = '#161616';
|
|
786
793
|
var skeleton01$3 = '#353535';
|
|
787
794
|
var skeleton02$3 = colors.gray70;
|
|
@@ -840,7 +847,9 @@ var g90 = /*#__PURE__*/Object.freeze({
|
|
|
840
847
|
hoverTertiary: hoverTertiary$3,
|
|
841
848
|
activeTertiary: activeTertiary$3,
|
|
842
849
|
hoverUI: hoverUI$3,
|
|
850
|
+
hoverLightUI: hoverLightUI$3,
|
|
843
851
|
activeUI: activeUI$3,
|
|
852
|
+
activeLightUI: activeLightUI$3,
|
|
844
853
|
selectedUI: selectedUI$3,
|
|
845
854
|
selectedLightUI: selectedLightUI$3,
|
|
846
855
|
inverseHoverUI: inverseHoverUI$3,
|
|
@@ -854,7 +863,6 @@ var g90 = /*#__PURE__*/Object.freeze({
|
|
|
854
863
|
disabled03: disabled03$3,
|
|
855
864
|
highlight: highlight$3,
|
|
856
865
|
decorative01: decorative01$3,
|
|
857
|
-
hoverLightUI: hoverLightUI$3,
|
|
858
866
|
buttonSeparator: buttonSeparator$3,
|
|
859
867
|
skeleton01: skeleton01$3,
|
|
860
868
|
skeleton02: skeleton02$3,
|
|
@@ -980,7 +988,9 @@ var activeSecondary$4 = '#414f59';
|
|
|
980
988
|
var hoverTertiary$4 = '#5a6872';
|
|
981
989
|
var activeTertiary$4 = '#414f59';
|
|
982
990
|
var hoverUI$4 = '#EEF4FC';
|
|
991
|
+
var hoverLightUI$4 = '#EEF4FC';
|
|
983
992
|
var activeUI$4 = '#DFEAFA';
|
|
993
|
+
var activeLightUI$4 = '#DFEAFA';
|
|
984
994
|
var selectedUI$4 = '#EEF4FC';
|
|
985
995
|
var selectedLightUI$4 = '#EEF4FC';
|
|
986
996
|
var inverseHoverUI$4 = '#4c4c4c';
|
|
@@ -994,7 +1004,6 @@ var disabled02$4 = '#dfe3e6';
|
|
|
994
1004
|
var disabled03$4 = '#cdd1d4';
|
|
995
1005
|
var highlight$4 = '#f4f7fb';
|
|
996
1006
|
var decorative01$4 = '#EEF4FC';
|
|
997
|
-
var hoverLightUI$4 = '#EEF4FC';
|
|
998
1007
|
var buttonSeparator$4 = '#e0e0e0';
|
|
999
1008
|
var skeleton01$4 = 'rgba(61, 112, 178, .1)';
|
|
1000
1009
|
var skeleton02$4 = 'rgba(61, 112, 178, .1)';
|
|
@@ -1053,7 +1062,9 @@ var v9 = /*#__PURE__*/Object.freeze({
|
|
|
1053
1062
|
hoverTertiary: hoverTertiary$4,
|
|
1054
1063
|
activeTertiary: activeTertiary$4,
|
|
1055
1064
|
hoverUI: hoverUI$4,
|
|
1065
|
+
hoverLightUI: hoverLightUI$4,
|
|
1056
1066
|
activeUI: activeUI$4,
|
|
1067
|
+
activeLightUI: activeLightUI$4,
|
|
1057
1068
|
selectedUI: selectedUI$4,
|
|
1058
1069
|
selectedLightUI: selectedLightUI$4,
|
|
1059
1070
|
inverseHoverUI: inverseHoverUI$4,
|
|
@@ -1067,7 +1078,6 @@ var v9 = /*#__PURE__*/Object.freeze({
|
|
|
1067
1078
|
disabled03: disabled03$4,
|
|
1068
1079
|
highlight: highlight$4,
|
|
1069
1080
|
decorative01: decorative01$4,
|
|
1070
|
-
hoverLightUI: hoverLightUI$4,
|
|
1071
1081
|
buttonSeparator: buttonSeparator$4,
|
|
1072
1082
|
skeleton01: skeleton01$4,
|
|
1073
1083
|
skeleton02: skeleton02$4,
|
|
@@ -1150,7 +1160,7 @@ var v9 = /*#__PURE__*/Object.freeze({
|
|
|
1150
1160
|
|
|
1151
1161
|
var colors$1 = [// Core
|
|
1152
1162
|
'interactive01', 'interactive02', 'interactive03', 'interactive04', 'uiBackground', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'icon01', 'icon02', 'icon03', 'link01', 'inverseLink', 'field01', 'field02', 'inverse01', 'inverse02', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', 'danger01', 'danger02', // Interactive states
|
|
1153
|
-
'focus', 'inverseFocusUi', 'hoverPrimary', 'activePrimary', 'hoverPrimaryText', 'hoverSecondary', 'activeSecondary', 'hoverTertiary', 'activeTertiary', 'hoverUI', 'activeUI', '
|
|
1163
|
+
'focus', 'inverseFocusUi', 'hoverPrimary', 'activePrimary', 'hoverPrimaryText', 'hoverSecondary', 'activeSecondary', 'hoverTertiary', 'activeTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'activeUI', 'activeLightUI', 'selectedUI', 'selectedLightUI', 'inverseHoverUI', 'hoverDanger', 'activeDanger', 'hoverRow', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'highlight', 'decorative01', 'buttonSeparator', 'skeleton01', 'skeleton02', // Deprecated
|
|
1154
1164
|
'brand01', 'brand02', 'brand03', 'active01', 'hoverField', 'danger'];
|
|
1155
1165
|
var numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
1156
1166
|
/**
|
|
@@ -1202,7 +1212,7 @@ var unstable__meta = {
|
|
|
1202
1212
|
tokens: ['uiBackground', 'interactive01', 'interactive02', 'interactive03', 'interactive04', 'brand01', 'brand02', 'brand03', 'danger', 'danger01', 'danger02', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'link01', 'icon01', 'icon02', 'icon03', 'field01', 'field02', 'inverse01', 'inverse02', 'inverseLink', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01']
|
|
1203
1213
|
}, {
|
|
1204
1214
|
type: 'interactive',
|
|
1205
|
-
tokens: ['focus', 'inverseFocusUi', 'hoverPrimary', 'hoverPrimaryText', 'hoverSecondary', 'hoverTertiary', 'hoverUI', 'hoverSelectedUI', 'hoverDanger', 'hoverRow', 'activePrimary', 'activeSecondary', 'activeTertiary', 'activeUI', 'activeDanger', 'selectedUI', 'selectedLightUI', 'highlight', 'skeleton01', 'skeleton02', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'inverseHoverUI', 'active01', 'hoverField', 'decorative01', '
|
|
1215
|
+
tokens: ['focus', 'inverseFocusUi', 'hoverPrimary', 'hoverPrimaryText', 'hoverSecondary', 'hoverTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'hoverDanger', 'hoverRow', 'activePrimary', 'activeSecondary', 'activeTertiary', 'activeUI', 'activeLightUI', 'activeDanger', 'selectedUI', 'selectedLightUI', 'highlight', 'skeleton01', 'skeleton02', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'inverseHoverUI', 'active01', 'hoverField', 'decorative01', 'buttonSeparator']
|
|
1206
1216
|
}],
|
|
1207
1217
|
deprecated: ['brand01', 'brand02', 'brand03', 'active01', 'danger']
|
|
1208
1218
|
};
|
|
@@ -1337,7 +1347,9 @@ exports.activeSecondary = activeSecondary;
|
|
|
1337
1347
|
exports.hoverTertiary = hoverTertiary;
|
|
1338
1348
|
exports.activeTertiary = activeTertiary;
|
|
1339
1349
|
exports.hoverUI = hoverUI;
|
|
1350
|
+
exports.hoverLightUI = hoverLightUI;
|
|
1340
1351
|
exports.activeUI = activeUI;
|
|
1352
|
+
exports.activeLightUI = activeLightUI;
|
|
1341
1353
|
exports.selectedUI = selectedUI;
|
|
1342
1354
|
exports.selectedLightUI = selectedLightUI;
|
|
1343
1355
|
exports.inverseHoverUI = inverseHoverUI;
|
|
@@ -1351,7 +1363,6 @@ exports.disabled02 = disabled02;
|
|
|
1351
1363
|
exports.disabled03 = disabled03;
|
|
1352
1364
|
exports.highlight = highlight;
|
|
1353
1365
|
exports.decorative01 = decorative01;
|
|
1354
|
-
exports.hoverLightUI = hoverLightUI;
|
|
1355
1366
|
exports.buttonSeparator = buttonSeparator;
|
|
1356
1367
|
exports.skeleton01 = skeleton01;
|
|
1357
1368
|
exports.skeleton02 = skeleton02;
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/themes",
|
|
3
3
|
"description": "Themes for applying color in the Carbon Design System",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.24.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
8
|
-
"repository":
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/carbon-design-system/carbon.git",
|
|
11
|
+
"directory": "packages/themes"
|
|
12
|
+
},
|
|
9
13
|
"bugs": "https://github.com/carbon-design-system/carbon/issues",
|
|
10
14
|
"keywords": [
|
|
11
15
|
"ibm",
|
|
@@ -24,15 +28,15 @@
|
|
|
24
28
|
"build": "yarn clean && bundler bundle src/index.js --name CarbonThemes && node tasks/build.js && bundler check \"scss/*.scss\" && bundler sassdoc \"scss/**/*.scss\""
|
|
25
29
|
},
|
|
26
30
|
"dependencies": {
|
|
27
|
-
"@carbon/colors": "^10.
|
|
28
|
-
"@carbon/layout": "^10.
|
|
29
|
-
"@carbon/type": "^10.
|
|
31
|
+
"@carbon/colors": "^10.17.0",
|
|
32
|
+
"@carbon/layout": "^10.15.0",
|
|
33
|
+
"@carbon/type": "^10.18.0",
|
|
30
34
|
"color": "^3.1.2"
|
|
31
35
|
},
|
|
32
36
|
"devDependencies": {
|
|
33
|
-
"@carbon/cli-reporter": "^10.
|
|
34
|
-
"@carbon/scss-generator": "^10.
|
|
35
|
-
"@carbon/test-utils": "^10.
|
|
37
|
+
"@carbon/cli-reporter": "^10.4.0",
|
|
38
|
+
"@carbon/scss-generator": "^10.11.0",
|
|
39
|
+
"@carbon/test-utils": "^10.13.0",
|
|
36
40
|
"change-case": "^4.1.1",
|
|
37
41
|
"core-js": "^3.6.5",
|
|
38
42
|
"fs-extra": "^8.1.0",
|
|
@@ -40,5 +44,5 @@
|
|
|
40
44
|
"node-sass": "^4.13.1",
|
|
41
45
|
"rimraf": "^3.0.0"
|
|
42
46
|
},
|
|
43
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "0797f3112f8a97636d05d81a3457482884364528"
|
|
44
48
|
}
|
|
@@ -84,10 +84,12 @@
|
|
|
84
84
|
$hover-tertiary: map-get($theme, 'hover-tertiary') !global;
|
|
85
85
|
$active-tertiary: map-get($theme, 'active-tertiary') !global;
|
|
86
86
|
$hover-ui: map-get($theme, 'hover-ui') !global;
|
|
87
|
+
$hover-light-ui: map-get($theme, 'hover-light-ui') !global;
|
|
88
|
+
$hover-selected-ui: map-get($theme, 'hover-selected-ui') !global;
|
|
87
89
|
$active-ui: map-get($theme, 'active-ui') !global;
|
|
90
|
+
$active-light-ui: map-get($theme, 'active-light-ui') !global;
|
|
88
91
|
$selected-ui: map-get($theme, 'selected-ui') !global;
|
|
89
92
|
$selected-light-ui: map-get($theme, 'selected-light-ui') !global;
|
|
90
|
-
$hover-selected-ui: map-get($theme, 'hover-selected-ui') !global;
|
|
91
93
|
$inverse-hover-ui: map-get($theme, 'inverse-hover-ui') !global;
|
|
92
94
|
$hover-danger: map-get($theme, 'hover-danger') !global;
|
|
93
95
|
$active-danger: map-get($theme, 'active-danger') !global;
|
|
@@ -98,7 +100,6 @@
|
|
|
98
100
|
$disabled-03: map-get($theme, 'disabled-03') !global;
|
|
99
101
|
$highlight: map-get($theme, 'highlight') !global;
|
|
100
102
|
$decorative-01: map-get($theme, 'decorative-01') !global;
|
|
101
|
-
$hover-light-ui: map-get($theme, 'hover-light-ui') !global;
|
|
102
103
|
$button-separator: map-get($theme, 'button-separator') !global;
|
|
103
104
|
$skeleton-01: map-get($theme, 'skeleton-01') !global;
|
|
104
105
|
$skeleton-02: map-get($theme, 'skeleton-02') !global;
|
|
@@ -357,10 +358,22 @@
|
|
|
357
358
|
--#{$custom-property-prefix}-hover-ui,
|
|
358
359
|
map-get($theme, 'hover-ui')
|
|
359
360
|
) !global;
|
|
361
|
+
$hover-light-ui: var(
|
|
362
|
+
--#{$custom-property-prefix}-hover-light-ui,
|
|
363
|
+
map-get($theme, 'hover-light-ui')
|
|
364
|
+
) !global;
|
|
365
|
+
$hover-selected-ui: var(
|
|
366
|
+
--#{$custom-property-prefix}-hover-selected-ui,
|
|
367
|
+
map-get($theme, 'hover-selected-ui')
|
|
368
|
+
) !global;
|
|
360
369
|
$active-ui: var(
|
|
361
370
|
--#{$custom-property-prefix}-active-ui,
|
|
362
371
|
map-get($theme, 'active-ui')
|
|
363
372
|
) !global;
|
|
373
|
+
$active-light-ui: var(
|
|
374
|
+
--#{$custom-property-prefix}-active-light-ui,
|
|
375
|
+
map-get($theme, 'active-light-ui')
|
|
376
|
+
) !global;
|
|
364
377
|
$selected-ui: var(
|
|
365
378
|
--#{$custom-property-prefix}-selected-ui,
|
|
366
379
|
map-get($theme, 'selected-ui')
|
|
@@ -369,10 +382,6 @@
|
|
|
369
382
|
--#{$custom-property-prefix}-selected-light-ui,
|
|
370
383
|
map-get($theme, 'selected-light-ui')
|
|
371
384
|
) !global;
|
|
372
|
-
$hover-selected-ui: var(
|
|
373
|
-
--#{$custom-property-prefix}-hover-selected-ui,
|
|
374
|
-
map-get($theme, 'hover-selected-ui')
|
|
375
|
-
) !global;
|
|
376
385
|
$inverse-hover-ui: var(
|
|
377
386
|
--#{$custom-property-prefix}-inverse-hover-ui,
|
|
378
387
|
map-get($theme, 'inverse-hover-ui')
|
|
@@ -413,10 +422,6 @@
|
|
|
413
422
|
--#{$custom-property-prefix}-decorative-01,
|
|
414
423
|
map-get($theme, 'decorative-01')
|
|
415
424
|
) !global;
|
|
416
|
-
$hover-light-ui: var(
|
|
417
|
-
--#{$custom-property-prefix}-hover-light-ui,
|
|
418
|
-
map-get($theme, 'hover-light-ui')
|
|
419
|
-
) !global;
|
|
420
425
|
$button-separator: var(
|
|
421
426
|
--#{$custom-property-prefix}-button-separator,
|
|
422
427
|
map-get($theme, 'button-separator')
|
|
@@ -971,44 +976,70 @@
|
|
|
971
976
|
@include custom-property('hover-ui', map-get($theme, 'hover-ui'));
|
|
972
977
|
}
|
|
973
978
|
|
|
974
|
-
@if should-emit(
|
|
979
|
+
@if should-emit(
|
|
980
|
+
$theme,
|
|
981
|
+
$parent-carbon-theme,
|
|
982
|
+
'hover-light-ui',
|
|
983
|
+
$emit-difference
|
|
984
|
+
)
|
|
975
985
|
{
|
|
976
|
-
@include custom-property(
|
|
986
|
+
@include custom-property(
|
|
987
|
+
'hover-light-ui',
|
|
988
|
+
map-get($theme, 'hover-light-ui')
|
|
989
|
+
);
|
|
977
990
|
}
|
|
978
991
|
|
|
979
992
|
@if should-emit(
|
|
980
993
|
$theme,
|
|
981
994
|
$parent-carbon-theme,
|
|
982
|
-
'selected-ui',
|
|
995
|
+
'hover-selected-ui',
|
|
983
996
|
$emit-difference
|
|
984
997
|
)
|
|
985
998
|
{
|
|
986
|
-
@include custom-property(
|
|
999
|
+
@include custom-property(
|
|
1000
|
+
'hover-selected-ui',
|
|
1001
|
+
map-get($theme, 'hover-selected-ui')
|
|
1002
|
+
);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
@if should-emit($theme, $parent-carbon-theme, 'active-ui', $emit-difference)
|
|
1006
|
+
{
|
|
1007
|
+
@include custom-property('active-ui', map-get($theme, 'active-ui'));
|
|
987
1008
|
}
|
|
988
1009
|
|
|
989
1010
|
@if should-emit(
|
|
990
1011
|
$theme,
|
|
991
1012
|
$parent-carbon-theme,
|
|
992
|
-
'
|
|
1013
|
+
'active-light-ui',
|
|
993
1014
|
$emit-difference
|
|
994
1015
|
)
|
|
995
1016
|
{
|
|
996
1017
|
@include custom-property(
|
|
997
|
-
'
|
|
998
|
-
map-get($theme, '
|
|
1018
|
+
'active-light-ui',
|
|
1019
|
+
map-get($theme, 'active-light-ui')
|
|
999
1020
|
);
|
|
1000
1021
|
}
|
|
1001
1022
|
|
|
1002
1023
|
@if should-emit(
|
|
1003
1024
|
$theme,
|
|
1004
1025
|
$parent-carbon-theme,
|
|
1005
|
-
'
|
|
1026
|
+
'selected-ui',
|
|
1027
|
+
$emit-difference
|
|
1028
|
+
)
|
|
1029
|
+
{
|
|
1030
|
+
@include custom-property('selected-ui', map-get($theme, 'selected-ui'));
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
@if should-emit(
|
|
1034
|
+
$theme,
|
|
1035
|
+
$parent-carbon-theme,
|
|
1036
|
+
'selected-light-ui',
|
|
1006
1037
|
$emit-difference
|
|
1007
1038
|
)
|
|
1008
1039
|
{
|
|
1009
1040
|
@include custom-property(
|
|
1010
|
-
'
|
|
1011
|
-
map-get($theme, '
|
|
1041
|
+
'selected-light-ui',
|
|
1042
|
+
map-get($theme, 'selected-light-ui')
|
|
1012
1043
|
);
|
|
1013
1044
|
}
|
|
1014
1045
|
|
|
@@ -1111,19 +1142,6 @@
|
|
|
1111
1142
|
);
|
|
1112
1143
|
}
|
|
1113
1144
|
|
|
1114
|
-
@if should-emit(
|
|
1115
|
-
$theme,
|
|
1116
|
-
$parent-carbon-theme,
|
|
1117
|
-
'hover-light-ui',
|
|
1118
|
-
$emit-difference
|
|
1119
|
-
)
|
|
1120
|
-
{
|
|
1121
|
-
@include custom-property(
|
|
1122
|
-
'hover-light-ui',
|
|
1123
|
-
map-get($theme, 'hover-light-ui')
|
|
1124
|
-
);
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
1145
|
@if should-emit(
|
|
1128
1146
|
$theme,
|
|
1129
1147
|
$parent-carbon-theme,
|
|
@@ -53,7 +53,9 @@ $carbon--theme--white: (
|
|
|
53
53
|
hover-tertiary: #0353e9,
|
|
54
54
|
active-tertiary: #002d9c,
|
|
55
55
|
hover-ui: #e5e5e5,
|
|
56
|
+
hover-light-ui: #e5e5e5,
|
|
56
57
|
active-ui: #c6c6c6,
|
|
58
|
+
active-light-ui: #c6c6c6,
|
|
57
59
|
selected-ui: #e0e0e0,
|
|
58
60
|
selected-light-ui: #e0e0e0,
|
|
59
61
|
inverse-hover-ui: #4c4c4c,
|
|
@@ -67,7 +69,6 @@ $carbon--theme--white: (
|
|
|
67
69
|
disabled-03: #8d8d8d,
|
|
68
70
|
highlight: #d0e2ff,
|
|
69
71
|
decorative-01: #e0e0e0,
|
|
70
|
-
hover-light-ui: #e5e5e5,
|
|
71
72
|
button-separator: #e0e0e0,
|
|
72
73
|
skeleton-01: #e5e5e5,
|
|
73
74
|
skeleton-02: #c6c6c6,
|
|
@@ -555,7 +556,9 @@ $carbon--theme--g90: map-merge(
|
|
|
555
556
|
hover-tertiary: #f4f4f4,
|
|
556
557
|
active-tertiary: #c6c6c6,
|
|
557
558
|
hover-ui: #4c4c4c,
|
|
559
|
+
hover-light-ui: #656565,
|
|
558
560
|
active-ui: #6f6f6f,
|
|
561
|
+
active-light-ui: #8d8d8d,
|
|
559
562
|
selected-ui: #525252,
|
|
560
563
|
selected-light-ui: #6f6f6f,
|
|
561
564
|
inverse-hover-ui: #e5e5e5,
|
|
@@ -567,7 +570,6 @@ $carbon--theme--g90: map-merge(
|
|
|
567
570
|
disabled-03: #a8a8a8,
|
|
568
571
|
highlight: #0043ce,
|
|
569
572
|
decorative-01: #6f6f6f,
|
|
570
|
-
hover-light-ui: #6f6f6f,
|
|
571
573
|
button-separator: #161616,
|
|
572
574
|
skeleton-01: #353535,
|
|
573
575
|
skeleton-02: #525252,
|
|
@@ -623,7 +625,9 @@ $carbon--theme--g100: map-merge(
|
|
|
623
625
|
hover-tertiary: #f4f4f4,
|
|
624
626
|
active-tertiary: #c6c6c6,
|
|
625
627
|
hover-ui: #353535,
|
|
628
|
+
hover-light-ui: #4c4c4c,
|
|
626
629
|
active-ui: #525252,
|
|
630
|
+
active-light-ui: #6f6f6f,
|
|
627
631
|
selected-ui: #393939,
|
|
628
632
|
selected-light-ui: #525252,
|
|
629
633
|
inverse-hover-ui: #e5e5e5,
|
|
@@ -634,7 +638,6 @@ $carbon--theme--g100: map-merge(
|
|
|
634
638
|
disabled-02: #525252,
|
|
635
639
|
highlight: #002d9c,
|
|
636
640
|
decorative-01: #525252,
|
|
637
|
-
hover-light-ui: #525252,
|
|
638
641
|
button-separator: #161616,
|
|
639
642
|
skeleton-01: #353535,
|
|
640
643
|
skeleton-02: #393939,
|
|
@@ -693,7 +696,9 @@ $carbon--theme--v9: map-merge(
|
|
|
693
696
|
hover-tertiary: #5a6872,
|
|
694
697
|
active-tertiary: #414f59,
|
|
695
698
|
hover-ui: #eef4fc,
|
|
699
|
+
hover-light-ui: #eef4fc,
|
|
696
700
|
active-ui: #dfeafa,
|
|
701
|
+
active-light-ui: #dfeafa,
|
|
697
702
|
selected-ui: #eef4fc,
|
|
698
703
|
selected-light-ui: #eef4fc,
|
|
699
704
|
hover-selected-ui: #dfeafa,
|
|
@@ -706,7 +711,6 @@ $carbon--theme--v9: map-merge(
|
|
|
706
711
|
disabled-03: #cdd1d4,
|
|
707
712
|
highlight: #f4f7fb,
|
|
708
713
|
decorative-01: #eef4fc,
|
|
709
|
-
hover-light-ui: #eef4fc,
|
|
710
714
|
skeleton-01: rgba(61, 112, 178, 0.1),
|
|
711
715
|
skeleton-02: rgba(61, 112, 178, 0.1),
|
|
712
716
|
brand-01: #3d70b2,
|
|
@@ -999,12 +1003,30 @@ $carbon--theme: (
|
|
|
999
1003
|
$hover-ui,
|
|
1000
1004
|
map-get($carbon--theme--white, 'hover-ui')
|
|
1001
1005
|
),
|
|
1006
|
+
hover-light-ui:
|
|
1007
|
+
if(
|
|
1008
|
+
global-variable-exists('hover-light-ui'),
|
|
1009
|
+
$hover-light-ui,
|
|
1010
|
+
map-get($carbon--theme--white, 'hover-light-ui')
|
|
1011
|
+
),
|
|
1012
|
+
hover-selected-ui:
|
|
1013
|
+
if(
|
|
1014
|
+
global-variable-exists('hover-selected-ui'),
|
|
1015
|
+
$hover-selected-ui,
|
|
1016
|
+
map-get($carbon--theme--white, 'hover-selected-ui')
|
|
1017
|
+
),
|
|
1002
1018
|
active-ui:
|
|
1003
1019
|
if(
|
|
1004
1020
|
global-variable-exists('active-ui'),
|
|
1005
1021
|
$active-ui,
|
|
1006
1022
|
map-get($carbon--theme--white, 'active-ui')
|
|
1007
1023
|
),
|
|
1024
|
+
active-light-ui:
|
|
1025
|
+
if(
|
|
1026
|
+
global-variable-exists('active-light-ui'),
|
|
1027
|
+
$active-light-ui,
|
|
1028
|
+
map-get($carbon--theme--white, 'active-light-ui')
|
|
1029
|
+
),
|
|
1008
1030
|
selected-ui:
|
|
1009
1031
|
if(
|
|
1010
1032
|
global-variable-exists('selected-ui'),
|
|
@@ -1017,12 +1039,6 @@ $carbon--theme: (
|
|
|
1017
1039
|
$selected-light-ui,
|
|
1018
1040
|
map-get($carbon--theme--white, 'selected-light-ui')
|
|
1019
1041
|
),
|
|
1020
|
-
hover-selected-ui:
|
|
1021
|
-
if(
|
|
1022
|
-
global-variable-exists('hover-selected-ui'),
|
|
1023
|
-
$hover-selected-ui,
|
|
1024
|
-
map-get($carbon--theme--white, 'hover-selected-ui')
|
|
1025
|
-
),
|
|
1026
1042
|
inverse-hover-ui:
|
|
1027
1043
|
if(
|
|
1028
1044
|
global-variable-exists('inverse-hover-ui'),
|
|
@@ -1083,12 +1099,6 @@ $carbon--theme: (
|
|
|
1083
1099
|
$decorative-01,
|
|
1084
1100
|
map-get($carbon--theme--white, 'decorative-01')
|
|
1085
1101
|
),
|
|
1086
|
-
hover-light-ui:
|
|
1087
|
-
if(
|
|
1088
|
-
global-variable-exists('hover-light-ui'),
|
|
1089
|
-
$hover-light-ui,
|
|
1090
|
-
map-get($carbon--theme--white, 'hover-light-ui')
|
|
1091
|
-
),
|
|
1092
1102
|
button-separator:
|
|
1093
1103
|
if(
|
|
1094
1104
|
global-variable-exists('button-separator'),
|
|
@@ -506,6 +506,27 @@ $hover-ui: if(
|
|
|
506
506
|
#e5e5e5
|
|
507
507
|
) !default;
|
|
508
508
|
|
|
509
|
+
/// @type {undefined}
|
|
510
|
+
/// @access public
|
|
511
|
+
/// @group @carbon/themes
|
|
512
|
+
$hover-light-ui: if(
|
|
513
|
+
global-variable-exists('carbon--theme') and
|
|
514
|
+
map-has-key($carbon--theme, 'hover-light-ui'),
|
|
515
|
+
map-get($carbon--theme, 'hover-light-ui'),
|
|
516
|
+
#e5e5e5
|
|
517
|
+
) !default;
|
|
518
|
+
|
|
519
|
+
/// Data table selected row hover
|
|
520
|
+
/// @type {undefined}
|
|
521
|
+
/// @access public
|
|
522
|
+
/// @group @carbon/themes
|
|
523
|
+
$hover-selected-ui: if(
|
|
524
|
+
global-variable-exists('carbon--theme') and
|
|
525
|
+
map-has-key($carbon--theme, 'hover-selected-ui'),
|
|
526
|
+
map-get($carbon--theme, 'hover-selected-ui'),
|
|
527
|
+
#cacaca
|
|
528
|
+
) !default;
|
|
529
|
+
|
|
509
530
|
/// `$ui-01` active; `$ui-02` active
|
|
510
531
|
/// @type {undefined}
|
|
511
532
|
/// @access public
|
|
@@ -517,6 +538,16 @@ $active-ui: if(
|
|
|
517
538
|
#c6c6c6
|
|
518
539
|
) !default;
|
|
519
540
|
|
|
541
|
+
/// @type {undefined}
|
|
542
|
+
/// @access public
|
|
543
|
+
/// @group @carbon/themes
|
|
544
|
+
$active-light-ui: if(
|
|
545
|
+
global-variable-exists('carbon--theme') and
|
|
546
|
+
map-has-key($carbon--theme, 'active-light-ui'),
|
|
547
|
+
map-get($carbon--theme, 'active-light-ui'),
|
|
548
|
+
#c6c6c6
|
|
549
|
+
) !default;
|
|
550
|
+
|
|
520
551
|
/// Selected UI elements
|
|
521
552
|
/// @type {undefined}
|
|
522
553
|
/// @access public
|
|
@@ -538,17 +569,6 @@ $selected-light-ui: if(
|
|
|
538
569
|
#e0e0e0
|
|
539
570
|
) !default;
|
|
540
571
|
|
|
541
|
-
/// Data table selected row hover
|
|
542
|
-
/// @type {undefined}
|
|
543
|
-
/// @access public
|
|
544
|
-
/// @group @carbon/themes
|
|
545
|
-
$hover-selected-ui: if(
|
|
546
|
-
global-variable-exists('carbon--theme') and
|
|
547
|
-
map-has-key($carbon--theme, 'hover-selected-ui'),
|
|
548
|
-
map-get($carbon--theme, 'hover-selected-ui'),
|
|
549
|
-
#cacaca
|
|
550
|
-
) !default;
|
|
551
|
-
|
|
552
572
|
/// @type {undefined}
|
|
553
573
|
/// @access public
|
|
554
574
|
/// @group @carbon/themes
|
|
@@ -657,16 +677,6 @@ $decorative-01: if(
|
|
|
657
677
|
#e0e0e0
|
|
658
678
|
) !default;
|
|
659
679
|
|
|
660
|
-
/// @type {undefined}
|
|
661
|
-
/// @access public
|
|
662
|
-
/// @group @carbon/themes
|
|
663
|
-
$hover-light-ui: if(
|
|
664
|
-
global-variable-exists('carbon--theme') and
|
|
665
|
-
map-has-key($carbon--theme, 'hover-light-ui'),
|
|
666
|
-
map-get($carbon--theme, 'hover-light-ui'),
|
|
667
|
-
#e5e5e5
|
|
668
|
-
) !default;
|
|
669
|
-
|
|
670
680
|
/// @type {undefined}
|
|
671
681
|
/// @access public
|
|
672
682
|
/// @group @carbon/themes
|
package/src/g10.js
CHANGED
|
@@ -107,7 +107,9 @@ export const hoverTertiary = '#0353e9';
|
|
|
107
107
|
export const activeTertiary = blue80;
|
|
108
108
|
|
|
109
109
|
export const hoverUI = '#e5e5e5';
|
|
110
|
+
export const hoverLightUI = '#e5e5e5';
|
|
110
111
|
export const activeUI = gray30;
|
|
112
|
+
export const activeLightUI = gray30;
|
|
111
113
|
export const selectedUI = gray20;
|
|
112
114
|
export const selectedLightUI = gray20;
|
|
113
115
|
export const inverseHoverUI = '#4c4c4c';
|
|
@@ -129,8 +131,6 @@ export const highlight = blue10;
|
|
|
129
131
|
|
|
130
132
|
export const decorative01 = gray20;
|
|
131
133
|
|
|
132
|
-
export const hoverLightUI = '#e5e5e5';
|
|
133
|
-
|
|
134
134
|
export const buttonSeparator = '#e0e0e0';
|
|
135
135
|
|
|
136
136
|
export const skeleton01 = '#e5e5e5';
|
package/src/g100.js
CHANGED
|
@@ -106,7 +106,9 @@ export const hoverTertiary = gray10;
|
|
|
106
106
|
export const activeTertiary = gray30;
|
|
107
107
|
|
|
108
108
|
export const hoverUI = '#353535';
|
|
109
|
+
export const hoverLightUI = '#4c4c4c';
|
|
109
110
|
export const activeUI = gray70;
|
|
111
|
+
export const activeLightUI = gray60;
|
|
110
112
|
export const selectedUI = gray80;
|
|
111
113
|
export const selectedLightUI = gray70;
|
|
112
114
|
export const inverseHoverUI = '#e5e5e5';
|
|
@@ -128,8 +130,6 @@ export const highlight = blue80;
|
|
|
128
130
|
|
|
129
131
|
export const decorative01 = gray70;
|
|
130
132
|
|
|
131
|
-
export const hoverLightUI = '#525252';
|
|
132
|
-
|
|
133
133
|
export const buttonSeparator = '#161616';
|
|
134
134
|
|
|
135
135
|
export const skeleton01 = '#353535';
|
package/src/g90.js
CHANGED
|
@@ -108,7 +108,9 @@ export const hoverTertiary = gray10;
|
|
|
108
108
|
export const activeTertiary = gray30;
|
|
109
109
|
|
|
110
110
|
export const hoverUI = '#4c4c4c';
|
|
111
|
+
export const hoverLightUI = '#656565';
|
|
111
112
|
export const activeUI = gray60;
|
|
113
|
+
export const activeLightUI = gray50;
|
|
112
114
|
export const selectedUI = gray70;
|
|
113
115
|
export const selectedLightUI = gray60;
|
|
114
116
|
export const inverseHoverUI = '#e5e5e5';
|
|
@@ -130,8 +132,6 @@ export const highlight = blue70;
|
|
|
130
132
|
|
|
131
133
|
export const decorative01 = gray60;
|
|
132
134
|
|
|
133
|
-
export const hoverLightUI = '#6f6f6f';
|
|
134
|
-
|
|
135
135
|
export const buttonSeparator = '#161616';
|
|
136
136
|
|
|
137
137
|
export const skeleton01 = '#353535';
|