@carbon/themes 11.77.0 → 11.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/es/index.js +1360 -1722
  2. package/js/generated/component-tokens/button.d.ts +98 -0
  3. package/{src/component-tokens/button/tokens.ts → js/generated/component-tokens/button.js} +65 -97
  4. package/js/generated/component-tokens/content-switcher.d.ts +25 -0
  5. package/js/generated/component-tokens/content-switcher.js +25 -0
  6. package/js/generated/component-tokens/notification.d.ts +65 -0
  7. package/js/generated/component-tokens/notification.js +65 -0
  8. package/js/generated/component-tokens/status.d.ts +63 -0
  9. package/js/generated/component-tokens/status.js +63 -0
  10. package/js/generated/component-tokens/tag.d.ts +247 -0
  11. package/js/generated/component-tokens/tag.js +247 -0
  12. package/js/generated/themes/g10.d.ts +242 -0
  13. package/js/generated/themes/g10.js +242 -0
  14. package/js/generated/themes/g100.d.ts +242 -0
  15. package/js/generated/themes/g100.js +242 -0
  16. package/js/generated/themes/g90.d.ts +242 -0
  17. package/js/generated/themes/g90.js +242 -0
  18. package/js/generated/themes/white.d.ts +242 -0
  19. package/js/generated/themes/white.js +242 -0
  20. package/lib/index.d.ts +12 -10
  21. package/lib/index.js +1360 -1722
  22. package/package.json +12 -9
  23. package/scss/generated/_button-tokens.scss +2 -2
  24. package/src/dtcg/README.md +210 -0
  25. package/src/dtcg/color-palette.json +3204 -0
  26. package/src/dtcg/components/button.json +193 -0
  27. package/src/dtcg/components/content-switcher.json +60 -0
  28. package/src/dtcg/components/notification.json +130 -0
  29. package/src/dtcg/components/status.json +122 -0
  30. package/src/dtcg/components/tag.json +486 -0
  31. package/src/dtcg/g10.json +1453 -0
  32. package/src/dtcg/g100.json +1478 -0
  33. package/src/dtcg/g90.json +1478 -0
  34. package/src/dtcg/white.json +1345 -0
  35. package/src/index.ts +96 -10
  36. package/test-dtcg.scss +28 -0
  37. package/umd/index.js +1363 -1725
  38. package/lib/component-tokens/button/index.d.ts +0 -7
  39. package/lib/component-tokens/button/tokens.d.ts +0 -98
  40. package/lib/component-tokens/content-switcher/index.d.ts +0 -7
  41. package/lib/component-tokens/content-switcher/tokens.d.ts +0 -24
  42. package/lib/component-tokens/notification/index.d.ts +0 -7
  43. package/lib/component-tokens/notification/tokens.d.ts +0 -64
  44. package/lib/component-tokens/status/index.d.ts +0 -7
  45. package/lib/component-tokens/status/tokens.d.ts +0 -62
  46. package/lib/component-tokens/tag/index.d.ts +0 -7
  47. package/lib/component-tokens/tag/tokens.d.ts +0 -246
  48. package/lib/g10.d.ts +0 -242
  49. package/lib/g100.d.ts +0 -242
  50. package/lib/g90.d.ts +0 -242
  51. package/lib/white.d.ts +0 -243
  52. package/src/component-tokens/button/index.ts +0 -8
  53. package/src/component-tokens/content-switcher/index.ts +0 -7
  54. package/src/component-tokens/content-switcher/tokens.ts +0 -29
  55. package/src/component-tokens/notification/index.ts +0 -8
  56. package/src/component-tokens/notification/tokens.ts +0 -105
  57. package/src/component-tokens/status/index.ts +0 -8
  58. package/src/component-tokens/status/tokens.ts +0 -90
  59. package/src/component-tokens/tag/index.ts +0 -8
  60. package/src/component-tokens/tag/tokens.ts +0 -353
  61. package/src/g10.ts +0 -452
  62. package/src/g100.ts +0 -453
  63. package/src/g90.ts +0 -455
  64. package/src/white.ts +0 -455
@@ -0,0 +1,98 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2025
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+
8
+ export declare const buttonDangerActive: {
9
+ whiteTheme: string;
10
+ g10: string;
11
+ g90: string;
12
+ g100: string;
13
+ };
14
+ export declare const buttonDangerHover: {
15
+ whiteTheme: string;
16
+ g10: string;
17
+ g90: string;
18
+ g100: string;
19
+ };
20
+ export declare const buttonDangerPrimary: {
21
+ whiteTheme: string;
22
+ g10: string;
23
+ g90: string;
24
+ g100: string;
25
+ };
26
+ export declare const buttonDangerSecondary: {
27
+ whiteTheme: string;
28
+ g10: string;
29
+ g90: string;
30
+ g100: string;
31
+ };
32
+ export declare const buttonDisabled: {
33
+ whiteTheme: string;
34
+ g10: string;
35
+ g90: string;
36
+ g100: string;
37
+ };
38
+ export declare const buttonPrimary: {
39
+ whiteTheme: string;
40
+ g10: string;
41
+ g90: string;
42
+ g100: string;
43
+ };
44
+ export declare const buttonPrimaryActive: {
45
+ whiteTheme: string;
46
+ g10: string;
47
+ g90: string;
48
+ g100: string;
49
+ };
50
+ export declare const buttonPrimaryHover: {
51
+ whiteTheme: string;
52
+ g10: string;
53
+ g90: string;
54
+ g100: string;
55
+ };
56
+ export declare const buttonSecondary: {
57
+ whiteTheme: string;
58
+ g10: string;
59
+ g90: string;
60
+ g100: string;
61
+ };
62
+ export declare const buttonSecondaryActive: {
63
+ whiteTheme: string;
64
+ g10: string;
65
+ g90: string;
66
+ g100: string;
67
+ };
68
+ export declare const buttonSecondaryHover: {
69
+ whiteTheme: string;
70
+ g10: string;
71
+ g90: string;
72
+ g100: string;
73
+ };
74
+ export declare const buttonSeparator: {
75
+ fallback: string;
76
+ whiteTheme: string;
77
+ g10: string;
78
+ g90: string;
79
+ g100: string;
80
+ };
81
+ export declare const buttonTertiary: {
82
+ whiteTheme: string;
83
+ g10: string;
84
+ g90: string;
85
+ g100: string;
86
+ };
87
+ export declare const buttonTertiaryActive: {
88
+ whiteTheme: string;
89
+ g10: string;
90
+ g90: string;
91
+ g100: string;
92
+ };
93
+ export declare const buttonTertiaryHover: {
94
+ whiteTheme: string;
95
+ g10: string;
96
+ g90: string;
97
+ g100: string;
98
+ };
@@ -1,130 +1,98 @@
1
- /**
2
- * Copyright IBM Corp. 2022, 2026
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- const buttonSeparator = {
9
- fallback: '#e0e0e0',
10
- whiteTheme: '#e0e0e0',
11
- g10: '#e0e0e0',
12
- g90: '#161616',
13
- g100: '#161616',
14
- };
15
-
16
- const buttonPrimary = {
17
- whiteTheme: '#0f62fe',
18
- g10: '#0f62fe',
19
- g90: '#0f62fe',
20
- g100: '#0f62fe',
21
- };
22
-
23
- const buttonSecondary = {
24
- whiteTheme: '#393939',
25
- g10: '#393939',
26
- g90: '#6f6f6f',
27
- g100: '#6f6f6f',
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2025
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+
8
+ export const buttonDangerActive = {
9
+ whiteTheme: '#750e13',
10
+ g10: '#750e13',
11
+ g90: '#750e13',
12
+ g100: '#750e13',
28
13
  };
29
-
30
- const buttonTertiary = {
31
- whiteTheme: '#0f62fe',
32
- g10: '#0f62fe',
33
- g90: '#ffffff',
34
- g100: '#ffffff',
14
+ export const buttonDangerHover = {
15
+ whiteTheme: '#b81921',
16
+ g10: '#b81921',
17
+ g90: '#b81921',
18
+ g100: '#b81921',
35
19
  };
36
-
37
- const buttonDangerPrimary = {
20
+ export const buttonDangerPrimary = {
38
21
  whiteTheme: '#da1e28',
39
22
  g10: '#da1e28',
40
23
  g90: '#da1e28',
41
24
  g100: '#da1e28',
42
25
  };
43
-
44
- const buttonDangerSecondary = {
26
+ export const buttonDangerSecondary = {
45
27
  whiteTheme: '#da1e28',
46
28
  g10: '#da1e28',
47
29
  g90: '#ff8389',
48
30
  g100: '#fa4d56',
49
31
  };
50
-
51
- const buttonDangerActive = {
52
- whiteTheme: '#750e13',
53
- g10: '#750e13',
54
- g90: '#750e13',
55
- g100: '#750e13',
32
+ export const buttonDisabled = {
33
+ whiteTheme: '#c6c6c6',
34
+ g10: '#c6c6c6',
35
+ g90: 'rgba(141, 141, 141, 0.3)',
36
+ g100: 'rgba(141, 141, 141, 0.3)',
56
37
  };
57
-
58
- const buttonPrimaryActive = {
38
+ export const buttonPrimary = {
39
+ whiteTheme: '#0f62fe',
40
+ g10: '#0f62fe',
41
+ g90: '#0f62fe',
42
+ g100: '#0f62fe',
43
+ };
44
+ export const buttonPrimaryActive = {
59
45
  whiteTheme: '#002d9c',
60
46
  g10: '#002d9c',
61
47
  g90: '#002d9c',
62
48
  g100: '#002d9c',
63
49
  };
64
-
65
- const buttonSecondaryActive = {
66
- whiteTheme: '#6f6f6f',
67
- g10: '#6f6f6f',
68
- g90: '#393939',
69
- g100: '#393939',
70
- };
71
-
72
- const buttonTertiaryActive = {
73
- whiteTheme: '#002d9c',
74
- g10: '#002d9c',
75
- g90: '#c6c6c6',
76
- g100: '#c6c6c6',
77
- };
78
-
79
- const buttonDangerHover = {
80
- whiteTheme: '#b81921',
81
- g10: '#b81921',
82
- g90: '#b81921',
83
- g100: '#b81921',
84
- };
85
-
86
- const buttonPrimaryHover = {
50
+ export const buttonPrimaryHover = {
87
51
  whiteTheme: '#0050e6',
88
52
  g10: '#0050e6',
89
53
  g90: '#0050e6',
90
54
  g100: '#0050e6',
91
55
  };
92
-
93
- const buttonSecondaryHover = {
56
+ export const buttonSecondary = {
57
+ whiteTheme: '#393939',
58
+ g10: '#393939',
59
+ g90: '#6f6f6f',
60
+ g100: '#6f6f6f',
61
+ };
62
+ export const buttonSecondaryActive = {
63
+ whiteTheme: '#6f6f6f',
64
+ g10: '#6f6f6f',
65
+ g90: '#393939',
66
+ g100: '#393939',
67
+ };
68
+ export const buttonSecondaryHover = {
94
69
  whiteTheme: '#474747',
95
70
  g10: '#474747',
96
71
  g90: '#5e5e5e',
97
72
  g100: '#5e5e5e',
98
73
  };
99
-
100
- const buttonTertiaryHover = {
74
+ export const buttonSeparator = {
75
+ fallback: '#e0e0e0',
76
+ whiteTheme: '#e0e0e0',
77
+ g10: '#e0e0e0',
78
+ g90: '#161616',
79
+ g100: '#161616',
80
+ };
81
+ export const buttonTertiary = {
82
+ whiteTheme: '#0f62fe',
83
+ g10: '#0f62fe',
84
+ g90: '#ffffff',
85
+ g100: '#ffffff',
86
+ };
87
+ export const buttonTertiaryActive = {
88
+ whiteTheme: '#002d9c',
89
+ g10: '#002d9c',
90
+ g90: '#c6c6c6',
91
+ g100: '#c6c6c6',
92
+ };
93
+ export const buttonTertiaryHover = {
101
94
  whiteTheme: '#0050e6',
102
95
  g10: '#0050e6',
103
96
  g90: '#f4f4f4',
104
97
  g100: '#f4f4f4',
105
98
  };
106
-
107
- const buttonDisabled = {
108
- whiteTheme: '#c6c6c6',
109
- g10: '#c6c6c6',
110
- g90: 'rgb(141 141 141 / 30%)',
111
- g100: 'rgb(141 141 141 / 30%)',
112
- };
113
-
114
- export {
115
- buttonSeparator,
116
- buttonPrimary,
117
- buttonSecondary,
118
- buttonTertiary,
119
- buttonDangerPrimary,
120
- buttonDangerSecondary,
121
- buttonDangerActive,
122
- buttonPrimaryActive,
123
- buttonSecondaryActive,
124
- buttonTertiaryActive,
125
- buttonDangerHover,
126
- buttonPrimaryHover,
127
- buttonSecondaryHover,
128
- buttonTertiaryHover,
129
- buttonDisabled,
130
- };
@@ -0,0 +1,25 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2025
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+
8
+ export declare const contentSwitcherBackground: {
9
+ whiteTheme: string;
10
+ g10: string;
11
+ g90: string;
12
+ g100: string;
13
+ };
14
+ export declare const contentSwitcherBackgroundHover: {
15
+ whiteTheme: string;
16
+ g10: string;
17
+ g90: string;
18
+ g100: string;
19
+ };
20
+ export declare const contentSwitcherSelected: {
21
+ whiteTheme: string;
22
+ g10: string;
23
+ g90: string;
24
+ g100: string;
25
+ };
@@ -0,0 +1,25 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2025
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+
8
+ export const contentSwitcherBackground = {
9
+ whiteTheme: '#e0e0e0',
10
+ g10: '#e0e0e0',
11
+ g90: 'rgba(0, 0, 0, 0)',
12
+ g100: 'rgba(0, 0, 0, 0)',
13
+ };
14
+ export const contentSwitcherBackgroundHover = {
15
+ whiteTheme: '#d1d1d1',
16
+ g10: '#d1d1d1',
17
+ g90: 'rgba(141, 141, 141, 0.12)',
18
+ g100: 'rgba(141, 141, 141, 0.12)',
19
+ };
20
+ export const contentSwitcherSelected = {
21
+ whiteTheme: '#ffffff',
22
+ g10: '#ffffff',
23
+ g90: 'rgba(141, 141, 141, 0.24)',
24
+ g100: 'rgba(141, 141, 141, 0.24)',
25
+ };
@@ -0,0 +1,65 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2025
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+
8
+ export declare const notificationActionHover: {
9
+ whiteTheme: string;
10
+ g10: string;
11
+ };
12
+ export declare const notificationActionTertiaryInverse: {
13
+ whiteTheme: string;
14
+ g10: string;
15
+ g90: string;
16
+ g100: string;
17
+ };
18
+ export declare const notificationActionTertiaryInverseActive: {
19
+ whiteTheme: string;
20
+ g10: string;
21
+ g90: string;
22
+ g100: string;
23
+ };
24
+ export declare const notificationActionTertiaryInverseHover: {
25
+ whiteTheme: string;
26
+ g10: string;
27
+ g90: string;
28
+ g100: string;
29
+ };
30
+ export declare const notificationActionTertiaryInverseText: {
31
+ whiteTheme: string;
32
+ g10: string;
33
+ g90: string;
34
+ g100: string;
35
+ };
36
+ export declare const notificationActionTertiaryInverseTextOnColorDisabled: {
37
+ whiteTheme: string;
38
+ g10: string;
39
+ g90: string;
40
+ g100: string;
41
+ };
42
+ export declare const notificationBackgroundError: {
43
+ whiteTheme: string;
44
+ g10: string;
45
+ g90: string;
46
+ g100: string;
47
+ };
48
+ export declare const notificationBackgroundInfo: {
49
+ whiteTheme: string;
50
+ g10: string;
51
+ g90: string;
52
+ g100: string;
53
+ };
54
+ export declare const notificationBackgroundSuccess: {
55
+ whiteTheme: string;
56
+ g10: string;
57
+ g90: string;
58
+ g100: string;
59
+ };
60
+ export declare const notificationBackgroundWarning: {
61
+ whiteTheme: string;
62
+ g10: string;
63
+ g90: string;
64
+ g100: string;
65
+ };
@@ -0,0 +1,65 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2025
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+
8
+ export const notificationActionHover = {
9
+ whiteTheme: '#ffffff',
10
+ g10: '#ffffff',
11
+ };
12
+ export const notificationActionTertiaryInverse = {
13
+ whiteTheme: '#ffffff',
14
+ g10: '#ffffff',
15
+ g90: '#0f62fe',
16
+ g100: '#0f62fe',
17
+ };
18
+ export const notificationActionTertiaryInverseActive = {
19
+ whiteTheme: '#c6c6c6',
20
+ g10: '#c6c6c6',
21
+ g90: '#002d9c',
22
+ g100: '#002d9c',
23
+ };
24
+ export const notificationActionTertiaryInverseHover = {
25
+ whiteTheme: '#f4f4f4',
26
+ g10: '#f4f4f4',
27
+ g90: '#0050e6',
28
+ g100: '#0050e6',
29
+ };
30
+ export const notificationActionTertiaryInverseText = {
31
+ whiteTheme: '#161616',
32
+ g10: '#161616',
33
+ g90: '#ffffff',
34
+ g100: '#ffffff',
35
+ };
36
+ export const notificationActionTertiaryInverseTextOnColorDisabled = {
37
+ whiteTheme: 'rgba(255, 255, 255, 0.25)',
38
+ g10: 'rgba(255, 255, 255, 0.25)',
39
+ g90: '#8d8d8d',
40
+ g100: '#8d8d8d',
41
+ };
42
+ export const notificationBackgroundError = {
43
+ whiteTheme: '#fff1f1',
44
+ g10: '#fff1f1',
45
+ g90: '#393939',
46
+ g100: '#262626',
47
+ };
48
+ export const notificationBackgroundInfo = {
49
+ whiteTheme: '#edf5ff',
50
+ g10: '#edf5ff',
51
+ g90: '#393939',
52
+ g100: '#262626',
53
+ };
54
+ export const notificationBackgroundSuccess = {
55
+ whiteTheme: '#defbe6',
56
+ g10: '#defbe6',
57
+ g90: '#393939',
58
+ g100: '#262626',
59
+ };
60
+ export const notificationBackgroundWarning = {
61
+ whiteTheme: '#fcf4d6',
62
+ g10: '#fcf4d6',
63
+ g90: '#393939',
64
+ g100: '#262626',
65
+ };
@@ -0,0 +1,63 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2025
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+
8
+ export declare const statusAccessibilityBackground: {
9
+ whiteTheme: string;
10
+ g10: string;
11
+ g90: string;
12
+ g100: string;
13
+ };
14
+ export declare const statusBlue: {
15
+ whiteTheme: string;
16
+ g10: string;
17
+ g90: string;
18
+ g100: string;
19
+ };
20
+ export declare const statusGray: {
21
+ whiteTheme: string;
22
+ g10: string;
23
+ g90: string;
24
+ g100: string;
25
+ };
26
+ export declare const statusGreen: {
27
+ whiteTheme: string;
28
+ g10: string;
29
+ g90: string;
30
+ g100: string;
31
+ };
32
+ export declare const statusOrange: {
33
+ whiteTheme: string;
34
+ g10: string;
35
+ g90: string;
36
+ g100: string;
37
+ };
38
+ export declare const statusOrangeOutline: {
39
+ whiteTheme: string;
40
+ g10: string;
41
+ };
42
+ export declare const statusPurple: {
43
+ whiteTheme: string;
44
+ g10: string;
45
+ g90: string;
46
+ g100: string;
47
+ };
48
+ export declare const statusRed: {
49
+ whiteTheme: string;
50
+ g10: string;
51
+ g90: string;
52
+ g100: string;
53
+ };
54
+ export declare const statusYellow: {
55
+ whiteTheme: string;
56
+ g10: string;
57
+ g90: string;
58
+ g100: string;
59
+ };
60
+ export declare const statusYellowOutline: {
61
+ whiteTheme: string;
62
+ g10: string;
63
+ };
@@ -0,0 +1,63 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2025
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+
8
+ export const statusAccessibilityBackground = {
9
+ whiteTheme: '#ffffff',
10
+ g10: '#ffffff',
11
+ g90: '#161616',
12
+ g100: '#161616',
13
+ };
14
+ export const statusBlue = {
15
+ whiteTheme: '#0043ce',
16
+ g10: '#0043ce',
17
+ g90: '#4589ff',
18
+ g100: '#4589ff',
19
+ };
20
+ export const statusGray = {
21
+ whiteTheme: '#6f6f6f',
22
+ g10: '#6f6f6f',
23
+ g90: '#8d8d8d',
24
+ g100: '#8d8d8d',
25
+ };
26
+ export const statusGreen = {
27
+ whiteTheme: '#24a148',
28
+ g10: '#24a148',
29
+ g90: '#42be65',
30
+ g100: '#42be65',
31
+ };
32
+ export const statusOrange = {
33
+ whiteTheme: '#ff832b',
34
+ g10: '#ff832b',
35
+ g90: '#ff832b',
36
+ g100: '#ff832b',
37
+ };
38
+ export const statusOrangeOutline = {
39
+ whiteTheme: '#ba4e00',
40
+ g10: '#ba4e00',
41
+ };
42
+ export const statusPurple = {
43
+ whiteTheme: '#8a3ffc',
44
+ g10: '#8a3ffc',
45
+ g90: '#a56eff',
46
+ g100: '#a56eff',
47
+ };
48
+ export const statusRed = {
49
+ whiteTheme: '#da1e28',
50
+ g10: '#da1e28',
51
+ g90: '#fa4d56',
52
+ g100: '#fa4d56',
53
+ };
54
+ export const statusYellow = {
55
+ whiteTheme: '#f1c21b',
56
+ g10: '#f1c21b',
57
+ g90: '#f1c21b',
58
+ g100: '#f1c21b',
59
+ };
60
+ export const statusYellowOutline = {
61
+ whiteTheme: '#8e6a00',
62
+ g10: '#8e6a00',
63
+ };