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