@carbon/themes 10.37.0 → 10.39.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/README.md +7 -0
- package/docs/sass.md +96 -0
- package/index.scss +1 -1
- package/package.json +10 -7
- package/scss/modules/_config.scss +8 -0
- package/scss/modules/_theme.scss +22 -18
- package/scss/modules/_themes.scss +1 -0
- package/scss/modules/generated/_themes.scss +406 -567
- package/scss/modules/generated/_tokens.scss +300 -219
- package/src/next/g10.js +267 -0
- package/src/next/g100.js +270 -0
- package/src/next/g90.js +269 -0
- package/src/next/index.js +21 -0
- package/src/next/tokens/TokenFormat.js +51 -0
- package/src/next/tokens/index.js +3 -1
- package/src/next/tokens/v11TokenGroup.js +4 -4
- package/src/next/white.js +269 -0
package/src/next/g90.js
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
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
|
+
} from '@carbon/colors';
|
|
44
|
+
import { adjustLightness } from '../tools';
|
|
45
|
+
|
|
46
|
+
// Background
|
|
47
|
+
export const background = gray90;
|
|
48
|
+
export const backgroundInverse = gray10;
|
|
49
|
+
export const backgroundBrand = blue60;
|
|
50
|
+
export const backgroundActive = gray80;
|
|
51
|
+
export const backgroundHover = adjustLightness(background, 5);
|
|
52
|
+
export const backgroundInverseHover = adjustLightness(backgroundInverse, -5);
|
|
53
|
+
export const backgroundSelected = gray80;
|
|
54
|
+
export const backgroundSelectedHover = adjustLightness(backgroundSelected, 6);
|
|
55
|
+
|
|
56
|
+
// Layer
|
|
57
|
+
// layer-01
|
|
58
|
+
export const layer01 = gray80;
|
|
59
|
+
export const layerActive01 = gray60;
|
|
60
|
+
export const layerHover01 = adjustLightness(layer01, 6);
|
|
61
|
+
export const layerSelected01 = gray70;
|
|
62
|
+
export const layerSelectedHover01 = gray70Hover;
|
|
63
|
+
|
|
64
|
+
// layer-02
|
|
65
|
+
export const layer02 = gray70;
|
|
66
|
+
export const layerActive02 = gray50;
|
|
67
|
+
export const layerHover02 = gray70Hover;
|
|
68
|
+
export const layerSelected02 = gray60;
|
|
69
|
+
export const layerSelectedHover02 = gray60Hover;
|
|
70
|
+
|
|
71
|
+
// layer-03
|
|
72
|
+
export const layer03 = gray60;
|
|
73
|
+
export const layerActive03 = gray80;
|
|
74
|
+
export const layerHover03 = gray60Hover;
|
|
75
|
+
export const layerSelected03 = gray50;
|
|
76
|
+
export const layerSelectedHover03 = gray50Hover;
|
|
77
|
+
|
|
78
|
+
// layer
|
|
79
|
+
export const layerDisabled = gray80;
|
|
80
|
+
export const layerSelectedInverse = gray10;
|
|
81
|
+
export const layerSelectedDisabled = gray40;
|
|
82
|
+
|
|
83
|
+
// layer-accent-01
|
|
84
|
+
export const layerAccent01 = gray70;
|
|
85
|
+
export const layerAccentActive01 = gray50;
|
|
86
|
+
export const layerAccentHover01 = adjustLightness(layerAccent01, 7);
|
|
87
|
+
|
|
88
|
+
// layer-accent-02
|
|
89
|
+
export const layerAccent02 = gray60;
|
|
90
|
+
export const layerAccentActive02 = gray80;
|
|
91
|
+
export const layerAccentHover02 = adjustLightness(layerAccent01, -7);
|
|
92
|
+
|
|
93
|
+
// layer-accent-03
|
|
94
|
+
export const layerAccent03 = gray50;
|
|
95
|
+
export const layerAccentActive03 = gray70;
|
|
96
|
+
export const layerAccentHover03 = gray50Hover;
|
|
97
|
+
|
|
98
|
+
// Field
|
|
99
|
+
// field-01
|
|
100
|
+
export const field01 = gray80;
|
|
101
|
+
export const fieldHover01 = adjustLightness(field01, 6);
|
|
102
|
+
|
|
103
|
+
// field-02
|
|
104
|
+
export const field02 = gray70;
|
|
105
|
+
export const fieldHover02 = gray70Hover;
|
|
106
|
+
|
|
107
|
+
// field-03
|
|
108
|
+
export const field03 = gray60;
|
|
109
|
+
export const fieldHover03 = gray60Hover;
|
|
110
|
+
|
|
111
|
+
// field
|
|
112
|
+
export const fieldDisabled = gray80;
|
|
113
|
+
|
|
114
|
+
// Border
|
|
115
|
+
// border-subtle-00
|
|
116
|
+
export const borderSubtle00 = gray70;
|
|
117
|
+
|
|
118
|
+
// border-subtle-01
|
|
119
|
+
export const borderSubtle01 = gray70;
|
|
120
|
+
export const borderSubtleSelected01 = gray60;
|
|
121
|
+
|
|
122
|
+
// border-subtle-02
|
|
123
|
+
export const borderSubtle02 = gray60;
|
|
124
|
+
export const borderSubtleSelected02 = gray50;
|
|
125
|
+
|
|
126
|
+
// border-subtle-03
|
|
127
|
+
export const borderSubtle03 = gray50;
|
|
128
|
+
export const borderSubtleSelected03 = gray40;
|
|
129
|
+
|
|
130
|
+
// border-strong
|
|
131
|
+
export const borderStrong01 = gray50;
|
|
132
|
+
export const borderStrong02 = gray40;
|
|
133
|
+
export const borderStrong03 = gray30;
|
|
134
|
+
|
|
135
|
+
// border-inverse
|
|
136
|
+
export const borderInverse = gray10;
|
|
137
|
+
|
|
138
|
+
// border-interactive
|
|
139
|
+
export const borderInteractive = blue50;
|
|
140
|
+
|
|
141
|
+
// border
|
|
142
|
+
export const borderDisabled = gray80;
|
|
143
|
+
|
|
144
|
+
// Text
|
|
145
|
+
export const textPrimary = gray10;
|
|
146
|
+
export const textSecondary = gray30;
|
|
147
|
+
export const textPlaceholder = gray60;
|
|
148
|
+
export const textHelper = gray50;
|
|
149
|
+
export const textError = red30;
|
|
150
|
+
export const textInverse = gray100;
|
|
151
|
+
export const textOnColor = white;
|
|
152
|
+
export const textOnColorDisabled = gray40;
|
|
153
|
+
export const textDisabled = gray60;
|
|
154
|
+
|
|
155
|
+
// Link
|
|
156
|
+
export const linkPrimary = blue40;
|
|
157
|
+
export const linkPrimaryHover = blue30;
|
|
158
|
+
export const linkSecondary = blue30;
|
|
159
|
+
export const linkInverse = blue60;
|
|
160
|
+
export const linkVisited = purple40;
|
|
161
|
+
|
|
162
|
+
// Icon
|
|
163
|
+
export const iconPrimary = gray10;
|
|
164
|
+
export const iconSecondary = gray30;
|
|
165
|
+
export const iconInverse = gray100;
|
|
166
|
+
export const iconOnColor = white;
|
|
167
|
+
export const iconOnColorDisabled = gray40;
|
|
168
|
+
export const iconDisabled = gray60;
|
|
169
|
+
|
|
170
|
+
// Support
|
|
171
|
+
export const supportError = red40;
|
|
172
|
+
export const supportSuccess = green40;
|
|
173
|
+
export const supportWarning = yellow30;
|
|
174
|
+
export const supportInfo = blue50;
|
|
175
|
+
export const supportErrorInverse = red60;
|
|
176
|
+
export const supportSuccessInverse = green50;
|
|
177
|
+
export const supportWarningInverse = yellow30;
|
|
178
|
+
export const supportInfoInverse = blue60;
|
|
179
|
+
export const supportCautionMinor = yellow30;
|
|
180
|
+
export const supportCautionMajor = orange40;
|
|
181
|
+
export const supportCautionUndefined = purple50;
|
|
182
|
+
|
|
183
|
+
// Focus
|
|
184
|
+
export const focus = white;
|
|
185
|
+
export const focusInset = gray100;
|
|
186
|
+
export const focusInverse = blue60;
|
|
187
|
+
|
|
188
|
+
// Skeleton
|
|
189
|
+
export const skeletonBackground = adjustLightness(background, 5);
|
|
190
|
+
export const skeletonElement = gray70;
|
|
191
|
+
|
|
192
|
+
// Misc
|
|
193
|
+
export const interactive = blue50;
|
|
194
|
+
export const highlight = blue70;
|
|
195
|
+
export const overlay = 'rgba(22, 22, 22, 0.7)';
|
|
196
|
+
export const toggleOff = gray50;
|
|
197
|
+
|
|
198
|
+
export {
|
|
199
|
+
// Type
|
|
200
|
+
caption01,
|
|
201
|
+
caption02,
|
|
202
|
+
label01,
|
|
203
|
+
label02,
|
|
204
|
+
helperText01,
|
|
205
|
+
helperText02,
|
|
206
|
+
bodyShort01,
|
|
207
|
+
bodyLong01,
|
|
208
|
+
bodyShort02,
|
|
209
|
+
bodyLong02,
|
|
210
|
+
code01,
|
|
211
|
+
code02,
|
|
212
|
+
heading01,
|
|
213
|
+
productiveHeading01,
|
|
214
|
+
heading02,
|
|
215
|
+
productiveHeading02,
|
|
216
|
+
productiveHeading03,
|
|
217
|
+
productiveHeading04,
|
|
218
|
+
productiveHeading05,
|
|
219
|
+
productiveHeading06,
|
|
220
|
+
productiveHeading07,
|
|
221
|
+
expressiveHeading01,
|
|
222
|
+
expressiveHeading02,
|
|
223
|
+
expressiveHeading03,
|
|
224
|
+
expressiveHeading04,
|
|
225
|
+
expressiveHeading05,
|
|
226
|
+
expressiveHeading06,
|
|
227
|
+
expressiveParagraph01,
|
|
228
|
+
quotation01,
|
|
229
|
+
quotation02,
|
|
230
|
+
display01,
|
|
231
|
+
display02,
|
|
232
|
+
display03,
|
|
233
|
+
display04,
|
|
234
|
+
// Layout
|
|
235
|
+
// Spacing
|
|
236
|
+
spacing01,
|
|
237
|
+
spacing02,
|
|
238
|
+
spacing03,
|
|
239
|
+
spacing04,
|
|
240
|
+
spacing05,
|
|
241
|
+
spacing06,
|
|
242
|
+
spacing07,
|
|
243
|
+
spacing08,
|
|
244
|
+
spacing09,
|
|
245
|
+
spacing10,
|
|
246
|
+
spacing11,
|
|
247
|
+
spacing12,
|
|
248
|
+
spacing13,
|
|
249
|
+
// Fluid spacing
|
|
250
|
+
fluidSpacing01,
|
|
251
|
+
fluidSpacing02,
|
|
252
|
+
fluidSpacing03,
|
|
253
|
+
fluidSpacing04,
|
|
254
|
+
// Containers
|
|
255
|
+
container01,
|
|
256
|
+
container02,
|
|
257
|
+
container03,
|
|
258
|
+
container04,
|
|
259
|
+
container05,
|
|
260
|
+
sizeXSmall,
|
|
261
|
+
sizeSmall,
|
|
262
|
+
sizeMedium,
|
|
263
|
+
sizeLarge,
|
|
264
|
+
sizeXLarge,
|
|
265
|
+
size2XLarge,
|
|
266
|
+
// Icon sizes
|
|
267
|
+
iconSize01,
|
|
268
|
+
iconSize02,
|
|
269
|
+
} from './white';
|
|
@@ -0,0 +1,21 @@
|
|
|
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 * as white from './white';
|
|
9
|
+
import * as g10 from './g10';
|
|
10
|
+
import * as g90 from './g90';
|
|
11
|
+
import * as g100 from './g100';
|
|
12
|
+
import { TokenFormat, group, set } from './tokens';
|
|
13
|
+
|
|
14
|
+
export const themes = {
|
|
15
|
+
white,
|
|
16
|
+
g10,
|
|
17
|
+
g90,
|
|
18
|
+
g100,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { TokenFormat, group, set };
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
const formats = {
|
|
9
9
|
js: 'javascript',
|
|
10
|
+
scss: 'scss',
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export const TokenFormat = {
|
|
@@ -32,6 +33,56 @@ export const TokenFormat = {
|
|
|
32
33
|
.join('');
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
if (format === formats.scss) {
|
|
37
|
+
return formatNameToScss(name);
|
|
38
|
+
}
|
|
39
|
+
|
|
35
40
|
return name;
|
|
36
41
|
},
|
|
37
42
|
};
|
|
43
|
+
|
|
44
|
+
const numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Format a given token into the format expected in CSS/SCSS-based projects.
|
|
48
|
+
* @param {string} token
|
|
49
|
+
* @returns {string}
|
|
50
|
+
*/
|
|
51
|
+
function formatNameToScss(token) {
|
|
52
|
+
let string = '';
|
|
53
|
+
|
|
54
|
+
for (let i = 0; i < token.length; i++) {
|
|
55
|
+
if (token[i] === '-') {
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// If we run into a number, we hit the scale step at the end of a token name
|
|
60
|
+
// and can safely truncate the rest of the token
|
|
61
|
+
if (numbers.indexOf(token[i]) !== -1) {
|
|
62
|
+
string += '-' + token.slice(i);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// When encountering an uppercase name, we will want to start adding `-`
|
|
67
|
+
// between words
|
|
68
|
+
if (token[i] === token[i].toUpperCase()) {
|
|
69
|
+
// Check backwards to see if previous letter was also capitalized, if so
|
|
70
|
+
// we are in a special case like UI where each piece should be connected
|
|
71
|
+
if (token[i - 1] && token[i - 1] === token[i - 1].toUpperCase()) {
|
|
72
|
+
string += token[i].toLowerCase();
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (token[i - 1] !== '-') {
|
|
77
|
+
// Otherwise, just concatenate this new part on to the existing string
|
|
78
|
+
string += '-' + token[i].toLowerCase();
|
|
79
|
+
}
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// By default, we add the current character to the output string
|
|
84
|
+
string += token[i];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return string;
|
|
88
|
+
}
|
package/src/next/tokens/index.js
CHANGED
|
@@ -9,5 +9,7 @@ import { Token } from './Token';
|
|
|
9
9
|
import { TokenFormat } from './TokenFormat';
|
|
10
10
|
import { TokenGroup } from './TokenGroup';
|
|
11
11
|
import { TokenSet } from './TokenSet';
|
|
12
|
+
import { group } from './v11TokenGroup';
|
|
13
|
+
import { set } from './v11TokenSet';
|
|
12
14
|
|
|
13
|
-
export { Token, TokenFormat, TokenGroup, TokenSet };
|
|
15
|
+
export { Token, TokenFormat, TokenGroup, TokenSet, group, set };
|
|
@@ -226,7 +226,7 @@ export const border = TokenGroup.create({
|
|
|
226
226
|
|
|
227
227
|
export const text = TokenGroup.create({
|
|
228
228
|
name: 'Text',
|
|
229
|
-
properties: ['
|
|
229
|
+
properties: ['text'],
|
|
230
230
|
tokens: [
|
|
231
231
|
'text-primary',
|
|
232
232
|
'text-secondary',
|
|
@@ -251,7 +251,7 @@ export const text = TokenGroup.create({
|
|
|
251
251
|
|
|
252
252
|
export const link = TokenGroup.create({
|
|
253
253
|
name: 'Link',
|
|
254
|
-
properties: ['
|
|
254
|
+
properties: ['text'],
|
|
255
255
|
tokens: [
|
|
256
256
|
{
|
|
257
257
|
name: 'link-primary',
|
|
@@ -321,7 +321,7 @@ export const skeleton = TokenGroup.create({
|
|
|
321
321
|
});
|
|
322
322
|
|
|
323
323
|
export const group = TokenGroup.create({
|
|
324
|
-
name: '
|
|
324
|
+
name: 'All',
|
|
325
325
|
tokens: [
|
|
326
326
|
background,
|
|
327
327
|
layer,
|
|
@@ -330,7 +330,7 @@ export const group = TokenGroup.create({
|
|
|
330
330
|
// Interactive
|
|
331
331
|
{
|
|
332
332
|
name: 'interactive',
|
|
333
|
-
properties: ['background', '
|
|
333
|
+
properties: ['background', 'text'],
|
|
334
334
|
},
|
|
335
335
|
|
|
336
336
|
border,
|
|
@@ -0,0 +1,269 @@
|
|
|
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
|
+
blue40,
|
|
12
|
+
blue60,
|
|
13
|
+
blue70,
|
|
14
|
+
|
|
15
|
+
// Gray
|
|
16
|
+
gray10,
|
|
17
|
+
gray20,
|
|
18
|
+
gray20Hover,
|
|
19
|
+
gray30,
|
|
20
|
+
gray40,
|
|
21
|
+
gray50,
|
|
22
|
+
gray60,
|
|
23
|
+
gray70,
|
|
24
|
+
gray80,
|
|
25
|
+
gray100,
|
|
26
|
+
|
|
27
|
+
// Support
|
|
28
|
+
blue50,
|
|
29
|
+
green40,
|
|
30
|
+
green50,
|
|
31
|
+
yellow30,
|
|
32
|
+
orange40,
|
|
33
|
+
red50,
|
|
34
|
+
red60,
|
|
35
|
+
purple60,
|
|
36
|
+
|
|
37
|
+
// Constants
|
|
38
|
+
white,
|
|
39
|
+
whiteHover,
|
|
40
|
+
} from '@carbon/colors';
|
|
41
|
+
import { adjustLightness } from '../tools';
|
|
42
|
+
|
|
43
|
+
// Background
|
|
44
|
+
export const background = white;
|
|
45
|
+
export const backgroundInverse = gray80;
|
|
46
|
+
export const backgroundBrand = blue60;
|
|
47
|
+
export const backgroundActive = gray30;
|
|
48
|
+
export const backgroundHover = whiteHover;
|
|
49
|
+
export const backgroundInverseHover = adjustLightness(backgroundInverse, 6);
|
|
50
|
+
export const backgroundSelected = gray20;
|
|
51
|
+
export const backgroundSelectedHover = adjustLightness(backgroundSelected, -6);
|
|
52
|
+
|
|
53
|
+
// Layer
|
|
54
|
+
// layer-01
|
|
55
|
+
export const layer01 = gray10;
|
|
56
|
+
export const layerActive01 = gray30;
|
|
57
|
+
export const layerHover01 = adjustLightness(layer01, -5);
|
|
58
|
+
export const layerSelected01 = gray20;
|
|
59
|
+
export const layerSelectedHover01 = gray20Hover;
|
|
60
|
+
|
|
61
|
+
// layer-02
|
|
62
|
+
export const layer02 = white;
|
|
63
|
+
export const layerActive02 = gray30;
|
|
64
|
+
export const layerHover02 = adjustLightness(layer01, -5);
|
|
65
|
+
export const layerSelected02 = gray20;
|
|
66
|
+
export const layerSelectedHover02 = gray20Hover;
|
|
67
|
+
|
|
68
|
+
// layer-03
|
|
69
|
+
export const layer03 = gray10;
|
|
70
|
+
export const layerActive03 = gray30;
|
|
71
|
+
export const layerHover03 = adjustLightness(layer01, -5);
|
|
72
|
+
export const layerSelected03 = gray20;
|
|
73
|
+
export const layerSelectedHover03 = gray20Hover;
|
|
74
|
+
|
|
75
|
+
// layer
|
|
76
|
+
export const layerDisabled = gray10;
|
|
77
|
+
export const layerSelectedInverse = gray100;
|
|
78
|
+
export const layerSelectedDisabled = gray50;
|
|
79
|
+
|
|
80
|
+
// layer-accent-01
|
|
81
|
+
export const layerAccent01 = gray20;
|
|
82
|
+
export const layerAccentActive01 = gray40;
|
|
83
|
+
export const layerAccentHover01 = adjustLightness(layerAccent01, -6);
|
|
84
|
+
|
|
85
|
+
// layer-accent-02
|
|
86
|
+
export const layerAccent02 = gray20;
|
|
87
|
+
export const layerAccentActive02 = gray40;
|
|
88
|
+
export const layerAccentHover02 = adjustLightness(layerAccent01, -6);
|
|
89
|
+
|
|
90
|
+
// layer-accent-03
|
|
91
|
+
export const layerAccent03 = gray20;
|
|
92
|
+
export const layerAccentActive03 = gray40;
|
|
93
|
+
export const layerAccentHover03 = adjustLightness(layerAccent01, -6);
|
|
94
|
+
|
|
95
|
+
// Field
|
|
96
|
+
// field-01
|
|
97
|
+
export const field01 = gray10;
|
|
98
|
+
export const fieldHover01 = adjustLightness(field01, -5);
|
|
99
|
+
|
|
100
|
+
// field-02
|
|
101
|
+
export const field02 = white;
|
|
102
|
+
export const fieldHover02 = adjustLightness(field01, -5);
|
|
103
|
+
|
|
104
|
+
// field-03
|
|
105
|
+
export const field03 = gray10;
|
|
106
|
+
export const fieldHover03 = adjustLightness(field01, -5);
|
|
107
|
+
|
|
108
|
+
// field
|
|
109
|
+
export const fieldDisabled = gray10;
|
|
110
|
+
|
|
111
|
+
// Border
|
|
112
|
+
// border-subtle-00
|
|
113
|
+
export const borderSubtle00 = gray20;
|
|
114
|
+
|
|
115
|
+
// border-subtle-01
|
|
116
|
+
export const borderSubtle01 = gray20;
|
|
117
|
+
export const borderSubtleSelected01 = gray30;
|
|
118
|
+
|
|
119
|
+
// border-subtle-02
|
|
120
|
+
export const borderSubtle02 = gray20;
|
|
121
|
+
export const borderSubtleSelected02 = gray30;
|
|
122
|
+
|
|
123
|
+
// border-subtle-03
|
|
124
|
+
export const borderSubtle03 = gray20;
|
|
125
|
+
export const borderSubtleSelected03 = gray30;
|
|
126
|
+
|
|
127
|
+
// border-strong
|
|
128
|
+
export const borderStrong01 = gray50;
|
|
129
|
+
export const borderStrong02 = gray50;
|
|
130
|
+
export const borderStrong03 = gray50;
|
|
131
|
+
|
|
132
|
+
// border-inverse
|
|
133
|
+
export const borderInverse = gray100;
|
|
134
|
+
|
|
135
|
+
// border-interactive
|
|
136
|
+
export const borderInteractive = blue60;
|
|
137
|
+
|
|
138
|
+
// border
|
|
139
|
+
export const borderDisabled = gray10;
|
|
140
|
+
|
|
141
|
+
// Text
|
|
142
|
+
export const textPrimary = gray100;
|
|
143
|
+
export const textSecondary = gray70;
|
|
144
|
+
export const textPlaceholder = gray40;
|
|
145
|
+
export const textHelper = gray60;
|
|
146
|
+
export const textError = red60;
|
|
147
|
+
export const textInverse = white;
|
|
148
|
+
export const textOnColor = white;
|
|
149
|
+
export const textOnColorDisabled = gray50;
|
|
150
|
+
export const textDisabled = gray30;
|
|
151
|
+
|
|
152
|
+
// Link
|
|
153
|
+
export const linkPrimary = blue60;
|
|
154
|
+
export const linkPrimaryHover = blue70;
|
|
155
|
+
export const linkSecondary = blue70;
|
|
156
|
+
export const linkInverse = blue40;
|
|
157
|
+
export const linkVisited = purple60;
|
|
158
|
+
|
|
159
|
+
// Icon
|
|
160
|
+
export const iconPrimary = gray100;
|
|
161
|
+
export const iconSecondary = gray70;
|
|
162
|
+
export const iconInverse = white;
|
|
163
|
+
export const iconOnColor = white;
|
|
164
|
+
export const iconOnColorDisabled = gray50;
|
|
165
|
+
export const iconDisabled = gray30;
|
|
166
|
+
|
|
167
|
+
// Support
|
|
168
|
+
export const supportError = red60;
|
|
169
|
+
export const supportSuccess = green50;
|
|
170
|
+
export const supportWarning = yellow30;
|
|
171
|
+
export const supportInfo = blue70;
|
|
172
|
+
export const supportErrorInverse = red50;
|
|
173
|
+
export const supportSuccessInverse = green40;
|
|
174
|
+
export const supportWarningInverse = yellow30;
|
|
175
|
+
export const supportInfoInverse = blue50;
|
|
176
|
+
export const supportCautionMinor = yellow30;
|
|
177
|
+
export const supportCautionMajor = orange40;
|
|
178
|
+
export const supportCautionUndefined = purple60;
|
|
179
|
+
|
|
180
|
+
// Focus
|
|
181
|
+
export const focus = blue60;
|
|
182
|
+
export const focusInset = white;
|
|
183
|
+
export const focusInverse = white;
|
|
184
|
+
|
|
185
|
+
// Skeleton
|
|
186
|
+
export const skeletonBackground = whiteHover;
|
|
187
|
+
export const skeletonElement = gray30;
|
|
188
|
+
|
|
189
|
+
// Misc
|
|
190
|
+
export const interactive = blue60;
|
|
191
|
+
export const highlight = blue20;
|
|
192
|
+
export const overlay = 'rgba(22, 22, 22, 0.5)';
|
|
193
|
+
export const toggleOff = gray50;
|
|
194
|
+
|
|
195
|
+
// Type
|
|
196
|
+
export {
|
|
197
|
+
caption01,
|
|
198
|
+
caption02,
|
|
199
|
+
label01,
|
|
200
|
+
label02,
|
|
201
|
+
helperText01,
|
|
202
|
+
helperText02,
|
|
203
|
+
bodyShort01,
|
|
204
|
+
bodyLong01,
|
|
205
|
+
bodyShort02,
|
|
206
|
+
bodyLong02,
|
|
207
|
+
code01,
|
|
208
|
+
code02,
|
|
209
|
+
heading01,
|
|
210
|
+
productiveHeading01,
|
|
211
|
+
heading02,
|
|
212
|
+
productiveHeading02,
|
|
213
|
+
productiveHeading03,
|
|
214
|
+
productiveHeading04,
|
|
215
|
+
productiveHeading05,
|
|
216
|
+
productiveHeading06,
|
|
217
|
+
productiveHeading07,
|
|
218
|
+
expressiveHeading01,
|
|
219
|
+
expressiveHeading02,
|
|
220
|
+
expressiveHeading03,
|
|
221
|
+
expressiveHeading04,
|
|
222
|
+
expressiveHeading05,
|
|
223
|
+
expressiveHeading06,
|
|
224
|
+
expressiveParagraph01,
|
|
225
|
+
quotation01,
|
|
226
|
+
quotation02,
|
|
227
|
+
display01,
|
|
228
|
+
display02,
|
|
229
|
+
display03,
|
|
230
|
+
display04,
|
|
231
|
+
} from '@carbon/type';
|
|
232
|
+
|
|
233
|
+
// Layout
|
|
234
|
+
// Spacing
|
|
235
|
+
export {
|
|
236
|
+
spacing01,
|
|
237
|
+
spacing02,
|
|
238
|
+
spacing03,
|
|
239
|
+
spacing04,
|
|
240
|
+
spacing05,
|
|
241
|
+
spacing06,
|
|
242
|
+
spacing07,
|
|
243
|
+
spacing08,
|
|
244
|
+
spacing09,
|
|
245
|
+
spacing10,
|
|
246
|
+
spacing11,
|
|
247
|
+
spacing12,
|
|
248
|
+
spacing13,
|
|
249
|
+
// Fluid spacing
|
|
250
|
+
fluidSpacing01,
|
|
251
|
+
fluidSpacing02,
|
|
252
|
+
fluidSpacing03,
|
|
253
|
+
fluidSpacing04,
|
|
254
|
+
// Containers
|
|
255
|
+
container01,
|
|
256
|
+
container02,
|
|
257
|
+
container03,
|
|
258
|
+
container04,
|
|
259
|
+
container05,
|
|
260
|
+
sizeXSmall,
|
|
261
|
+
sizeSmall,
|
|
262
|
+
sizeMedium,
|
|
263
|
+
sizeLarge,
|
|
264
|
+
sizeXLarge,
|
|
265
|
+
size2XLarge,
|
|
266
|
+
// Icon sizes
|
|
267
|
+
iconSize01,
|
|
268
|
+
iconSize02,
|
|
269
|
+
} from '@carbon/layout';
|