@carbon/themes 11.10.0 → 11.11.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/themes",
3
3
  "description": "Themes for applying color in the Carbon Design System",
4
- "version": "11.10.0",
4
+ "version": "11.11.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -29,9 +29,9 @@
29
29
  "build": "yarn clean && carbon-cli bundle src/index.js --name CarbonThemes && babel-node --presets '@babel/preset-env' tasks/build.js && carbon-cli check \"scss/*.scss\""
30
30
  },
31
31
  "dependencies": {
32
- "@carbon/colors": "^11.6.0",
32
+ "@carbon/colors": "^11.7.0",
33
33
  "@carbon/layout": "^11.7.0",
34
- "@carbon/type": "^11.10.0",
34
+ "@carbon/type": "^11.11.0",
35
35
  "color": "^4.0.0"
36
36
  },
37
37
  "devDependencies": {
@@ -48,5 +48,5 @@
48
48
  "rimraf": "^3.0.0"
49
49
  },
50
50
  "sideEffects": false,
51
- "gitHead": "dcf802a75caf0201ac831826f611d24dbe508859"
51
+ "gitHead": "c77cccfd9ee14e87f60daefbc518d63204606e2b"
52
52
  }
@@ -0,0 +1,10 @@
1
+ //
2
+ // Copyright IBM Corp. 2022, 2022
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
+ @forward 'generated/button-tokens';
9
+ @forward 'generated/tag-tokens';
10
+ @forward 'generated/notification-tokens';
@@ -0,0 +1,115 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2019
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
+
9
+ @use 'sass:map';
10
+
11
+ $button-danger-active: (
12
+ white-theme: #750e13,
13
+ g-10: #750e13,
14
+ g-90: #750e13,
15
+ g-100: #750e13,
16
+ ) !default;
17
+
18
+ $button-danger-hover: (
19
+ white-theme: #b81921,
20
+ g-10: #b81921,
21
+ g-90: #b81921,
22
+ g-100: #b81921,
23
+ ) !default;
24
+
25
+ $button-danger-primary: (
26
+ white-theme: #da1e28,
27
+ g-10: #da1e28,
28
+ g-90: #da1e28,
29
+ g-100: #da1e28,
30
+ ) !default;
31
+
32
+ $button-danger-secondary: (
33
+ white-theme: #da1e28,
34
+ g-10: #da1e28,
35
+ g-90: #ff8389,
36
+ g-100: #fa4d56,
37
+ ) !default;
38
+
39
+ $button-disabled: (
40
+ white-theme: #c6c6c6,
41
+ g-10: #c6c6c6,
42
+ g-90: rgb(141 141 141 / 30%),
43
+ g-100: rgb(141 141 141 / 30%),
44
+ ) !default;
45
+
46
+ $button-primary: (
47
+ white-theme: #0f62fe,
48
+ g-10: #0f62fe,
49
+ g-90: #0f62fe,
50
+ g-100: #0f62fe,
51
+ ) !default;
52
+
53
+ $button-primary-active: (
54
+ white-theme: #002d9c,
55
+ g-10: #002d9c,
56
+ g-90: #002d9c,
57
+ g-100: #002d9c,
58
+ ) !default;
59
+
60
+ $button-primary-hover: (
61
+ white-theme: #0050e6,
62
+ g-10: #0050e6,
63
+ g-90: #0050e6,
64
+ g-100: #0050e6,
65
+ ) !default;
66
+
67
+ $button-secondary: (
68
+ white-theme: #393939,
69
+ g-10: #393939,
70
+ g-90: #6f6f6f,
71
+ g-100: #6f6f6f,
72
+ ) !default;
73
+
74
+ $button-secondary-active: (
75
+ white-theme: #6f6f6f,
76
+ g-10: #6f6f6f,
77
+ g-90: #393939,
78
+ g-100: #393939,
79
+ ) !default;
80
+
81
+ $button-secondary-hover: (
82
+ white-theme: #474747,
83
+ g-10: #474747,
84
+ g-90: #5e5e5e,
85
+ g-100: #5e5e5e,
86
+ ) !default;
87
+
88
+ $button-separator: (
89
+ fallback: #e0e0e0,
90
+ white-theme: #e0e0e0,
91
+ g-10: #e0e0e0,
92
+ g-90: #161616,
93
+ g-100: #161616,
94
+ ) !default;
95
+
96
+ $button-tertiary: (
97
+ white-theme: #0f62fe,
98
+ g-10: #0f62fe,
99
+ g-90: #ffffff,
100
+ g-100: #ffffff,
101
+ ) !default;
102
+
103
+ $button-tertiary-active: (
104
+ white-theme: #002d9c,
105
+ g-10: #002d9c,
106
+ g-90: #c6c6c6,
107
+ g-100: #c6c6c6,
108
+ ) !default;
109
+
110
+ $button-tertiary-hover: (
111
+ white-theme: #0050e6,
112
+ g-10: #0050e6,
113
+ g-90: #f4f4f4,
114
+ g-100: #f4f4f4,
115
+ ) !default;
@@ -0,0 +1,88 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2019
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
+
9
+ @use 'sass:map';
10
+
11
+ $color-map: (
12
+ yellow-30: #f1c21b,
13
+ white-0: #ffffff,
14
+ ) !default;
15
+
16
+ $notification-action-hover: (
17
+ white-theme: #ffffff,
18
+ g-10: #ffffff,
19
+ ) !default;
20
+
21
+ $notification-action-tertiary-inverse: (
22
+ white-theme: #ffffff,
23
+ g-10: #ffffff,
24
+ g-90: #0f62fe,
25
+ g-100: #0f62fe,
26
+ ) !default;
27
+
28
+ $notification-action-tertiary-inverse-active: (
29
+ white-theme: #c6c6c6,
30
+ g-10: #c6c6c6,
31
+ g-90: #002d9c,
32
+ g-100: #002d9c,
33
+ ) !default;
34
+
35
+ $notification-action-tertiary-inverse-hover: (
36
+ white-theme: #f4f4f4,
37
+ g-10: #f4f4f4,
38
+ g-90: #0050e6,
39
+ g-100: #0050e6,
40
+ ) !default;
41
+
42
+ $notification-action-tertiary-inverse-text: (
43
+ white-theme: #161616,
44
+ g-10: #161616,
45
+ g-90: #ffffff,
46
+ g-100: #ffffff,
47
+ ) !default;
48
+
49
+ $notification-action-tertiary-inverse-text-on-color-disabled: (
50
+ white-theme: rgba(255, 255, 255, 0.25),
51
+ g-10: rgba(255, 255, 255, 0.25),
52
+ g-90: #8d8d8d,
53
+ g-100: #8d8d8d,
54
+ ) !default;
55
+
56
+ $notification-background-error: (
57
+ white-theme: #fff1f1,
58
+ g-10: #fff1f1,
59
+ g-90: #393939,
60
+ g-100: #262626,
61
+ ) !default;
62
+
63
+ $notification-background-info: (
64
+ white-theme: #edf5ff,
65
+ g-10: #edf5ff,
66
+ g-90: #393939,
67
+ g-100: #262626,
68
+ ) !default;
69
+
70
+ $notification-background-success: (
71
+ white-theme: #defbe6,
72
+ g-10: #defbe6,
73
+ g-90: #393939,
74
+ g-100: #262626,
75
+ ) !default;
76
+
77
+ $notification-background-warning: (
78
+ white-theme: (
79
+ yellow-30: #f1c21b,
80
+ white-0: #ffffff,
81
+ ),
82
+ g-10: (
83
+ yellow-30: #f1c21b,
84
+ white-0: #ffffff,
85
+ ),
86
+ g-90: #393939,
87
+ g-100: #262626,
88
+ ) !default;
@@ -0,0 +1,219 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2019
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
+
9
+ @use 'sass:map';
10
+
11
+ $tag-background-blue: (
12
+ white-theme: #d0e2ff,
13
+ g-10: #d0e2ff,
14
+ g-90: #0043ce,
15
+ g-100: #0043ce,
16
+ ) !default;
17
+
18
+ $tag-background-cool-gray: (
19
+ white-theme: #dde1e6,
20
+ g-10: #dde1e6,
21
+ g-90: #4d5358,
22
+ g-100: #4d5358,
23
+ ) !default;
24
+
25
+ $tag-background-cyan: (
26
+ white-theme: #bae6ff,
27
+ g-10: #bae6ff,
28
+ g-90: #00539a,
29
+ g-100: #00539a,
30
+ ) !default;
31
+
32
+ $tag-background-gray: (
33
+ white-theme: #e0e0e0,
34
+ g-10: #e0e0e0,
35
+ g-90: #525252,
36
+ g-100: #525252,
37
+ ) !default;
38
+
39
+ $tag-background-green: (
40
+ white-theme: #a7f0ba,
41
+ g-10: #a7f0ba,
42
+ g-90: #0e6027,
43
+ g-100: #0e6027,
44
+ ) !default;
45
+
46
+ $tag-background-magenta: (
47
+ white-theme: #ffd6e8,
48
+ g-10: #ffd6e8,
49
+ g-90: #9f1853,
50
+ g-100: #9f1853,
51
+ ) !default;
52
+
53
+ $tag-background-purple: (
54
+ white-theme: #e8daff,
55
+ g-10: #e8daff,
56
+ g-90: #6929c4,
57
+ g-100: #6929c4,
58
+ ) !default;
59
+
60
+ $tag-background-red: (
61
+ white-theme: #ffd7d9,
62
+ g-10: #ffd7d9,
63
+ g-90: #a2191f,
64
+ g-100: #a2191f,
65
+ ) !default;
66
+
67
+ $tag-background-teal: (
68
+ white-theme: #9ef0f0,
69
+ g-10: #9ef0f0,
70
+ g-90: #005d5d,
71
+ g-100: #005d5d,
72
+ ) !default;
73
+
74
+ $tag-background-warm-gray: (
75
+ white-theme: #e5e0df,
76
+ g-10: #e5e0df,
77
+ g-90: #565151,
78
+ g-100: #565151,
79
+ ) !default;
80
+
81
+ $tag-color-blue: (
82
+ white-theme: #002d9c,
83
+ g-10: #002d9c,
84
+ g-90: #d0e2ff,
85
+ g-100: #d0e2ff,
86
+ ) !default;
87
+
88
+ $tag-color-cool-gray: (
89
+ white-theme: #343a3f,
90
+ g-10: #343a3f,
91
+ g-90: #dde1e6,
92
+ g-100: #dde1e6,
93
+ ) !default;
94
+
95
+ $tag-color-cyan: (
96
+ white-theme: #003a6d,
97
+ g-10: #003a6d,
98
+ g-90: #bae6ff,
99
+ g-100: #bae6ff,
100
+ ) !default;
101
+
102
+ $tag-color-gray: (
103
+ white-theme: #393939,
104
+ g-10: #393939,
105
+ g-90: #e0e0e0,
106
+ g-100: #e0e0e0,
107
+ ) !default;
108
+
109
+ $tag-color-green: (
110
+ white-theme: #044317,
111
+ g-10: #044317,
112
+ g-90: #a7f0ba,
113
+ g-100: #a7f0ba,
114
+ ) !default;
115
+
116
+ $tag-color-magenta: (
117
+ white-theme: #740937,
118
+ g-10: #740937,
119
+ g-90: #ffd6e8,
120
+ g-100: #ffd6e8,
121
+ ) !default;
122
+
123
+ $tag-color-purple: (
124
+ white-theme: #491d8b,
125
+ g-10: #491d8b,
126
+ g-90: #e8daff,
127
+ g-100: #e8daff,
128
+ ) !default;
129
+
130
+ $tag-color-red: (
131
+ white-theme: #750e13,
132
+ g-10: #750e13,
133
+ g-90: #ffd7d9,
134
+ g-100: #ffd7d9,
135
+ ) !default;
136
+
137
+ $tag-color-teal: (
138
+ white-theme: #004144,
139
+ g-10: #004144,
140
+ g-90: #9ef0f0,
141
+ g-100: #9ef0f0,
142
+ ) !default;
143
+
144
+ $tag-color-warm-gray: (
145
+ white-theme: #3c3838,
146
+ g-10: #3c3838,
147
+ g-90: #e5e0df,
148
+ g-100: #e5e0df,
149
+ ) !default;
150
+
151
+ $tag-hover-blue: (
152
+ white-theme: #a6c8ff,
153
+ g-10: #a6c8ff,
154
+ g-90: #0053ff,
155
+ g-100: #0053ff,
156
+ ) !default;
157
+
158
+ $tag-hover-cool-gray: (
159
+ white-theme: #c1c7cd,
160
+ g-10: #c1c7cd,
161
+ g-90: #5d646a,
162
+ g-100: #5d646a,
163
+ ) !default;
164
+
165
+ $tag-hover-cyan: (
166
+ white-theme: #82cfff,
167
+ g-10: #82cfff,
168
+ g-90: #0066bd,
169
+ g-100: #0066bd,
170
+ ) !default;
171
+
172
+ $tag-hover-gray: (
173
+ white-theme: #c6c6c6,
174
+ g-10: #c6c6c6,
175
+ g-90: #636363,
176
+ g-100: #636363,
177
+ ) !default;
178
+
179
+ $tag-hover-green: (
180
+ white-theme: #6fdc8c,
181
+ g-10: #6fdc8c,
182
+ g-90: #11742f,
183
+ g-100: #11742f,
184
+ ) !default;
185
+
186
+ $tag-hover-magenta: (
187
+ white-theme: #ffafd2,
188
+ g-10: #ffafd2,
189
+ g-90: #bf1d63,
190
+ g-100: #bf1d63,
191
+ ) !default;
192
+
193
+ $tag-hover-purple: (
194
+ white-theme: #d4bbff,
195
+ g-10: #d4bbff,
196
+ g-90: #7c3dd6,
197
+ g-100: #7c3dd6,
198
+ ) !default;
199
+
200
+ $tag-hover-red: (
201
+ white-theme: #ffb3b8,
202
+ g-10: #ffb3b8,
203
+ g-90: #c21e25,
204
+ g-100: #c21e25,
205
+ ) !default;
206
+
207
+ $tag-hover-teal: (
208
+ white-theme: #3ddbd9,
209
+ g-10: #3ddbd9,
210
+ g-90: #007070,
211
+ g-100: #007070,
212
+ ) !default;
213
+
214
+ $tag-hover-warm-gray: (
215
+ white-theme: #cac5c4,
216
+ g-10: #cac5c4,
217
+ g-90: #696363,
218
+ g-100: #696363,
219
+ ) !default;
@@ -0,0 +1 @@
1
+ export * as buttonTokens from './tokens';
@@ -0,0 +1,123 @@
1
+ const buttonSeparator = {
2
+ fallback: '#e0e0e0',
3
+ whiteTheme: '#e0e0e0',
4
+ g10: '#e0e0e0',
5
+ g90: '#161616',
6
+ g100: '#161616',
7
+ };
8
+
9
+ const buttonPrimary = {
10
+ whiteTheme: '#0f62fe',
11
+ g10: '#0f62fe',
12
+ g90: '#0f62fe',
13
+ g100: '#0f62fe',
14
+ };
15
+
16
+ const buttonSecondary = {
17
+ whiteTheme: '#393939',
18
+ g10: '#393939',
19
+ g90: '#6f6f6f',
20
+ g100: '#6f6f6f',
21
+ };
22
+
23
+ const buttonTertiary = {
24
+ whiteTheme: '#0f62fe',
25
+ g10: '#0f62fe',
26
+ g90: '#ffffff',
27
+ g100: '#ffffff',
28
+ };
29
+
30
+ const buttonDangerPrimary = {
31
+ whiteTheme: '#da1e28',
32
+ g10: '#da1e28',
33
+ g90: '#da1e28',
34
+ g100: '#da1e28',
35
+ };
36
+
37
+ const buttonDangerSecondary = {
38
+ whiteTheme: '#da1e28',
39
+ g10: '#da1e28',
40
+ g90: '#ff8389',
41
+ g100: '#fa4d56',
42
+ };
43
+
44
+ const buttonDangerActive = {
45
+ whiteTheme: '#750e13',
46
+ g10: '#750e13',
47
+ g90: '#750e13',
48
+ g100: '#750e13',
49
+ };
50
+
51
+ const buttonPrimaryActive = {
52
+ whiteTheme: '#002d9c',
53
+ g10: '#002d9c',
54
+ g90: '#002d9c',
55
+ g100: '#002d9c',
56
+ };
57
+
58
+ const buttonSecondaryActive = {
59
+ whiteTheme: '#6f6f6f',
60
+ g10: '#6f6f6f',
61
+ g90: '#393939',
62
+ g100: '#393939',
63
+ };
64
+
65
+ const buttonTertiaryActive = {
66
+ whiteTheme: '#002d9c',
67
+ g10: '#002d9c',
68
+ g90: '#c6c6c6',
69
+ g100: '#c6c6c6',
70
+ };
71
+
72
+ const buttonDangerHover = {
73
+ whiteTheme: '#b81921',
74
+ g10: '#b81921',
75
+ g90: '#b81921',
76
+ g100: '#b81921',
77
+ };
78
+
79
+ const buttonPrimaryHover = {
80
+ whiteTheme: '#0050e6',
81
+ g10: '#0050e6',
82
+ g90: '#0050e6',
83
+ g100: '#0050e6',
84
+ };
85
+
86
+ const buttonSecondaryHover = {
87
+ whiteTheme: '#474747',
88
+ g10: '#474747',
89
+ g90: '#5e5e5e',
90
+ g100: '#5e5e5e',
91
+ };
92
+
93
+ const buttonTertiaryHover = {
94
+ whiteTheme: '#0050e6',
95
+ g10: '#0050e6',
96
+ g90: '#f4f4f4',
97
+ g100: '#f4f4f4',
98
+ };
99
+
100
+ const buttonDisabled = {
101
+ whiteTheme: '#c6c6c6',
102
+ g10: '#c6c6c6',
103
+ g90: 'rgb(141 141 141 / 30%)',
104
+ g100: 'rgb(141 141 141 / 30%)',
105
+ };
106
+
107
+ export {
108
+ buttonSeparator,
109
+ buttonPrimary,
110
+ buttonSecondary,
111
+ buttonTertiary,
112
+ buttonDangerPrimary,
113
+ buttonDangerSecondary,
114
+ buttonDangerActive,
115
+ buttonPrimaryActive,
116
+ buttonSecondaryActive,
117
+ buttonTertiaryActive,
118
+ buttonDangerHover,
119
+ buttonPrimaryHover,
120
+ buttonSecondaryHover,
121
+ buttonTertiaryHover,
122
+ buttonDisabled,
123
+ };
@@ -0,0 +1 @@
1
+ export * as notificationTokens from './tokens';
@@ -0,0 +1,103 @@
1
+ import {
2
+ red10,
3
+ gray80,
4
+ gray90,
5
+ green10,
6
+ blue10,
7
+ yellow30,
8
+ white0,
9
+ } from '@carbon/colors';
10
+ import {
11
+ textInverse as textInverseWhite,
12
+ textOnColorDisabled as textOnColorDisabledWhite,
13
+ } from '../../white';
14
+ import {
15
+ textInverse as textInverseG10,
16
+ textOnColorDisabled as textOnColorDisabledG10,
17
+ } from '../../g10';
18
+ import {
19
+ textInverse as textInverseG90,
20
+ textOnColorDisabled as textOnColorDisabledG90,
21
+ } from '../../g90';
22
+ import {
23
+ textInverse as textInverseG100,
24
+ textOnColorDisabled as textOnColorDisabledG100,
25
+ } from '../../g100';
26
+ import {
27
+ buttonTertiaryActive,
28
+ buttonTertiaryHover,
29
+ buttonTertiary,
30
+ } from '../button/tokens';
31
+
32
+ export const notificationBackgroundError = {
33
+ whiteTheme: red10,
34
+ g10: red10,
35
+ g90: gray80,
36
+ g100: gray90,
37
+ };
38
+
39
+ export const notificationBackgroundSuccess = {
40
+ whiteTheme: green10,
41
+ g10: green10,
42
+ g90: gray80,
43
+ g100: gray90,
44
+ };
45
+
46
+ export const notificationBackgroundInfo = {
47
+ whiteTheme: blue10,
48
+ g10: blue10,
49
+ g90: gray80,
50
+ g100: gray90,
51
+ };
52
+
53
+ export const colorMap = {
54
+ yellow30,
55
+ white0,
56
+ };
57
+
58
+ export const notificationBackgroundWarning = {
59
+ whiteTheme: colorMap,
60
+ g10: colorMap,
61
+ g90: gray80,
62
+ g100: gray90,
63
+ };
64
+
65
+ export const notificationActionHover = {
66
+ whiteTheme: white0,
67
+ g10: white0,
68
+ };
69
+
70
+ export const notificationActionTertiaryInverse = {
71
+ whiteTheme: buttonTertiary.g100,
72
+ g10: buttonTertiary.g90,
73
+ g90: buttonTertiary.g10,
74
+ g100: buttonTertiary.whiteTheme,
75
+ };
76
+
77
+ export const notificationActionTertiaryInverseActive = {
78
+ whiteTheme: buttonTertiaryActive.g100,
79
+ g10: buttonTertiaryActive.g90,
80
+ g90: buttonTertiaryActive.g10,
81
+ g100: buttonTertiaryActive.whiteTheme,
82
+ };
83
+
84
+ export const notificationActionTertiaryInverseHover = {
85
+ whiteTheme: buttonTertiaryHover.g100,
86
+ g10: buttonTertiaryHover.g90,
87
+ g90: buttonTertiaryHover.g10,
88
+ g100: buttonTertiaryHover.whiteTheme,
89
+ };
90
+
91
+ export const notificationActionTertiaryInverseText = {
92
+ whiteTheme: textInverseG100,
93
+ g10: textInverseG90,
94
+ g90: textInverseG10,
95
+ g100: textInverseWhite,
96
+ };
97
+
98
+ export const notificationActionTertiaryInverseTextOnColorDisabled = {
99
+ whiteTheme: textOnColorDisabledG100,
100
+ g10: textOnColorDisabledG90,
101
+ g90: textOnColorDisabledG10,
102
+ g100: textOnColorDisabledWhite,
103
+ };
@@ -0,0 +1 @@
1
+ export * as tagTokens from './tokens';