@carbon/themes 12.0.0-alpha.0 → 12.0.0-alpha.2

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 (75) hide show
  1. package/es/index.js +5572 -0
  2. package/lib/__tests__/themes-test.d.ts +1 -0
  3. package/lib/__tests__/tools-test.d.ts +1 -0
  4. package/lib/tokens/__tests__/Token-test.d.ts +1 -0
  5. package/lib/tokens/__tests__/TokenFormat-test.d.ts +1 -0
  6. package/lib/tokens/__tests__/TokenGroup-test.d.ts +1 -0
  7. package/lib/tokens/__tests__/TokenSet-test.d.ts +1 -0
  8. package/lib/tokens/__tests__/metadata-test.d.ts +1 -0
  9. package/lib/tokens/__tests__/v11-test.d.ts +1 -0
  10. package/lib/v10/__tests__/themes-test.d.ts +1 -0
  11. package/lib/v10/__tests__/tokens-test.d.ts +1 -0
  12. package/package.json +13 -5
  13. package/umd/index.js +6322 -0
  14. package/docs/sass.md +0 -189
  15. package/js/generated/component-tokens/button.d.ts +0 -98
  16. package/js/generated/component-tokens/button.js +0 -98
  17. package/js/generated/component-tokens/content-switcher.d.ts +0 -25
  18. package/js/generated/component-tokens/content-switcher.js +0 -25
  19. package/js/generated/component-tokens/notification.d.ts +0 -65
  20. package/js/generated/component-tokens/notification.js +0 -65
  21. package/js/generated/component-tokens/status.d.ts +0 -63
  22. package/js/generated/component-tokens/status.js +0 -63
  23. package/js/generated/component-tokens/tag.d.ts +0 -247
  24. package/js/generated/component-tokens/tag.js +0 -247
  25. package/js/generated/themes/g10.d.ts +0 -242
  26. package/js/generated/themes/g10.js +0 -242
  27. package/js/generated/themes/g100.d.ts +0 -242
  28. package/js/generated/themes/g100.js +0 -242
  29. package/js/generated/themes/g90.d.ts +0 -242
  30. package/js/generated/themes/g90.js +0 -242
  31. package/js/generated/themes/white.d.ts +0 -242
  32. package/js/generated/themes/white.js +0 -242
  33. package/src/dtcg/README.md +0 -336
  34. package/src/dtcg/color-palette.json +0 -4424
  35. package/src/dtcg/components/button.json +0 -193
  36. package/src/dtcg/components/content-switcher.json +0 -60
  37. package/src/dtcg/components/notification.json +0 -130
  38. package/src/dtcg/components/status.json +0 -122
  39. package/src/dtcg/components/tag.json +0 -486
  40. package/src/dtcg/themes.json +0 -3356
  41. package/src/index.ts +0 -129
  42. package/src/tokens/Token.ts +0 -41
  43. package/src/tokens/TokenFormat.ts +0 -93
  44. package/src/tokens/TokenGroup.ts +0 -185
  45. package/src/tokens/TokenSet.ts +0 -91
  46. package/src/tokens/components.ts +0 -120
  47. package/src/tokens/index.ts +0 -59
  48. package/src/tokens/layout.ts +0 -39
  49. package/src/tokens/type.ts +0 -49
  50. package/src/tokens/types.ts +0 -28
  51. package/src/tokens/v10.ts +0 -188
  52. package/src/tokens/v11TokenGroup.ts +0 -546
  53. package/src/tokens/v11TokenSet.ts +0 -93
  54. package/src/tools.ts +0 -69
  55. package/src/v10/g10.ts +0 -349
  56. package/src/v10/g100.ts +0 -348
  57. package/src/v10/g90.ts +0 -350
  58. package/src/v10/index.ts +0 -22
  59. package/src/v10/metadata.yml +0 -217
  60. package/src/v10/tokens.ts +0 -397
  61. package/src/v10/white.ts +0 -352
  62. package/style-dictionary/formats/js-component-tokens.js +0 -128
  63. package/style-dictionary/formats/js-themes.js +0 -84
  64. package/style-dictionary/formats/scss-component-tokens.js +0 -149
  65. package/style-dictionary/formats/scss-themes.js +0 -127
  66. package/style-dictionary/formats/scss-tokens.js +0 -91
  67. package/style-dictionary/preprocessors/component-tokens.js +0 -172
  68. package/style-dictionary/preprocessors/dual-role.js +0 -157
  69. package/style-dictionary/preprocessors/theme-metadata.js +0 -46
  70. package/style-dictionary/sd.config.js +0 -449
  71. package/style-dictionary/transforms/alpha-modifier.js +0 -68
  72. package/style-dictionary/transforms/color-flatten.js +0 -79
  73. package/test-dtcg.scss +0 -28
  74. package/tsconfig.json +0 -8
  75. package/tsconfig.types.json +0 -10
@@ -1,63 +0,0 @@
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
- };
@@ -1,247 +0,0 @@
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 tagBackgroundBlue: {
9
- whiteTheme: string;
10
- g10: string;
11
- g90: string;
12
- g100: string;
13
- };
14
- export declare const tagBackgroundCoolGray: {
15
- whiteTheme: string;
16
- g10: string;
17
- g90: string;
18
- g100: string;
19
- };
20
- export declare const tagBackgroundCyan: {
21
- whiteTheme: string;
22
- g10: string;
23
- g90: string;
24
- g100: string;
25
- };
26
- export declare const tagBackgroundGray: {
27
- whiteTheme: string;
28
- g10: string;
29
- g90: string;
30
- g100: string;
31
- };
32
- export declare const tagBackgroundGreen: {
33
- whiteTheme: string;
34
- g10: string;
35
- g90: string;
36
- g100: string;
37
- };
38
- export declare const tagBackgroundMagenta: {
39
- whiteTheme: string;
40
- g10: string;
41
- g90: string;
42
- g100: string;
43
- };
44
- export declare const tagBackgroundPurple: {
45
- whiteTheme: string;
46
- g10: string;
47
- g90: string;
48
- g100: string;
49
- };
50
- export declare const tagBackgroundRed: {
51
- whiteTheme: string;
52
- g10: string;
53
- g90: string;
54
- g100: string;
55
- };
56
- export declare const tagBackgroundTeal: {
57
- whiteTheme: string;
58
- g10: string;
59
- g90: string;
60
- g100: string;
61
- };
62
- export declare const tagBackgroundWarmGray: {
63
- whiteTheme: string;
64
- g10: string;
65
- g90: string;
66
- g100: string;
67
- };
68
- export declare const tagBorderBlue: {
69
- whiteTheme: string;
70
- g10: string;
71
- g90: string;
72
- g100: string;
73
- };
74
- export declare const tagBorderCoolGray: {
75
- whiteTheme: string;
76
- g10: string;
77
- g90: string;
78
- g100: string;
79
- };
80
- export declare const tagBorderCyan: {
81
- whiteTheme: string;
82
- g10: string;
83
- g90: string;
84
- g100: string;
85
- };
86
- export declare const tagBorderGray: {
87
- whiteTheme: string;
88
- g10: string;
89
- g90: string;
90
- g100: string;
91
- };
92
- export declare const tagBorderGreen: {
93
- whiteTheme: string;
94
- g10: string;
95
- g90: string;
96
- g100: string;
97
- };
98
- export declare const tagBorderMagenta: {
99
- whiteTheme: string;
100
- g10: string;
101
- g90: string;
102
- g100: string;
103
- };
104
- export declare const tagBorderPurple: {
105
- whiteTheme: string;
106
- g10: string;
107
- g90: string;
108
- g100: string;
109
- };
110
- export declare const tagBorderRed: {
111
- whiteTheme: string;
112
- g10: string;
113
- g90: string;
114
- g100: string;
115
- };
116
- export declare const tagBorderTeal: {
117
- whiteTheme: string;
118
- g10: string;
119
- g90: string;
120
- g100: string;
121
- };
122
- export declare const tagBorderWarmGray: {
123
- whiteTheme: string;
124
- g10: string;
125
- g90: string;
126
- g100: string;
127
- };
128
- export declare const tagColorBlue: {
129
- whiteTheme: string;
130
- g10: string;
131
- g90: string;
132
- g100: string;
133
- };
134
- export declare const tagColorCoolGray: {
135
- whiteTheme: string;
136
- g10: string;
137
- g90: string;
138
- g100: string;
139
- };
140
- export declare const tagColorCyan: {
141
- whiteTheme: string;
142
- g10: string;
143
- g90: string;
144
- g100: string;
145
- };
146
- export declare const tagColorGray: {
147
- whiteTheme: string;
148
- g10: string;
149
- g90: string;
150
- g100: string;
151
- };
152
- export declare const tagColorGreen: {
153
- whiteTheme: string;
154
- g10: string;
155
- g90: string;
156
- g100: string;
157
- };
158
- export declare const tagColorMagenta: {
159
- whiteTheme: string;
160
- g10: string;
161
- g90: string;
162
- g100: string;
163
- };
164
- export declare const tagColorPurple: {
165
- whiteTheme: string;
166
- g10: string;
167
- g90: string;
168
- g100: string;
169
- };
170
- export declare const tagColorRed: {
171
- whiteTheme: string;
172
- g10: string;
173
- g90: string;
174
- g100: string;
175
- };
176
- export declare const tagColorTeal: {
177
- whiteTheme: string;
178
- g10: string;
179
- g90: string;
180
- g100: string;
181
- };
182
- export declare const tagColorWarmGray: {
183
- whiteTheme: string;
184
- g10: string;
185
- g90: string;
186
- g100: string;
187
- };
188
- export declare const tagHoverBlue: {
189
- whiteTheme: string;
190
- g10: string;
191
- g90: string;
192
- g100: string;
193
- };
194
- export declare const tagHoverCoolGray: {
195
- whiteTheme: string;
196
- g10: string;
197
- g90: string;
198
- g100: string;
199
- };
200
- export declare const tagHoverCyan: {
201
- whiteTheme: string;
202
- g10: string;
203
- g90: string;
204
- g100: string;
205
- };
206
- export declare const tagHoverGray: {
207
- whiteTheme: string;
208
- g10: string;
209
- g90: string;
210
- g100: string;
211
- };
212
- export declare const tagHoverGreen: {
213
- whiteTheme: string;
214
- g10: string;
215
- g90: string;
216
- g100: string;
217
- };
218
- export declare const tagHoverMagenta: {
219
- whiteTheme: string;
220
- g10: string;
221
- g90: string;
222
- g100: string;
223
- };
224
- export declare const tagHoverPurple: {
225
- whiteTheme: string;
226
- g10: string;
227
- g90: string;
228
- g100: string;
229
- };
230
- export declare const tagHoverRed: {
231
- whiteTheme: string;
232
- g10: string;
233
- g90: string;
234
- g100: string;
235
- };
236
- export declare const tagHoverTeal: {
237
- whiteTheme: string;
238
- g10: string;
239
- g90: string;
240
- g100: string;
241
- };
242
- export declare const tagHoverWarmGray: {
243
- whiteTheme: string;
244
- g10: string;
245
- g90: string;
246
- g100: string;
247
- };
@@ -1,247 +0,0 @@
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 tagBackgroundBlue = {
9
- whiteTheme: '#d0e2ff',
10
- g10: '#d0e2ff',
11
- g90: '#0043ce',
12
- g100: '#0043ce',
13
- };
14
- export const tagBackgroundCoolGray = {
15
- whiteTheme: '#dde1e6',
16
- g10: '#dde1e6',
17
- g90: '#4d5358',
18
- g100: '#4d5358',
19
- };
20
- export const tagBackgroundCyan = {
21
- whiteTheme: '#bae6ff',
22
- g10: '#bae6ff',
23
- g90: '#00539a',
24
- g100: '#00539a',
25
- };
26
- export const tagBackgroundGray = {
27
- whiteTheme: '#e0e0e0',
28
- g10: '#e0e0e0',
29
- g90: '#525252',
30
- g100: '#525252',
31
- };
32
- export const tagBackgroundGreen = {
33
- whiteTheme: '#a7f0ba',
34
- g10: '#a7f0ba',
35
- g90: '#0e6027',
36
- g100: '#0e6027',
37
- };
38
- export const tagBackgroundMagenta = {
39
- whiteTheme: '#ffd6e8',
40
- g10: '#ffd6e8',
41
- g90: '#9f1853',
42
- g100: '#9f1853',
43
- };
44
- export const tagBackgroundPurple = {
45
- whiteTheme: '#e8daff',
46
- g10: '#e8daff',
47
- g90: '#6929c4',
48
- g100: '#6929c4',
49
- };
50
- export const tagBackgroundRed = {
51
- whiteTheme: '#ffd7d9',
52
- g10: '#ffd7d9',
53
- g90: '#a2191f',
54
- g100: '#a2191f',
55
- };
56
- export const tagBackgroundTeal = {
57
- whiteTheme: '#9ef0f0',
58
- g10: '#9ef0f0',
59
- g90: '#005d5d',
60
- g100: '#005d5d',
61
- };
62
- export const tagBackgroundWarmGray = {
63
- whiteTheme: '#e5e0df',
64
- g10: '#e5e0df',
65
- g90: '#565151',
66
- g100: '#565151',
67
- };
68
- export const tagBorderBlue = {
69
- whiteTheme: '#78a9ff',
70
- g10: '#78a9ff',
71
- g90: '#4589ff',
72
- g100: '#4589ff',
73
- };
74
- export const tagBorderCoolGray = {
75
- whiteTheme: '#a2a9b0',
76
- g10: '#a2a9b0',
77
- g90: '#878d96',
78
- g100: '#878d96',
79
- };
80
- export const tagBorderCyan = {
81
- whiteTheme: '#33b1ff',
82
- g10: '#33b1ff',
83
- g90: '#1192e8',
84
- g100: '#1192e8',
85
- };
86
- export const tagBorderGray = {
87
- whiteTheme: '#a8a8a8',
88
- g10: '#a8a8a8',
89
- g90: '#8d8d8d',
90
- g100: '#8d8d8d',
91
- };
92
- export const tagBorderGreen = {
93
- whiteTheme: '#42be65',
94
- g10: '#42be65',
95
- g90: '#24a148',
96
- g100: '#24a148',
97
- };
98
- export const tagBorderMagenta = {
99
- whiteTheme: '#ff7eb6',
100
- g10: '#ff7eb6',
101
- g90: '#ee5396',
102
- g100: '#ee5396',
103
- };
104
- export const tagBorderPurple = {
105
- whiteTheme: '#be95ff',
106
- g10: '#be95ff',
107
- g90: '#a56eff',
108
- g100: '#a56eff',
109
- };
110
- export const tagBorderRed = {
111
- whiteTheme: '#ff8389',
112
- g10: '#ff8389',
113
- g90: '#fa4d56',
114
- g100: '#fa4d56',
115
- };
116
- export const tagBorderTeal = {
117
- whiteTheme: '#08bdba',
118
- g10: '#08bdba',
119
- g90: '#009d9a',
120
- g100: '#009d9a',
121
- };
122
- export const tagBorderWarmGray = {
123
- whiteTheme: '#ada8a8',
124
- g10: '#ada8a8',
125
- g90: '#8f8b8b',
126
- g100: '#8f8b8b',
127
- };
128
- export const tagColorBlue = {
129
- whiteTheme: '#0043ce',
130
- g10: '#0043ce',
131
- g90: '#d0e2ff',
132
- g100: '#d0e2ff',
133
- };
134
- export const tagColorCoolGray = {
135
- whiteTheme: '#121619',
136
- g10: '#121619',
137
- g90: '#f2f4f8',
138
- g100: '#f2f4f8',
139
- };
140
- export const tagColorCyan = {
141
- whiteTheme: '#00539a',
142
- g10: '#00539a',
143
- g90: '#bae6ff',
144
- g100: '#bae6ff',
145
- };
146
- export const tagColorGray = {
147
- whiteTheme: '#161616',
148
- g10: '#161616',
149
- g90: '#f4f4f4',
150
- g100: '#f4f4f4',
151
- };
152
- export const tagColorGreen = {
153
- whiteTheme: '#0e6027',
154
- g10: '#0e6027',
155
- g90: '#a7f0ba',
156
- g100: '#a7f0ba',
157
- };
158
- export const tagColorMagenta = {
159
- whiteTheme: '#9f1853',
160
- g10: '#9f1853',
161
- g90: '#ffd6e8',
162
- g100: '#ffd6e8',
163
- };
164
- export const tagColorPurple = {
165
- whiteTheme: '#6929c4',
166
- g10: '#6929c4',
167
- g90: '#e8daff',
168
- g100: '#e8daff',
169
- };
170
- export const tagColorRed = {
171
- whiteTheme: '#a2191f',
172
- g10: '#a2191f',
173
- g90: '#ffd7d9',
174
- g100: '#ffd7d9',
175
- };
176
- export const tagColorTeal = {
177
- whiteTheme: '#005d5d',
178
- g10: '#005d5d',
179
- g90: '#9ef0f0',
180
- g100: '#9ef0f0',
181
- };
182
- export const tagColorWarmGray = {
183
- whiteTheme: '#171414',
184
- g10: '#171414',
185
- g90: '#f7f3f2',
186
- g100: '#f7f3f2',
187
- };
188
- export const tagHoverBlue = {
189
- whiteTheme: '#b8d3ff',
190
- g10: '#b8d3ff',
191
- g90: '#0053ff',
192
- g100: '#0053ff',
193
- };
194
- export const tagHoverCoolGray = {
195
- whiteTheme: '#cdd3da',
196
- g10: '#cdd3da',
197
- g90: '#5d646a',
198
- g100: '#5d646a',
199
- };
200
- export const tagHoverCyan = {
201
- whiteTheme: '#99daff',
202
- g10: '#99daff',
203
- g90: '#0066bd',
204
- g100: '#0066bd',
205
- };
206
- export const tagHoverGray = {
207
- whiteTheme: '#d1d1d1',
208
- g10: '#d1d1d1',
209
- g90: '#636363',
210
- g100: '#636363',
211
- };
212
- export const tagHoverGreen = {
213
- whiteTheme: '#74e792',
214
- g10: '#74e792',
215
- g90: '#11742f',
216
- g100: '#11742f',
217
- };
218
- export const tagHoverMagenta = {
219
- whiteTheme: '#ffbdda',
220
- g10: '#ffbdda',
221
- g90: '#bf1d63',
222
- g100: '#bf1d63',
223
- };
224
- export const tagHoverPurple = {
225
- whiteTheme: '#dcc7ff',
226
- g10: '#dcc7ff',
227
- g90: '#7c3dd6',
228
- g100: '#7c3dd6',
229
- };
230
- export const tagHoverRed = {
231
- whiteTheme: '#ffc2c5',
232
- g10: '#ffc2c5',
233
- g90: '#c21e25',
234
- g100: '#c21e25',
235
- };
236
- export const tagHoverTeal = {
237
- whiteTheme: '#57e5e5',
238
- g10: '#57e5e5',
239
- g90: '#007070',
240
- g100: '#007070',
241
- };
242
- export const tagHoverWarmGray = {
243
- whiteTheme: '#d8d0cf',
244
- g10: '#d8d0cf',
245
- g90: '#696363',
246
- g100: '#696363',
247
- };