@carbon/themes 10.54.0-rc.0 → 11.0.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 (45) hide show
  1. package/es/index.js +1725 -1163
  2. package/index.scss +3 -3
  3. package/lib/index.js +1716 -1333
  4. package/package.json +8 -8
  5. package/scss/{modules/_config.scss → _config.scss} +0 -0
  6. package/scss/{modules/_theme.scss → _theme.scss} +0 -0
  7. package/scss/{modules/_themes.scss → _themes.scss} +0 -0
  8. package/scss/_tokens.scss +1 -1
  9. package/scss/{modules/_utilities.scss → _utilities.scss} +0 -0
  10. package/scss/compat/generated/_tokens.scss +2 -2
  11. package/scss/generated/_themes.scss +401 -2924
  12. package/scss/generated/_tokens.scss +300 -3171
  13. package/src/g10.js +145 -225
  14. package/src/g100.js +148 -220
  15. package/src/g90.js +147 -221
  16. package/src/index.js +7 -12
  17. package/src/{next/tokens → tokens}/Token.js +0 -0
  18. package/src/{next/tokens → tokens}/TokenFormat.js +0 -0
  19. package/src/{next/tokens → tokens}/TokenGroup.js +0 -0
  20. package/src/{next/tokens → tokens}/TokenSet.js +0 -0
  21. package/src/{next/tokens → tokens}/index.js +0 -0
  22. package/src/{next/tokens → tokens}/v11TokenGroup.js +0 -0
  23. package/src/{next/tokens → tokens}/v11TokenSet.js +0 -0
  24. package/src/{v9.js → v10/g10.js} +98 -70
  25. package/src/v10/g100.js +339 -0
  26. package/src/v10/g90.js +341 -0
  27. package/src/{next → v10}/index.js +4 -3
  28. package/{metadata.yml → src/v10/metadata.yml} +0 -0
  29. package/src/{tokens.js → v10/tokens.js} +0 -0
  30. package/src/v10/white.js +343 -0
  31. package/src/white.js +145 -225
  32. package/umd/index.js +1719 -1336
  33. package/scss/_mixins.scss +0 -39
  34. package/scss/_theme-maps.scss +0 -9
  35. package/scss/generated/_mixins.scss +0 -3622
  36. package/scss/index.scss +0 -8
  37. package/scss/modules/_tokens.scss +0 -8
  38. package/scss/modules/generated/_themes.scss +0 -432
  39. package/scss/modules/generated/_tokens.scss +0 -308
  40. package/scss/themes.scss +0 -10
  41. package/src/g80.js +0 -351
  42. package/src/next/g10.js +0 -268
  43. package/src/next/g100.js +0 -275
  44. package/src/next/g90.js +0 -275
  45. package/src/next/white.js +0 -271
package/src/next/g90.js DELETED
@@ -1,275 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2018, 2018
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
- import {
9
- // Blue
10
- blue40,
11
- blue60,
12
- blue70,
13
-
14
- // Gray
15
- gray10,
16
- gray30,
17
- gray40,
18
- gray50,
19
- gray50Hover,
20
- gray60,
21
- gray60Hover,
22
- gray70,
23
- gray70Hover,
24
- gray80,
25
- gray90,
26
- gray100,
27
-
28
- // Support
29
- blue30,
30
- blue50,
31
- green40,
32
- green50,
33
- yellow30,
34
- orange40,
35
- red30,
36
- red40,
37
- red60,
38
- purple40,
39
- purple50,
40
-
41
- // Constants
42
- white,
43
- black,
44
-
45
- // Tools
46
- rgba,
47
- gray90Hover,
48
- gray10Hover,
49
- gray80Hover,
50
- } from '@carbon/colors';
51
- import { adjustAlpha } from '../tools';
52
-
53
- // Background
54
- export const background = gray90;
55
- export const backgroundInverse = gray10;
56
- export const backgroundBrand = blue60;
57
- export const backgroundActive = adjustAlpha(gray50, 0.4);
58
- export const backgroundHover = adjustAlpha(gray50, 0.16);
59
- export const backgroundInverseHover = gray10Hover;
60
- export const backgroundSelected = adjustAlpha(gray50, 0.24);
61
- export const backgroundSelectedHover = adjustAlpha(gray50, 0.32);
62
-
63
- // Layer
64
- // layer-01
65
- export const layer01 = gray80;
66
- export const layerActive01 = gray60;
67
- export const layerHover01 = gray80Hover;
68
- export const layerSelected01 = gray70;
69
- export const layerSelectedHover01 = gray70Hover;
70
-
71
- // layer-02
72
- export const layer02 = gray70;
73
- export const layerActive02 = gray50;
74
- export const layerHover02 = gray70Hover;
75
- export const layerSelected02 = gray60;
76
- export const layerSelectedHover02 = gray60Hover;
77
-
78
- // layer-03
79
- export const layer03 = gray60;
80
- export const layerActive03 = gray80;
81
- export const layerHover03 = gray60Hover;
82
- export const layerSelected03 = gray50;
83
- export const layerSelectedHover03 = gray50Hover;
84
-
85
- // layer
86
- export const layerSelectedInverse = gray10;
87
- export const layerSelectedDisabled = gray40;
88
-
89
- // layer-accent-01
90
- export const layerAccent01 = gray70;
91
- export const layerAccentActive01 = gray50;
92
- export const layerAccentHover01 = gray70Hover;
93
-
94
- // layer-accent-02
95
- export const layerAccent02 = gray60;
96
- export const layerAccentActive02 = gray80;
97
- export const layerAccentHover02 = gray60Hover;
98
-
99
- // layer-accent-03
100
- export const layerAccent03 = gray50;
101
- export const layerAccentActive03 = gray70;
102
- export const layerAccentHover03 = gray50Hover;
103
-
104
- // Field
105
- // field-01
106
- export const field01 = gray80;
107
- export const fieldHover01 = gray80Hover;
108
-
109
- // field-02
110
- export const field02 = gray70;
111
- export const fieldHover02 = gray70Hover;
112
-
113
- // field-03
114
- export const field03 = gray60;
115
- export const fieldHover03 = gray60Hover;
116
-
117
- // Border
118
- // border-subtle-00
119
- export const borderSubtle00 = gray70;
120
-
121
- // border-subtle-01
122
- export const borderSubtle01 = gray70;
123
- export const borderSubtleSelected01 = gray60;
124
-
125
- // border-subtle-02
126
- export const borderSubtle02 = gray60;
127
- export const borderSubtleSelected02 = gray50;
128
-
129
- // border-subtle-03
130
- export const borderSubtle03 = gray50;
131
- export const borderSubtleSelected03 = gray40;
132
-
133
- // border-strong
134
- export const borderStrong01 = gray50;
135
- export const borderStrong02 = gray40;
136
- export const borderStrong03 = gray30;
137
-
138
- // border-inverse
139
- export const borderInverse = gray10;
140
-
141
- // border-interactive
142
- export const borderInteractive = blue50;
143
-
144
- // border
145
- export const borderDisabled = adjustAlpha(gray50, 0.5);
146
-
147
- // Text
148
- export const textPrimary = gray10;
149
- export const textSecondary = gray30;
150
- export const textPlaceholder = adjustAlpha(textPrimary, 0.4);
151
- export const textHelper = gray30;
152
- export const textError = red30;
153
- export const textInverse = gray100;
154
- export const textOnColor = white;
155
- export const textOnColorDisabled = adjustAlpha(textOnColor, 0.25);
156
- export const textDisabled = adjustAlpha(textPrimary, 0.25);
157
-
158
- // Link
159
- export const linkPrimary = blue40;
160
- export const linkPrimaryHover = blue30;
161
- export const linkSecondary = blue30;
162
- export const linkInverse = blue60;
163
- export const linkVisited = purple40;
164
- export const linkInverseActive = gray100;
165
- export const linkInverseHover = blue70;
166
-
167
- // Icon
168
- export const iconPrimary = gray10;
169
- export const iconSecondary = gray30;
170
- export const iconInverse = gray100;
171
- export const iconOnColor = white;
172
- export const iconOnColorDisabled = adjustAlpha(iconOnColor, 0.25);
173
- export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
174
-
175
- // Support
176
- export const supportError = red40;
177
- export const supportSuccess = green40;
178
- export const supportWarning = yellow30;
179
- export const supportInfo = blue50;
180
- export const supportErrorInverse = red60;
181
- export const supportSuccessInverse = green50;
182
- export const supportWarningInverse = yellow30;
183
- export const supportInfoInverse = blue70;
184
- export const supportCautionMinor = yellow30;
185
- export const supportCautionMajor = orange40;
186
- export const supportCautionUndefined = purple50;
187
-
188
- // Focus
189
- export const focus = white;
190
- export const focusInset = gray100;
191
- export const focusInverse = blue60;
192
-
193
- // Skeleton
194
- export const skeletonBackground = gray90Hover;
195
- export const skeletonElement = gray70;
196
-
197
- // Misc
198
- export const interactive = blue50;
199
- export const highlight = blue70;
200
- export const overlay = rgba(black, 0.65);
201
- export const toggleOff = gray50;
202
- export const shadow = rgba(black, 0.8);
203
-
204
- export {
205
- // Type
206
- caption01,
207
- caption02,
208
- label01,
209
- label02,
210
- helperText01,
211
- helperText02,
212
- bodyShort01,
213
- bodyLong01,
214
- bodyShort02,
215
- bodyLong02,
216
- code01,
217
- code02,
218
- heading01,
219
- productiveHeading01,
220
- heading02,
221
- productiveHeading02,
222
- productiveHeading03,
223
- productiveHeading04,
224
- productiveHeading05,
225
- productiveHeading06,
226
- productiveHeading07,
227
- expressiveHeading01,
228
- expressiveHeading02,
229
- expressiveHeading03,
230
- expressiveHeading04,
231
- expressiveHeading05,
232
- expressiveHeading06,
233
- expressiveParagraph01,
234
- quotation01,
235
- quotation02,
236
- display01,
237
- display02,
238
- display03,
239
- display04,
240
- // Layout
241
- // Spacing
242
- spacing01,
243
- spacing02,
244
- spacing03,
245
- spacing04,
246
- spacing05,
247
- spacing06,
248
- spacing07,
249
- spacing08,
250
- spacing09,
251
- spacing10,
252
- spacing11,
253
- spacing12,
254
- spacing13,
255
- // Fluid spacing
256
- fluidSpacing01,
257
- fluidSpacing02,
258
- fluidSpacing03,
259
- fluidSpacing04,
260
- // Containers
261
- container01,
262
- container02,
263
- container03,
264
- container04,
265
- container05,
266
- sizeXSmall,
267
- sizeSmall,
268
- sizeMedium,
269
- sizeLarge,
270
- sizeXLarge,
271
- size2XLarge,
272
- // Icon sizes
273
- iconSize01,
274
- iconSize02,
275
- } from './white';
package/src/next/white.js DELETED
@@ -1,271 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2018, 2018
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
- import {
9
- // Blue
10
- blue20,
11
- blue30,
12
- blue40,
13
- blue60,
14
- blue70,
15
-
16
- // Gray
17
- gray10,
18
- gray20,
19
- gray20Hover,
20
- gray30,
21
- gray40,
22
- gray50,
23
- gray60,
24
- gray70,
25
- gray80,
26
- gray100,
27
-
28
- // Support
29
- blue50,
30
- green40,
31
- green50,
32
- yellow30,
33
- orange40,
34
- red50,
35
- red60,
36
- purple60,
37
-
38
- // Constants
39
- white,
40
- whiteHover,
41
- gray80Hover,
42
- gray10Hover,
43
- } from '@carbon/colors';
44
- import { adjustAlpha } from '../tools';
45
-
46
- // Background
47
- export const background = white;
48
- export const backgroundInverse = gray80;
49
- export const backgroundBrand = blue60;
50
- export const backgroundActive = adjustAlpha(gray50, 0.5);
51
- export const backgroundHover = adjustAlpha(gray50, 0.12);
52
- export const backgroundInverseHover = gray80Hover;
53
- export const backgroundSelected = adjustAlpha(gray50, 0.2);
54
- export const backgroundSelectedHover = adjustAlpha(gray50, 0.32);
55
-
56
- // Layer
57
- // layer-01
58
- export const layer01 = gray10;
59
- export const layerActive01 = gray30;
60
- export const layerHover01 = gray10Hover;
61
- export const layerSelected01 = gray20;
62
- export const layerSelectedHover01 = gray20Hover;
63
-
64
- // layer-02
65
- export const layer02 = white;
66
- export const layerActive02 = gray30;
67
- export const layerHover02 = whiteHover;
68
- export const layerSelected02 = gray20;
69
- export const layerSelectedHover02 = gray20Hover;
70
-
71
- // layer-03
72
- export const layer03 = gray10;
73
- export const layerActive03 = gray30;
74
- export const layerHover03 = gray10Hover;
75
- export const layerSelected03 = gray20;
76
- export const layerSelectedHover03 = gray20Hover;
77
-
78
- // layer
79
- export const layerSelectedInverse = gray100;
80
- export const layerSelectedDisabled = gray50;
81
-
82
- // layer-accent-01
83
- export const layerAccent01 = gray20;
84
- export const layerAccentActive01 = gray40;
85
- export const layerAccentHover01 = gray20Hover;
86
-
87
- // layer-accent-02
88
- export const layerAccent02 = gray20;
89
- export const layerAccentActive02 = gray40;
90
- export const layerAccentHover02 = gray20Hover;
91
-
92
- // layer-accent-03
93
- export const layerAccent03 = gray20;
94
- export const layerAccentActive03 = gray40;
95
- export const layerAccentHover03 = gray20Hover;
96
-
97
- // Field
98
- // field-01
99
- export const field01 = gray10;
100
- export const fieldHover01 = gray10Hover;
101
-
102
- // field-02
103
- export const field02 = white;
104
- export const fieldHover02 = whiteHover;
105
-
106
- // field-03
107
- export const field03 = gray10;
108
- export const fieldHover03 = gray10Hover;
109
-
110
- // Border
111
- // border-subtle-00
112
- export const borderSubtle00 = gray20;
113
-
114
- // border-subtle-01
115
- export const borderSubtle01 = gray20;
116
- export const borderSubtleSelected01 = gray30;
117
-
118
- // border-subtle-02
119
- export const borderSubtle02 = gray20;
120
- export const borderSubtleSelected02 = gray30;
121
-
122
- // border-subtle-03
123
- export const borderSubtle03 = gray20;
124
- export const borderSubtleSelected03 = gray30;
125
-
126
- // border-strong
127
- export const borderStrong01 = gray50;
128
- export const borderStrong02 = gray50;
129
- export const borderStrong03 = gray50;
130
-
131
- // border-inverse
132
- export const borderInverse = gray100;
133
-
134
- // border-interactive
135
- export const borderInteractive = blue60;
136
-
137
- // border
138
- export const borderDisabled = gray30;
139
-
140
- // Text
141
- export const textPrimary = gray100;
142
- export const textSecondary = gray70;
143
- export const textPlaceholder = adjustAlpha(textPrimary, 0.4);
144
- export const textHelper = gray60;
145
- export const textError = red60;
146
- export const textInverse = white;
147
- export const textOnColor = white;
148
- export const textOnColorDisabled = gray50;
149
- export const textDisabled = adjustAlpha(textPrimary, 0.25);
150
-
151
- // Link
152
- export const linkPrimary = blue60;
153
- export const linkPrimaryHover = blue70;
154
- export const linkSecondary = blue70;
155
- export const linkInverse = blue40;
156
- export const linkVisited = purple60;
157
- export const linkInverseActive = gray10;
158
- export const linkInverseHover = blue30;
159
-
160
- // Icon
161
- export const iconPrimary = gray100;
162
- export const iconSecondary = gray70;
163
- export const iconInverse = white;
164
- export const iconOnColor = white;
165
- export const iconOnColorDisabled = gray50;
166
- export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
167
-
168
- // Support
169
- export const supportError = red60;
170
- export const supportSuccess = green50;
171
- export const supportWarning = yellow30;
172
- export const supportInfo = blue70;
173
- export const supportErrorInverse = red50;
174
- export const supportSuccessInverse = green40;
175
- export const supportWarningInverse = yellow30;
176
- export const supportInfoInverse = blue50;
177
- export const supportCautionMinor = yellow30;
178
- export const supportCautionMajor = orange40;
179
- export const supportCautionUndefined = purple60;
180
-
181
- // Focus
182
- export const focus = blue60;
183
- export const focusInset = white;
184
- export const focusInverse = white;
185
-
186
- // Skeleton
187
- export const skeletonBackground = whiteHover;
188
- export const skeletonElement = gray30;
189
-
190
- // Misc
191
- export const interactive = blue60;
192
- export const highlight = blue20;
193
- export const overlay = 'rgba(22, 22, 22, 0.5)';
194
- export const toggleOff = gray50;
195
- export const shadow = 'rgba(0, 0, 0, 0.3)';
196
-
197
- // Type
198
- export {
199
- caption01,
200
- caption02,
201
- label01,
202
- label02,
203
- helperText01,
204
- helperText02,
205
- bodyShort01,
206
- bodyLong01,
207
- bodyShort02,
208
- bodyLong02,
209
- code01,
210
- code02,
211
- heading01,
212
- productiveHeading01,
213
- heading02,
214
- productiveHeading02,
215
- productiveHeading03,
216
- productiveHeading04,
217
- productiveHeading05,
218
- productiveHeading06,
219
- productiveHeading07,
220
- expressiveHeading01,
221
- expressiveHeading02,
222
- expressiveHeading03,
223
- expressiveHeading04,
224
- expressiveHeading05,
225
- expressiveHeading06,
226
- expressiveParagraph01,
227
- quotation01,
228
- quotation02,
229
- display01,
230
- display02,
231
- display03,
232
- display04,
233
- } from '@carbon/type';
234
-
235
- // Layout
236
- // Spacing
237
- export {
238
- spacing01,
239
- spacing02,
240
- spacing03,
241
- spacing04,
242
- spacing05,
243
- spacing06,
244
- spacing07,
245
- spacing08,
246
- spacing09,
247
- spacing10,
248
- spacing11,
249
- spacing12,
250
- spacing13,
251
- // Fluid spacing
252
- fluidSpacing01,
253
- fluidSpacing02,
254
- fluidSpacing03,
255
- fluidSpacing04,
256
- // Containers
257
- container01,
258
- container02,
259
- container03,
260
- container04,
261
- container05,
262
- sizeXSmall,
263
- sizeSmall,
264
- sizeMedium,
265
- sizeLarge,
266
- sizeXLarge,
267
- size2XLarge,
268
- // Icon sizes
269
- iconSize01,
270
- iconSize02,
271
- } from '@carbon/layout';