@sheinx/theme 3.10.4-beta.1 → 3.10.4-beta.3

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/cjs/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Tokens as TokenType } from './token/type';
2
2
  import CommonTokenMap, { CommonToken } from './token/token';
3
+ import DarkTokens from './token/dark';
3
4
  import setToken from './utils/token-setter';
4
5
  import { setConfig } from './config';
5
6
  import { AlertTokens } from './alert/type';
@@ -57,6 +58,6 @@ export type { TokenType };
57
58
  export * from './hooks';
58
59
  export { getTokenName } from './utils/css-var';
59
60
  export * from './utils/css-var';
60
- export { CommonToken, CommonTokenMap, ComponentTokenMap, setToken, setConfig };
61
+ export { CommonToken, CommonTokenMap, ComponentTokenMap, DarkTokens, setToken, setConfig };
61
62
  export default Tokens;
62
63
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,cAAc,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,cAAc,E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GACV,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,UAAU,GACV,SAAS,GACT,cAAc,GACd,aAAa,GACb,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,YAAY,CAAC;AAEf,QAAA,MAAM,MAAM,EAAE,WAkDb,CAAC;AAEF,QAAA,MAAM,iBAAiB,EAAE,WAiDxB,CAAC;AAEF,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAE3F,eAAe,MAAM,CAAC"}
package/cjs/index.js CHANGED
@@ -7,6 +7,7 @@ var _exportNames = {
7
7
  ComponentTokenMap: true,
8
8
  CommonTokenMap: true,
9
9
  CommonToken: true,
10
+ DarkTokens: true,
10
11
  setToken: true,
11
12
  setConfig: true,
12
13
  getTokenName: true
@@ -23,7 +24,14 @@ Object.defineProperty(exports, "CommonTokenMap", {
23
24
  return _token.default;
24
25
  }
25
26
  });
26
- exports.default = exports.ComponentTokenMap = void 0;
27
+ exports.ComponentTokenMap = void 0;
28
+ Object.defineProperty(exports, "DarkTokens", {
29
+ enumerable: true,
30
+ get: function get() {
31
+ return _dark.default;
32
+ }
33
+ });
34
+ exports.default = void 0;
27
35
  Object.defineProperty(exports, "getTokenName", {
28
36
  enumerable: true,
29
37
  get: function get() {
@@ -43,6 +51,7 @@ Object.defineProperty(exports, "setToken", {
43
51
  }
44
52
  });
45
53
  var _token = _interopRequireWildcard(require("./token/token"));
54
+ var _dark = _interopRequireDefault(require("./token/dark"));
46
55
  var _tokenSetter = _interopRequireDefault(require("./utils/token-setter"));
47
56
  var _config = require("./config");
48
57
  var _alert = _interopRequireWildcard(require("./alert"));
@@ -0,0 +1,5 @@
1
+ import { Tokens } from './type';
2
+ import type { ThemeTokens } from '../index';
3
+ declare const DarkToken: Partial<ThemeTokens & Tokens>;
4
+ export default DarkToken;
5
+ //# sourceMappingURL=dark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dark.d.ts","sourceRoot":"","sources":["dark.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAyZ5C,QAAA,MAAM,SAAS,EAAE,OAAO,CAAC,WAAW,GAAG,MAAM,CAAiD,CAAC;AAE/F,eAAe,SAAS,CAAC"}
@@ -0,0 +1,421 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ // 暗色主题下覆盖的全局 token
14
+ var DarkCommonToken = {
15
+ 'Brand-1': '#283546',
16
+ 'Brand-2': '#2A4366',
17
+ 'Brand-10': '#D9F0FF',
18
+ 'Brand-3': '#2B5285',
19
+ 'Brand-4': '#2D61A5',
20
+ 'Brand-5': '#3079DA',
21
+ 'Brand-6': '#3288FA',
22
+ 'Brand-7': '#58A9FC',
23
+ 'Brand-8': '#8BC8FD',
24
+ 'Brand-9': '#B2DCFE',
25
+ 'Neutral-text-5': '#FFFFFFE6',
26
+ 'Neutral-text-4': '#FFFFFFBF',
27
+ 'Neutral-text-3': '#FFFFFF99',
28
+ 'Neutral-text-2': '#FFFFFF4D',
29
+ 'Neutral-border-2': '#555555',
30
+ 'Neutral-border-1': '#333333',
31
+ 'Neutral-fill-4': '#515151',
32
+ 'Neutral-fill-3': '#3B3B3B',
33
+ 'Neutral-fill-2': '#303030',
34
+ 'Neutral-fill-1': '#262626',
35
+ 'Danger-1': '#412B2B',
36
+ 'Danger-10': '#FFECE8',
37
+ 'Danger-2': '#542E2E',
38
+ 'Danger-3': '#6F3233',
39
+ 'Danger-4': '#C33136',
40
+ 'Danger-5': '#B83E40',
41
+ 'Danger-6': '#DC4446',
42
+ 'Danger-7': '#E36461',
43
+ 'Danger-8': '#F7ADA6',
44
+ 'Danger-9': '#FBCDC7',
45
+ 'Success-1': '#20392E',
46
+ 'Success-2': '#1D4534',
47
+ 'Success-10': '#EBFFF3',
48
+ 'Success-3': '#17583C',
49
+ 'Success-4': '#11915E',
50
+ 'Success-5': '#088A51',
51
+ 'Success-6': '#00A35C',
52
+ 'Success-7': '#21B570',
53
+ 'Success-8': '#7BDCA9',
54
+ 'Success-9': '#B0EECB',
55
+ 'Warning-1': '#433128',
56
+ 'Warning-10': '#FFF5E8',
57
+ 'Warning-2': '#573929',
58
+ 'Warning-3': '#74442B',
59
+ 'Warning-4': '#CB5C16',
60
+ 'Warning-5': '#C16330',
61
+ 'Warning-6': '#E87233',
62
+ 'Warning-7': '#ED8F55',
63
+ 'Warning-8': '#FBC58A',
64
+ 'Warning-9': '#FDDFB9',
65
+ 'Shadow-2': '0px 4px 10px 0px rgba(2, 11, 24, 0.10)',
66
+ 'Shadow-3': '0px 8px 20px 0px rgba(2, 11, 24, 0.10)',
67
+ 'Shadow-4': '0px -2px 10px 0px rgba(2, 11, 24, 0.08)',
68
+ 'Neutral-fill-9': '#E4E4E4',
69
+ 'Neutral-fill-10': '#FFFFFF',
70
+ 'Neutral-fill-6': '#A4A4A4',
71
+ 'Neutral-fill-8': '#CCCCCC',
72
+ 'Mask-fill-1': '#00000080',
73
+ 'Neutral-fill-11': '#2A2A2A',
74
+ 'Neutral-fill-5': '#757575',
75
+ 'Neutral-text-1': '#FFFFFFE6',
76
+ 'Cyan-1': '#233A3A',
77
+ 'Cyan-10': '#B3EEE6',
78
+ 'Cyan-2': '#224747',
79
+ 'Cyan-3': '#1F5A5A',
80
+ 'Cyan-4': '#1C7574',
81
+ 'Cyan-5': '#188F8E',
82
+ 'Cyan-6': '#15A9A8',
83
+ 'Cyan-7': '#34BAB6',
84
+ 'Cyan-8': '#59CBC4',
85
+ 'Cyan-9': '#83DDD4',
86
+ 'Indigo-1': '#2D2E44',
87
+ 'Indigo-10': '#CAD1FC',
88
+ 'Indigo-2': '#323358',
89
+ 'Indigo-3': '#393A77',
90
+ 'Indigo-4': '#43449F',
91
+ 'Indigo-5': '#4D4EC7',
92
+ 'Indigo-6': '#5658F0',
93
+ 'Indigo-7': '#7278F3',
94
+ 'Indigo-8': '#8E97F6',
95
+ 'Indigo-9': '#ACB5F9',
96
+ 'Lemon-1': '#433B24',
97
+ 'Lemon-10': '#FAF4BB',
98
+ 'Lemon-2': '#564A22',
99
+ 'Lemon-3': '#725F20',
100
+ 'Lemon-4': '#997C1D',
101
+ 'Lemon-5': '#BF981A',
102
+ 'Lemon-6': '#E5B517',
103
+ 'Lemon-7': '#EAC83D',
104
+ 'Lemon-8': '#EFD866',
105
+ 'Lemon-9': '#F5E78F',
106
+ 'Magenta-1': '#412A36',
107
+ 'Magenta-10': '#F7C3D8',
108
+ 'Magenta-2': '#532D41',
109
+ 'Magenta-3': '#6D3152',
110
+ 'Magenta-4': '#913767',
111
+ 'Magenta-5': '#B43C7D',
112
+ 'Magenta-7': '#E05FA0',
113
+ 'Magenta-8': '#E87FB0',
114
+ 'Magenta-9': '#EFA0C2',
115
+ 'Neon-1': '#353C23',
116
+ 'Neon-10': '#E8F1B4',
117
+ 'Neon-2': '#3F4B21',
118
+ 'Neon-3': '#4E621D',
119
+ 'Neon-4': '#637F19',
120
+ 'Neon-5': '#779D14',
121
+ 'Neon-6': '#8BBB10',
122
+ 'Neon-7': '#A3C932',
123
+ 'Neon-8': '#BBD659',
124
+ 'Neon-9': '#D2E484',
125
+ 'Orange-1': '#433523',
126
+ 'Orange-10': '#FAE6BA',
127
+ 'Orange-2': '#573E21',
128
+ 'Orange-3': '#744D1D',
129
+ 'Orange-4': '#9A6019',
130
+ 'Orange-5': '#C17414',
131
+ 'Orange-6': '#E88710',
132
+ 'Orange-7': '#EDA138',
133
+ 'Orange-8': '#F1BA62',
134
+ 'Orange-9': '#F6D18D',
135
+ 'Brown-1': '#393229',
136
+ 'Brown-10': '#EDDFBE',
137
+ 'Brown-2': '#463B2C',
138
+ 'Brown-3': '#59472F',
139
+ 'Brown-4': '#735834',
140
+ 'Brown-5': '#8C6839',
141
+ 'Brown-6': '#A6793D',
142
+ 'Brown-7': '#B89157',
143
+ 'Brown-8': '#CAAB76',
144
+ 'Brown-9': '#DBC598',
145
+ 'Purple-1': '#342B3F',
146
+ 'Purple-10': '#E0C3F5',
147
+ 'Purple-2': '#3D2E50',
148
+ 'Purple-3': '#4B3368',
149
+ 'Purple-4': '#5D398A',
150
+ 'Purple-5': '#6F3FAB',
151
+ 'Purple-6': '#8245CC',
152
+ 'Purple-7': '#9A61D6',
153
+ 'Purple-8': '#B17FE0',
154
+ 'Purple-9': '#C9A0EB',
155
+ 'Tangerine-1': '#402E29',
156
+ 'Tangerine-10': '#F7D3C2',
157
+ 'Tangerine-2': '#52332C',
158
+ 'Tangerine-3': '#6C3B2F',
159
+ 'Tangerine-4': '#904633',
160
+ 'Tangerine-5': '#B35038',
161
+ 'Tangerine-6': '#D65B3C',
162
+ 'Tangerine-7': '#DE795A',
163
+ 'Tangerine-8': '#E6977B',
164
+ 'Tangerine-9': '#EFB69D',
165
+ 'Background-layout': '#1B1B1B',
166
+ 'Neutral-fill-7': '#B5B5B5',
167
+ 'Background-popup': '#303030'
168
+ };
169
+
170
+ // 暗色主题下额外调整的组件 token,值为引用的全局 token key
171
+ var DarkComponentToken = {
172
+ buttonPrimaryDisabledFontColor: 'Neutral-text-2',
173
+ buttonSecondaryFontColor: 'Neutral-text-1',
174
+ buttonWarningDisabledFontColor: 'Neutral-text-2',
175
+ inputFontColor: 'Neutral-text-5',
176
+ selectFontColor: 'Neutral-text-1',
177
+ selectBorderWidth: 'Border-2',
178
+ selectPlaceholderColor: 'Neutral-text-2',
179
+ selectBackgroundColor: 'Neutral-fill-2',
180
+ buttonSuccessDisabledFontColor: 'Neutral-text-2',
181
+ buttonDangerDisabledFontColor: 'Neutral-text-2',
182
+ buttonSecondaryActiveBackgroundColor: 'Neutral-fill-4',
183
+ buttonSecondaryActiveBorderColor: 'Neutral-fill-4',
184
+ popoverBackgroundColor: 'Neutral-fill-2',
185
+ popoverSuccessBackgroundColor: 'Success-1',
186
+ popoverInfoBackgroundColor: 'Brand-1',
187
+ tableTbodyHoverBackgroundColor: 'Neutral-fill-3',
188
+ cardBackgroundColor: 'Neutral-fill-1',
189
+ cascaderOptionBackgroundColor: 'Neutral-fill-2',
190
+ tooltipBackgroundColor: 'Neutral-fill-3',
191
+ tooltipLightColor: 'Neutral-fill-2',
192
+ tooltipLightBackgroundColor: 'Neutral-fill-9',
193
+ tooltipPrimaryBackgroundColor: 'Brand-1',
194
+ tooltipSuccessColor: 'Success-6',
195
+ treeLineBackgroundColor: 'Neutral-border-2',
196
+ treeContentActiveBackgroundColor: 'Brand-1',
197
+ datePickerCellHoverBackgroundColor: 'Neutral-fill-3',
198
+ tagInfoBackgroundColor: 'Brand-1',
199
+ alertInfoBackgroundColor: 'Brand-1',
200
+ messageBackgroundColor: 'Neutral-fill-2',
201
+ progressCircleInfoFontColor: 'Neutral-text-5',
202
+ dropdownListBackgroundColor: 'Neutral-fill-2',
203
+ menuItemActiveBackgroundColor: 'Brand-1',
204
+ dividerFontColor: 'Neutral-text-2',
205
+ cascaderPanelBackgroundColor: 'Neutral-fill-2',
206
+ cascaderOptionDisabledBackgroundColor: 'Neutral-fill-2',
207
+ cascaderOptionHoverBackgroundColor: 'Neutral-fill-3',
208
+ datePickerPanelBackgroundColor: 'Neutral-fill-2',
209
+ dropdownOptionHoverBackgroundColor: 'Neutral-fill-3',
210
+ treeSelectPanelBackgroundColor: 'Neutral-fill-2',
211
+ treeSelectContentHoverBackgroundColor: 'Neutral-fill-3',
212
+ modalPanelBackground: 'Neutral-fill-11',
213
+ dropdownOptionDisabledBackgroundColor: 'Neutral-fill-2',
214
+ messageBorderColor: 'Transparent',
215
+ modalPanelBorder: 'Transparent',
216
+ popoverBorderColor: 'Transparent',
217
+ dropdownOptionBackgroundColor: 'Neutral-fill-2',
218
+ selectPanelBackgroundColor: 'Neutral-fill-2',
219
+ selectOptionBackgroundColor: 'Neutral-fill-2',
220
+ selectOptionHoverBackgroundColor: 'Neutral-fill-3',
221
+ selectOptionDisabledBackgroundColor: 'Neutral-fill-2',
222
+ switchCheckedCircleFill: 'Neutral-text-1',
223
+ switchCheckedDisabledCircleFill: 'Neutral-text-2',
224
+ switchCheckedDisabledFontColor: 'Neutral-text-2',
225
+ descriptionsLabelColor: 'Neutral-text-3',
226
+ menuDarkItemBackgroundColor: 'Neutral-fill-1',
227
+ menuDarkItemHoverBackgroundColor: 'Neutral-fill-2',
228
+ menuDarkItemActiveBackgroundColor: 'Brand-4',
229
+ menuDarkItemDisabledBackgroundColor: 'Neutral-fill-1',
230
+ rateFrontBackgroundColor: 'Lemon-6',
231
+ alertInfoBorderColor: 'Brand-2',
232
+ listStripedBackgroundColor: 'Neutral-fill-11',
233
+ menuItemActiveFontColor: 'Brand-6',
234
+ tabsFillCheckedBackgroundColor: 'Neutral-fill-3',
235
+ buttonPrimaryOutlineDisabledFontColor: 'Brand-3',
236
+ buttonPrimaryOutlineDisabledBorderColor: 'Brand-3',
237
+ buttonWarningOutlineDisabledFontColor: 'Warning-3',
238
+ buttonSecondaryOutlineDisabledBorderColor: 'Neutral-border-2',
239
+ cascaderOptionActiveBackgroundColor: 'Brand-2',
240
+ tagInfoFillDisabledFontColor: 'Neutral-text-2',
241
+ tagSuccessFillDisabledFontColor: 'Neutral-text-2',
242
+ tagWarningFillDisabledFontColor: 'Neutral-text-2',
243
+ tagDangerFillDisabledFontColor: 'Neutral-text-2',
244
+ tooltipWarningColor: 'Warning-6',
245
+ tooltipDangerColor: 'Danger-6',
246
+ checkboxIconDisabledBackgroundColor: 'Neutral-fill-3',
247
+ checkboxIconBackgroundColor: 'Transparent',
248
+ checkboxIconDisabledBorderColor: 'Neutral-border-2',
249
+ radioIconBackgroundColor: 'Transparent',
250
+ radioIconDisabledBackgroundColor: 'Neutral-fill-3',
251
+ radioIconDisabledColor: 'Neutral-border-2',
252
+ datePickerTimeItemActiveBackgroundColor: 'Brand-2',
253
+ selectOptionActiveBackgroundColor: 'Brand-2',
254
+ dropdownOptionSelectBackgroundColor: 'Brand-2',
255
+ treeSelectContentActiveBackgroundColor: 'Brand-2',
256
+ treeSelectContentDisabledHoverBackgroundColor: 'Neutral-fill-3',
257
+ sliderValueHoverBackgroundColor: 'Neutral-fill-3',
258
+ checkboxIconCheckedColor: 'Neutral-text-1',
259
+ checkboxIconCheckedDisabledColor: 'Neutral-text-2',
260
+ switchDisabledCircleCheckedFill: 'Neutral-text-2',
261
+ tagTangerineFontColor: 'Tangerine-6',
262
+ tagTangerineBackgroundColor: 'Tangerine-1',
263
+ tagTangerineBorderColor: 'Tangerine-1',
264
+ tagTangerineOutlineFontColor: 'Tangerine-6',
265
+ tagTangerineOutlineBorderColor: 'Tangerine-3',
266
+ tagTangerineFillBackgroundColor: 'Tangerine-6',
267
+ tagTangerineFillBorderColor: 'Tangerine-6',
268
+ tagPurpleFontColor: 'Purple-6',
269
+ tagPurpleBackgroundColor: 'Purple-1',
270
+ tagPurpleBorderColor: 'Purple-1',
271
+ tagPurpleOutlineFontColor: 'Purple-6',
272
+ tagPurpleOutlineBorderColor: 'Purple-3',
273
+ tagPurpleFillBackgroundColor: 'Purple-6',
274
+ tagPurpleFillBorderColor: 'Purple-6',
275
+ tagMagentaFontColor: 'Magenta-6',
276
+ tagMagentaBackgroundColor: 'Magenta-1',
277
+ tagMagentaBorderColor: 'Magenta-1',
278
+ tagMagentaOutlineFontColor: 'Magenta-6',
279
+ tagMagentaOutlineBorderColor: 'Magenta-3',
280
+ tagMagentaFillBackgroundColor: 'Magenta-6',
281
+ tagMagentaFillBorderColor: 'Magenta-6',
282
+ tagBrownFontColor: 'Brown-6',
283
+ tagBrownBackgroundColor: 'Brown-1',
284
+ tagBrownBorderColor: 'Brown-1',
285
+ tagBrownOutlineFontColor: 'Brown-6',
286
+ tagBrownOutlineBorderColor: 'Brown-3',
287
+ tagBrownFillBackgroundColor: 'Brown-6',
288
+ tagBrownFillBorderColor: 'Brown-6',
289
+ tagIndigoFontColor: 'Indigo-6',
290
+ tagIndigoBackgroundColor: 'Indigo-1',
291
+ tagIndigoBorderColor: 'Indigo-1',
292
+ tagIndigoOutlineFontColor: 'Indigo-6',
293
+ tagIndigoOutlineBorderColor: 'Indigo-3',
294
+ tagIndigoFillBackgroundColor: 'Indigo-6',
295
+ tagIndigoFillBorderColor: 'Indigo-6',
296
+ tagCyanFontColor: 'Cyan-6',
297
+ tagCyanBackgroundColor: 'Cyan-1',
298
+ tagCyanBorderColor: 'Cyan-1',
299
+ tagCyanOutlineFontColor: 'Cyan-6',
300
+ tagCyanOutlineBorderColor: 'Cyan-3',
301
+ tagCyanFillBackgroundColor: 'Cyan-6',
302
+ tagCyanFillBorderColor: 'Cyan-6',
303
+ tagNeonFontColor: 'Neon-5',
304
+ tagNeonBackgroundColor: 'Neon-1',
305
+ tagNeonBorderColor: 'Neon-1',
306
+ tagNeonOutlineFontColor: 'Neon-6',
307
+ tagNeonOutlineBorderColor: 'Neon-3',
308
+ tagNeonFillBackgroundColor: 'Neon-6',
309
+ tagNeonFillBorderColor: 'Neon-6',
310
+ tagLemonFontColor: 'Lemon-6',
311
+ tagLemonBackgroundColor: 'Lemon-1',
312
+ tagLemonBorderColor: 'Lemon-1',
313
+ tagLemonOutlineFontColor: 'Lemon-6',
314
+ tagLemonOutlineBorderColor: 'Lemon-3',
315
+ tagLemonFillBackgroundColor: 'Lemon-6',
316
+ tagLemonFillBorderColor: 'Lemon-6',
317
+ tagOrangeFontColor: 'Orange-6',
318
+ tagOrangeBackgroundColor: 'Orange-1',
319
+ tagOrangeBorderColor: 'Orange-1',
320
+ tagOrangeOutlineFontColor: 'Orange-6',
321
+ tagOrangeOutlineBorderColor: 'Orange-3',
322
+ tagOrangeFillBackgroundColor: 'Orange-6',
323
+ tagOrangeFillBorderColor: 'Orange-6',
324
+ tagTangerineDisabledFontColor: 'Tangerine-3',
325
+ tagTangerineDisabledBackgroundColor: 'Tangerine-1',
326
+ tagTangerineDisabledBorderColor: 'Tangerine-1',
327
+ tagTangerineOutlineDisabledFontColor: 'Tangerine-3',
328
+ tagTangerineOutlineDisabledBorderColor: 'Tangerine-2',
329
+ tagTangerineFillDisabledBackgroundColor: 'Tangerine-3',
330
+ tagTangerineFillDisabledBorderColor: 'Tangerine-3',
331
+ tagPurpleDisabledFontColor: 'Purple-4',
332
+ tagPurpleDisabledBackgroundColor: 'Purple-1',
333
+ tagPurpleDisabledBorderColor: 'Purple-1',
334
+ tagPurpleOutlineDisabledFontColor: 'Purple-3',
335
+ tagPurpleOutlineDisabledBorderColor: 'Purple-2',
336
+ tagPurpleFillDisabledBackgroundColor: 'Purple-3',
337
+ tagPurpleFillDisabledBorderColor: 'Purple-3',
338
+ tagBrownDisabledFontColor: 'Brown-3',
339
+ tagBrownDisabledBackgroundColor: 'Brown-1',
340
+ tagBrownDisabledBorderColor: 'Brown-1',
341
+ tagBrownOutlineDisabledFontColor: 'Brown-3',
342
+ tagBrownOutlineDisabledBorderColor: 'Brown-2',
343
+ tagBrownFillDisabledBackgroundColor: 'Brown-3',
344
+ tagBrownFillDisabledBorderColor: 'Brown-3',
345
+ tagMagentaDisabledFontColor: 'Magenta-3',
346
+ tagMagentaDisabledBackgroundColor: 'Magenta-1',
347
+ tagMagentaDisabledBorderColor: 'Magenta-1',
348
+ tagMagentaOutlineDisabledFontColor: 'Magenta-3',
349
+ tagMagentaOutlineDisabledBorderColor: 'Magenta-2',
350
+ tagMagentaFillDisabledBackgroundColor: 'Magenta-3',
351
+ tagMagentaFillDisabledBorderColor: 'Magenta-3',
352
+ tagIndigoDisabledFontColor: 'Indigo-3',
353
+ tagIndigoDisabledBackgroundColor: 'Indigo-1',
354
+ tagIndigoDisabledBorderColor: 'Indigo-1',
355
+ tagIndigoOutlineDisabledFontColor: 'Indigo-3',
356
+ tagIndigoOutlineDisabledBorderColor: 'Indigo-2',
357
+ tagIndigoFillDisabledBackgroundColor: 'Indigo-3',
358
+ tagIndigoFillDisabledBorderColor: 'Indigo-3',
359
+ tagCyanDisabledFontColor: 'Cyan-3',
360
+ tagCyanDisabledBackgroundColor: 'Cyan-1',
361
+ tagCyanDisabledBorderColor: 'Cyan-1',
362
+ tagCyanOutlineDisabledFontColor: 'Cyan-3',
363
+ tagCyanOutlineDisabledBorderColor: 'Cyan-2',
364
+ tagCyanFillDisabledBackgroundColor: 'Cyan-3',
365
+ tagCyanFillDisabledBorderColor: 'Cyan-3',
366
+ tagNeonDisabledFontColor: 'Neon-3',
367
+ tagNeonDisabledBackgroundColor: 'Neon-1',
368
+ tagNeonDisabledBorderColor: 'Neon-1',
369
+ tagNeonOutlineDisabledFontColor: 'Neon-3',
370
+ tagNeonOutlineDisabledBorderColor: 'Neon-2',
371
+ tagNeonFillDisabledBackgroundColor: 'Neon-3',
372
+ tagNeonFillDisabledBorderColor: 'Neon-3',
373
+ tagLemonDisabledFontColor: 'Lemon-3',
374
+ tagLemonDisabledBackgroundColor: 'Lemon-1',
375
+ tagLemonDisabledBorderColor: 'Lemon-1',
376
+ tagLemonOutlineDisabledFontColor: 'Lemon-3',
377
+ tagLemonOutlineDisabledBorderColor: 'Lemon-2',
378
+ tagLemonFillDisabledBackgroundColor: 'Lemon-3',
379
+ tagLemonFillDisabledBorderColor: 'Lemon-3',
380
+ tagOrangeDisabledFontColor: 'Orange-3',
381
+ tagOrangeDisabledBackgroundColor: 'Orange-1',
382
+ tagOrangeDisabledBorderColor: 'Orange-1',
383
+ tagOrangeOutlineDisabledFontColor: 'Orange-3',
384
+ tagOrangeOutlineDisabledBorderColor: 'Orange-2',
385
+ tagOrangeFillDisabledBackgroundColor: 'Orange-3',
386
+ tagOrangeFillDisabledBorderColor: 'Orange-3',
387
+ tagMagentaFillDisabledFontColor: 'Neutral-text-2',
388
+ tagBrownFillDisabledFontColor: 'Neutral-text-2',
389
+ tagPurpleFillDisabledFontColor: 'Neutral-text-2',
390
+ tagIndigoFillDisabledFontColor: 'Neutral-text-2',
391
+ tagCyanFillDisabledFontColor: 'Neutral-text-2',
392
+ tagNeonFillDisabledFontColor: 'Neutral-text-2',
393
+ tagLemonFillDisabledFontColor: 'Neutral-text-2',
394
+ tagOrangeFillDisabledFontColor: 'Neutral-text-2',
395
+ tagTangerineFillDisabledFontColor: 'Neutral-text-2',
396
+ tagInfoOutlineBorderColor: 'Brand-3',
397
+ tagSuccessOutlineBorderColor: 'Success-3',
398
+ tagWarningOutlineBorderColor: 'Warning-3',
399
+ tagDangerOutlineBorderColor: 'Danger-3',
400
+ tagInfoOutlineDisabledBorderColor: 'Brand-2',
401
+ tagSuccessOutlineDisabledBorderColor: 'Success-2',
402
+ tagWarningOutlineDisabledBorderColor: 'Warning-2',
403
+ tagDangerOutlineDisabledBorderColor: 'Danger-2',
404
+ treeSelectContentDisabledBackgroundColor: 'Neutral-fill-2',
405
+ inputClearColor: 'Neutral-text-2',
406
+ inputHoverClearColor: 'Neutral-text-3',
407
+ menuDarkItemOpenBackgroundColor: 'Neutral-fill-1',
408
+ menuSearchDarkBackgroundColor: 'Neutral-fill-2',
409
+ menuSearchDarkHoverBackgroundColor: 'Neutral-fill-1',
410
+ buttonSplitlineFullBackgroundColor: 'Neutral-text-2',
411
+ carouselIndicatorBackgroundColor: 'Neutral-text-3',
412
+ carouselIndicatorActiveBackgroundColor: 'Neutral-text-5',
413
+ menuDarkHeaderBorderColor: 'Neutral-border-1',
414
+ menuSearchDarkFocusBackgroundColor: 'Neutral-fill-1',
415
+ menuSearchDarkFocusShadow: 'Brand-2'
416
+ };
417
+
418
+ // 组件 token 的值保持为全局 token 名称,由 setToken 在调用时解析为当前 prefix 下的 css var 引用,
419
+ // 这样 setConfig 修改 prefix、或在此基础上覆盖全局 token 时,组件 token 都能跟随
420
+ var DarkToken = _objectSpread(_objectSpread({}, DarkCommonToken), DarkComponentToken);
421
+ var _default = exports.default = DarkToken;
package/esm/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Tokens as TokenType } from './token/type';
2
2
  import CommonTokenMap, { CommonToken } from './token/token';
3
+ import DarkTokens from './token/dark';
3
4
  import setToken from './utils/token-setter';
4
5
  import { setConfig } from './config';
5
6
  import { AlertTokens } from './alert/type';
@@ -57,6 +58,6 @@ export type { TokenType };
57
58
  export * from './hooks';
58
59
  export { getTokenName } from './utils/css-var';
59
60
  export * from './utils/css-var';
60
- export { CommonToken, CommonTokenMap, ComponentTokenMap, setToken, setConfig };
61
+ export { CommonToken, CommonTokenMap, ComponentTokenMap, DarkTokens, setToken, setConfig };
61
62
  export default Tokens;
62
63
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,cAAc,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,EAAE,cAAc,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BAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAE3F,eAAe,MAAM,CAAC"}
package/esm/index.js CHANGED
@@ -5,6 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import CommonTokenMap, { CommonToken } from "./token/token";
8
+ import DarkTokens from "./token/dark";
8
9
  import setToken from "./utils/token-setter";
9
10
  import { setConfig } from "./config";
10
11
  import Alert, { Alert as defaultAlert } from "./alert";
@@ -60,5 +61,5 @@ var ComponentTokenMap = _objectSpread(_objectSpread(_objectSpread(_objectSpread(
60
61
  export * from "./hooks";
61
62
  export { getTokenName } from "./utils/css-var";
62
63
  export * from "./utils/css-var";
63
- export { CommonToken, CommonTokenMap, ComponentTokenMap, setToken, setConfig };
64
+ export { CommonToken, CommonTokenMap, ComponentTokenMap, DarkTokens, setToken, setConfig };
64
65
  export default Tokens;
@@ -0,0 +1,5 @@
1
+ import { Tokens } from './type';
2
+ import type { ThemeTokens } from '../index';
3
+ declare const DarkToken: Partial<ThemeTokens & Tokens>;
4
+ export default DarkToken;
5
+ //# sourceMappingURL=dark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dark.d.ts","sourceRoot":"","sources":["dark.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAyZ5C,QAAA,MAAM,SAAS,EAAE,OAAO,CAAC,WAAW,GAAG,MAAM,CAAiD,CAAC;AAE/F,eAAe,SAAS,CAAC"}
@@ -0,0 +1,415 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ // 暗色主题下覆盖的全局 token
8
+ var DarkCommonToken = {
9
+ 'Brand-1': '#283546',
10
+ 'Brand-2': '#2A4366',
11
+ 'Brand-10': '#D9F0FF',
12
+ 'Brand-3': '#2B5285',
13
+ 'Brand-4': '#2D61A5',
14
+ 'Brand-5': '#3079DA',
15
+ 'Brand-6': '#3288FA',
16
+ 'Brand-7': '#58A9FC',
17
+ 'Brand-8': '#8BC8FD',
18
+ 'Brand-9': '#B2DCFE',
19
+ 'Neutral-text-5': '#FFFFFFE6',
20
+ 'Neutral-text-4': '#FFFFFFBF',
21
+ 'Neutral-text-3': '#FFFFFF99',
22
+ 'Neutral-text-2': '#FFFFFF4D',
23
+ 'Neutral-border-2': '#555555',
24
+ 'Neutral-border-1': '#333333',
25
+ 'Neutral-fill-4': '#515151',
26
+ 'Neutral-fill-3': '#3B3B3B',
27
+ 'Neutral-fill-2': '#303030',
28
+ 'Neutral-fill-1': '#262626',
29
+ 'Danger-1': '#412B2B',
30
+ 'Danger-10': '#FFECE8',
31
+ 'Danger-2': '#542E2E',
32
+ 'Danger-3': '#6F3233',
33
+ 'Danger-4': '#C33136',
34
+ 'Danger-5': '#B83E40',
35
+ 'Danger-6': '#DC4446',
36
+ 'Danger-7': '#E36461',
37
+ 'Danger-8': '#F7ADA6',
38
+ 'Danger-9': '#FBCDC7',
39
+ 'Success-1': '#20392E',
40
+ 'Success-2': '#1D4534',
41
+ 'Success-10': '#EBFFF3',
42
+ 'Success-3': '#17583C',
43
+ 'Success-4': '#11915E',
44
+ 'Success-5': '#088A51',
45
+ 'Success-6': '#00A35C',
46
+ 'Success-7': '#21B570',
47
+ 'Success-8': '#7BDCA9',
48
+ 'Success-9': '#B0EECB',
49
+ 'Warning-1': '#433128',
50
+ 'Warning-10': '#FFF5E8',
51
+ 'Warning-2': '#573929',
52
+ 'Warning-3': '#74442B',
53
+ 'Warning-4': '#CB5C16',
54
+ 'Warning-5': '#C16330',
55
+ 'Warning-6': '#E87233',
56
+ 'Warning-7': '#ED8F55',
57
+ 'Warning-8': '#FBC58A',
58
+ 'Warning-9': '#FDDFB9',
59
+ 'Shadow-2': '0px 4px 10px 0px rgba(2, 11, 24, 0.10)',
60
+ 'Shadow-3': '0px 8px 20px 0px rgba(2, 11, 24, 0.10)',
61
+ 'Shadow-4': '0px -2px 10px 0px rgba(2, 11, 24, 0.08)',
62
+ 'Neutral-fill-9': '#E4E4E4',
63
+ 'Neutral-fill-10': '#FFFFFF',
64
+ 'Neutral-fill-6': '#A4A4A4',
65
+ 'Neutral-fill-8': '#CCCCCC',
66
+ 'Mask-fill-1': '#00000080',
67
+ 'Neutral-fill-11': '#2A2A2A',
68
+ 'Neutral-fill-5': '#757575',
69
+ 'Neutral-text-1': '#FFFFFFE6',
70
+ 'Cyan-1': '#233A3A',
71
+ 'Cyan-10': '#B3EEE6',
72
+ 'Cyan-2': '#224747',
73
+ 'Cyan-3': '#1F5A5A',
74
+ 'Cyan-4': '#1C7574',
75
+ 'Cyan-5': '#188F8E',
76
+ 'Cyan-6': '#15A9A8',
77
+ 'Cyan-7': '#34BAB6',
78
+ 'Cyan-8': '#59CBC4',
79
+ 'Cyan-9': '#83DDD4',
80
+ 'Indigo-1': '#2D2E44',
81
+ 'Indigo-10': '#CAD1FC',
82
+ 'Indigo-2': '#323358',
83
+ 'Indigo-3': '#393A77',
84
+ 'Indigo-4': '#43449F',
85
+ 'Indigo-5': '#4D4EC7',
86
+ 'Indigo-6': '#5658F0',
87
+ 'Indigo-7': '#7278F3',
88
+ 'Indigo-8': '#8E97F6',
89
+ 'Indigo-9': '#ACB5F9',
90
+ 'Lemon-1': '#433B24',
91
+ 'Lemon-10': '#FAF4BB',
92
+ 'Lemon-2': '#564A22',
93
+ 'Lemon-3': '#725F20',
94
+ 'Lemon-4': '#997C1D',
95
+ 'Lemon-5': '#BF981A',
96
+ 'Lemon-6': '#E5B517',
97
+ 'Lemon-7': '#EAC83D',
98
+ 'Lemon-8': '#EFD866',
99
+ 'Lemon-9': '#F5E78F',
100
+ 'Magenta-1': '#412A36',
101
+ 'Magenta-10': '#F7C3D8',
102
+ 'Magenta-2': '#532D41',
103
+ 'Magenta-3': '#6D3152',
104
+ 'Magenta-4': '#913767',
105
+ 'Magenta-5': '#B43C7D',
106
+ 'Magenta-7': '#E05FA0',
107
+ 'Magenta-8': '#E87FB0',
108
+ 'Magenta-9': '#EFA0C2',
109
+ 'Neon-1': '#353C23',
110
+ 'Neon-10': '#E8F1B4',
111
+ 'Neon-2': '#3F4B21',
112
+ 'Neon-3': '#4E621D',
113
+ 'Neon-4': '#637F19',
114
+ 'Neon-5': '#779D14',
115
+ 'Neon-6': '#8BBB10',
116
+ 'Neon-7': '#A3C932',
117
+ 'Neon-8': '#BBD659',
118
+ 'Neon-9': '#D2E484',
119
+ 'Orange-1': '#433523',
120
+ 'Orange-10': '#FAE6BA',
121
+ 'Orange-2': '#573E21',
122
+ 'Orange-3': '#744D1D',
123
+ 'Orange-4': '#9A6019',
124
+ 'Orange-5': '#C17414',
125
+ 'Orange-6': '#E88710',
126
+ 'Orange-7': '#EDA138',
127
+ 'Orange-8': '#F1BA62',
128
+ 'Orange-9': '#F6D18D',
129
+ 'Brown-1': '#393229',
130
+ 'Brown-10': '#EDDFBE',
131
+ 'Brown-2': '#463B2C',
132
+ 'Brown-3': '#59472F',
133
+ 'Brown-4': '#735834',
134
+ 'Brown-5': '#8C6839',
135
+ 'Brown-6': '#A6793D',
136
+ 'Brown-7': '#B89157',
137
+ 'Brown-8': '#CAAB76',
138
+ 'Brown-9': '#DBC598',
139
+ 'Purple-1': '#342B3F',
140
+ 'Purple-10': '#E0C3F5',
141
+ 'Purple-2': '#3D2E50',
142
+ 'Purple-3': '#4B3368',
143
+ 'Purple-4': '#5D398A',
144
+ 'Purple-5': '#6F3FAB',
145
+ 'Purple-6': '#8245CC',
146
+ 'Purple-7': '#9A61D6',
147
+ 'Purple-8': '#B17FE0',
148
+ 'Purple-9': '#C9A0EB',
149
+ 'Tangerine-1': '#402E29',
150
+ 'Tangerine-10': '#F7D3C2',
151
+ 'Tangerine-2': '#52332C',
152
+ 'Tangerine-3': '#6C3B2F',
153
+ 'Tangerine-4': '#904633',
154
+ 'Tangerine-5': '#B35038',
155
+ 'Tangerine-6': '#D65B3C',
156
+ 'Tangerine-7': '#DE795A',
157
+ 'Tangerine-8': '#E6977B',
158
+ 'Tangerine-9': '#EFB69D',
159
+ 'Background-layout': '#1B1B1B',
160
+ 'Neutral-fill-7': '#B5B5B5',
161
+ 'Background-popup': '#303030'
162
+ };
163
+
164
+ // 暗色主题下额外调整的组件 token,值为引用的全局 token key
165
+ var DarkComponentToken = {
166
+ buttonPrimaryDisabledFontColor: 'Neutral-text-2',
167
+ buttonSecondaryFontColor: 'Neutral-text-1',
168
+ buttonWarningDisabledFontColor: 'Neutral-text-2',
169
+ inputFontColor: 'Neutral-text-5',
170
+ selectFontColor: 'Neutral-text-1',
171
+ selectBorderWidth: 'Border-2',
172
+ selectPlaceholderColor: 'Neutral-text-2',
173
+ selectBackgroundColor: 'Neutral-fill-2',
174
+ buttonSuccessDisabledFontColor: 'Neutral-text-2',
175
+ buttonDangerDisabledFontColor: 'Neutral-text-2',
176
+ buttonSecondaryActiveBackgroundColor: 'Neutral-fill-4',
177
+ buttonSecondaryActiveBorderColor: 'Neutral-fill-4',
178
+ popoverBackgroundColor: 'Neutral-fill-2',
179
+ popoverSuccessBackgroundColor: 'Success-1',
180
+ popoverInfoBackgroundColor: 'Brand-1',
181
+ tableTbodyHoverBackgroundColor: 'Neutral-fill-3',
182
+ cardBackgroundColor: 'Neutral-fill-1',
183
+ cascaderOptionBackgroundColor: 'Neutral-fill-2',
184
+ tooltipBackgroundColor: 'Neutral-fill-3',
185
+ tooltipLightColor: 'Neutral-fill-2',
186
+ tooltipLightBackgroundColor: 'Neutral-fill-9',
187
+ tooltipPrimaryBackgroundColor: 'Brand-1',
188
+ tooltipSuccessColor: 'Success-6',
189
+ treeLineBackgroundColor: 'Neutral-border-2',
190
+ treeContentActiveBackgroundColor: 'Brand-1',
191
+ datePickerCellHoverBackgroundColor: 'Neutral-fill-3',
192
+ tagInfoBackgroundColor: 'Brand-1',
193
+ alertInfoBackgroundColor: 'Brand-1',
194
+ messageBackgroundColor: 'Neutral-fill-2',
195
+ progressCircleInfoFontColor: 'Neutral-text-5',
196
+ dropdownListBackgroundColor: 'Neutral-fill-2',
197
+ menuItemActiveBackgroundColor: 'Brand-1',
198
+ dividerFontColor: 'Neutral-text-2',
199
+ cascaderPanelBackgroundColor: 'Neutral-fill-2',
200
+ cascaderOptionDisabledBackgroundColor: 'Neutral-fill-2',
201
+ cascaderOptionHoverBackgroundColor: 'Neutral-fill-3',
202
+ datePickerPanelBackgroundColor: 'Neutral-fill-2',
203
+ dropdownOptionHoverBackgroundColor: 'Neutral-fill-3',
204
+ treeSelectPanelBackgroundColor: 'Neutral-fill-2',
205
+ treeSelectContentHoverBackgroundColor: 'Neutral-fill-3',
206
+ modalPanelBackground: 'Neutral-fill-11',
207
+ dropdownOptionDisabledBackgroundColor: 'Neutral-fill-2',
208
+ messageBorderColor: 'Transparent',
209
+ modalPanelBorder: 'Transparent',
210
+ popoverBorderColor: 'Transparent',
211
+ dropdownOptionBackgroundColor: 'Neutral-fill-2',
212
+ selectPanelBackgroundColor: 'Neutral-fill-2',
213
+ selectOptionBackgroundColor: 'Neutral-fill-2',
214
+ selectOptionHoverBackgroundColor: 'Neutral-fill-3',
215
+ selectOptionDisabledBackgroundColor: 'Neutral-fill-2',
216
+ switchCheckedCircleFill: 'Neutral-text-1',
217
+ switchCheckedDisabledCircleFill: 'Neutral-text-2',
218
+ switchCheckedDisabledFontColor: 'Neutral-text-2',
219
+ descriptionsLabelColor: 'Neutral-text-3',
220
+ menuDarkItemBackgroundColor: 'Neutral-fill-1',
221
+ menuDarkItemHoverBackgroundColor: 'Neutral-fill-2',
222
+ menuDarkItemActiveBackgroundColor: 'Brand-4',
223
+ menuDarkItemDisabledBackgroundColor: 'Neutral-fill-1',
224
+ rateFrontBackgroundColor: 'Lemon-6',
225
+ alertInfoBorderColor: 'Brand-2',
226
+ listStripedBackgroundColor: 'Neutral-fill-11',
227
+ menuItemActiveFontColor: 'Brand-6',
228
+ tabsFillCheckedBackgroundColor: 'Neutral-fill-3',
229
+ buttonPrimaryOutlineDisabledFontColor: 'Brand-3',
230
+ buttonPrimaryOutlineDisabledBorderColor: 'Brand-3',
231
+ buttonWarningOutlineDisabledFontColor: 'Warning-3',
232
+ buttonSecondaryOutlineDisabledBorderColor: 'Neutral-border-2',
233
+ cascaderOptionActiveBackgroundColor: 'Brand-2',
234
+ tagInfoFillDisabledFontColor: 'Neutral-text-2',
235
+ tagSuccessFillDisabledFontColor: 'Neutral-text-2',
236
+ tagWarningFillDisabledFontColor: 'Neutral-text-2',
237
+ tagDangerFillDisabledFontColor: 'Neutral-text-2',
238
+ tooltipWarningColor: 'Warning-6',
239
+ tooltipDangerColor: 'Danger-6',
240
+ checkboxIconDisabledBackgroundColor: 'Neutral-fill-3',
241
+ checkboxIconBackgroundColor: 'Transparent',
242
+ checkboxIconDisabledBorderColor: 'Neutral-border-2',
243
+ radioIconBackgroundColor: 'Transparent',
244
+ radioIconDisabledBackgroundColor: 'Neutral-fill-3',
245
+ radioIconDisabledColor: 'Neutral-border-2',
246
+ datePickerTimeItemActiveBackgroundColor: 'Brand-2',
247
+ selectOptionActiveBackgroundColor: 'Brand-2',
248
+ dropdownOptionSelectBackgroundColor: 'Brand-2',
249
+ treeSelectContentActiveBackgroundColor: 'Brand-2',
250
+ treeSelectContentDisabledHoverBackgroundColor: 'Neutral-fill-3',
251
+ sliderValueHoverBackgroundColor: 'Neutral-fill-3',
252
+ checkboxIconCheckedColor: 'Neutral-text-1',
253
+ checkboxIconCheckedDisabledColor: 'Neutral-text-2',
254
+ switchDisabledCircleCheckedFill: 'Neutral-text-2',
255
+ tagTangerineFontColor: 'Tangerine-6',
256
+ tagTangerineBackgroundColor: 'Tangerine-1',
257
+ tagTangerineBorderColor: 'Tangerine-1',
258
+ tagTangerineOutlineFontColor: 'Tangerine-6',
259
+ tagTangerineOutlineBorderColor: 'Tangerine-3',
260
+ tagTangerineFillBackgroundColor: 'Tangerine-6',
261
+ tagTangerineFillBorderColor: 'Tangerine-6',
262
+ tagPurpleFontColor: 'Purple-6',
263
+ tagPurpleBackgroundColor: 'Purple-1',
264
+ tagPurpleBorderColor: 'Purple-1',
265
+ tagPurpleOutlineFontColor: 'Purple-6',
266
+ tagPurpleOutlineBorderColor: 'Purple-3',
267
+ tagPurpleFillBackgroundColor: 'Purple-6',
268
+ tagPurpleFillBorderColor: 'Purple-6',
269
+ tagMagentaFontColor: 'Magenta-6',
270
+ tagMagentaBackgroundColor: 'Magenta-1',
271
+ tagMagentaBorderColor: 'Magenta-1',
272
+ tagMagentaOutlineFontColor: 'Magenta-6',
273
+ tagMagentaOutlineBorderColor: 'Magenta-3',
274
+ tagMagentaFillBackgroundColor: 'Magenta-6',
275
+ tagMagentaFillBorderColor: 'Magenta-6',
276
+ tagBrownFontColor: 'Brown-6',
277
+ tagBrownBackgroundColor: 'Brown-1',
278
+ tagBrownBorderColor: 'Brown-1',
279
+ tagBrownOutlineFontColor: 'Brown-6',
280
+ tagBrownOutlineBorderColor: 'Brown-3',
281
+ tagBrownFillBackgroundColor: 'Brown-6',
282
+ tagBrownFillBorderColor: 'Brown-6',
283
+ tagIndigoFontColor: 'Indigo-6',
284
+ tagIndigoBackgroundColor: 'Indigo-1',
285
+ tagIndigoBorderColor: 'Indigo-1',
286
+ tagIndigoOutlineFontColor: 'Indigo-6',
287
+ tagIndigoOutlineBorderColor: 'Indigo-3',
288
+ tagIndigoFillBackgroundColor: 'Indigo-6',
289
+ tagIndigoFillBorderColor: 'Indigo-6',
290
+ tagCyanFontColor: 'Cyan-6',
291
+ tagCyanBackgroundColor: 'Cyan-1',
292
+ tagCyanBorderColor: 'Cyan-1',
293
+ tagCyanOutlineFontColor: 'Cyan-6',
294
+ tagCyanOutlineBorderColor: 'Cyan-3',
295
+ tagCyanFillBackgroundColor: 'Cyan-6',
296
+ tagCyanFillBorderColor: 'Cyan-6',
297
+ tagNeonFontColor: 'Neon-5',
298
+ tagNeonBackgroundColor: 'Neon-1',
299
+ tagNeonBorderColor: 'Neon-1',
300
+ tagNeonOutlineFontColor: 'Neon-6',
301
+ tagNeonOutlineBorderColor: 'Neon-3',
302
+ tagNeonFillBackgroundColor: 'Neon-6',
303
+ tagNeonFillBorderColor: 'Neon-6',
304
+ tagLemonFontColor: 'Lemon-6',
305
+ tagLemonBackgroundColor: 'Lemon-1',
306
+ tagLemonBorderColor: 'Lemon-1',
307
+ tagLemonOutlineFontColor: 'Lemon-6',
308
+ tagLemonOutlineBorderColor: 'Lemon-3',
309
+ tagLemonFillBackgroundColor: 'Lemon-6',
310
+ tagLemonFillBorderColor: 'Lemon-6',
311
+ tagOrangeFontColor: 'Orange-6',
312
+ tagOrangeBackgroundColor: 'Orange-1',
313
+ tagOrangeBorderColor: 'Orange-1',
314
+ tagOrangeOutlineFontColor: 'Orange-6',
315
+ tagOrangeOutlineBorderColor: 'Orange-3',
316
+ tagOrangeFillBackgroundColor: 'Orange-6',
317
+ tagOrangeFillBorderColor: 'Orange-6',
318
+ tagTangerineDisabledFontColor: 'Tangerine-3',
319
+ tagTangerineDisabledBackgroundColor: 'Tangerine-1',
320
+ tagTangerineDisabledBorderColor: 'Tangerine-1',
321
+ tagTangerineOutlineDisabledFontColor: 'Tangerine-3',
322
+ tagTangerineOutlineDisabledBorderColor: 'Tangerine-2',
323
+ tagTangerineFillDisabledBackgroundColor: 'Tangerine-3',
324
+ tagTangerineFillDisabledBorderColor: 'Tangerine-3',
325
+ tagPurpleDisabledFontColor: 'Purple-4',
326
+ tagPurpleDisabledBackgroundColor: 'Purple-1',
327
+ tagPurpleDisabledBorderColor: 'Purple-1',
328
+ tagPurpleOutlineDisabledFontColor: 'Purple-3',
329
+ tagPurpleOutlineDisabledBorderColor: 'Purple-2',
330
+ tagPurpleFillDisabledBackgroundColor: 'Purple-3',
331
+ tagPurpleFillDisabledBorderColor: 'Purple-3',
332
+ tagBrownDisabledFontColor: 'Brown-3',
333
+ tagBrownDisabledBackgroundColor: 'Brown-1',
334
+ tagBrownDisabledBorderColor: 'Brown-1',
335
+ tagBrownOutlineDisabledFontColor: 'Brown-3',
336
+ tagBrownOutlineDisabledBorderColor: 'Brown-2',
337
+ tagBrownFillDisabledBackgroundColor: 'Brown-3',
338
+ tagBrownFillDisabledBorderColor: 'Brown-3',
339
+ tagMagentaDisabledFontColor: 'Magenta-3',
340
+ tagMagentaDisabledBackgroundColor: 'Magenta-1',
341
+ tagMagentaDisabledBorderColor: 'Magenta-1',
342
+ tagMagentaOutlineDisabledFontColor: 'Magenta-3',
343
+ tagMagentaOutlineDisabledBorderColor: 'Magenta-2',
344
+ tagMagentaFillDisabledBackgroundColor: 'Magenta-3',
345
+ tagMagentaFillDisabledBorderColor: 'Magenta-3',
346
+ tagIndigoDisabledFontColor: 'Indigo-3',
347
+ tagIndigoDisabledBackgroundColor: 'Indigo-1',
348
+ tagIndigoDisabledBorderColor: 'Indigo-1',
349
+ tagIndigoOutlineDisabledFontColor: 'Indigo-3',
350
+ tagIndigoOutlineDisabledBorderColor: 'Indigo-2',
351
+ tagIndigoFillDisabledBackgroundColor: 'Indigo-3',
352
+ tagIndigoFillDisabledBorderColor: 'Indigo-3',
353
+ tagCyanDisabledFontColor: 'Cyan-3',
354
+ tagCyanDisabledBackgroundColor: 'Cyan-1',
355
+ tagCyanDisabledBorderColor: 'Cyan-1',
356
+ tagCyanOutlineDisabledFontColor: 'Cyan-3',
357
+ tagCyanOutlineDisabledBorderColor: 'Cyan-2',
358
+ tagCyanFillDisabledBackgroundColor: 'Cyan-3',
359
+ tagCyanFillDisabledBorderColor: 'Cyan-3',
360
+ tagNeonDisabledFontColor: 'Neon-3',
361
+ tagNeonDisabledBackgroundColor: 'Neon-1',
362
+ tagNeonDisabledBorderColor: 'Neon-1',
363
+ tagNeonOutlineDisabledFontColor: 'Neon-3',
364
+ tagNeonOutlineDisabledBorderColor: 'Neon-2',
365
+ tagNeonFillDisabledBackgroundColor: 'Neon-3',
366
+ tagNeonFillDisabledBorderColor: 'Neon-3',
367
+ tagLemonDisabledFontColor: 'Lemon-3',
368
+ tagLemonDisabledBackgroundColor: 'Lemon-1',
369
+ tagLemonDisabledBorderColor: 'Lemon-1',
370
+ tagLemonOutlineDisabledFontColor: 'Lemon-3',
371
+ tagLemonOutlineDisabledBorderColor: 'Lemon-2',
372
+ tagLemonFillDisabledBackgroundColor: 'Lemon-3',
373
+ tagLemonFillDisabledBorderColor: 'Lemon-3',
374
+ tagOrangeDisabledFontColor: 'Orange-3',
375
+ tagOrangeDisabledBackgroundColor: 'Orange-1',
376
+ tagOrangeDisabledBorderColor: 'Orange-1',
377
+ tagOrangeOutlineDisabledFontColor: 'Orange-3',
378
+ tagOrangeOutlineDisabledBorderColor: 'Orange-2',
379
+ tagOrangeFillDisabledBackgroundColor: 'Orange-3',
380
+ tagOrangeFillDisabledBorderColor: 'Orange-3',
381
+ tagMagentaFillDisabledFontColor: 'Neutral-text-2',
382
+ tagBrownFillDisabledFontColor: 'Neutral-text-2',
383
+ tagPurpleFillDisabledFontColor: 'Neutral-text-2',
384
+ tagIndigoFillDisabledFontColor: 'Neutral-text-2',
385
+ tagCyanFillDisabledFontColor: 'Neutral-text-2',
386
+ tagNeonFillDisabledFontColor: 'Neutral-text-2',
387
+ tagLemonFillDisabledFontColor: 'Neutral-text-2',
388
+ tagOrangeFillDisabledFontColor: 'Neutral-text-2',
389
+ tagTangerineFillDisabledFontColor: 'Neutral-text-2',
390
+ tagInfoOutlineBorderColor: 'Brand-3',
391
+ tagSuccessOutlineBorderColor: 'Success-3',
392
+ tagWarningOutlineBorderColor: 'Warning-3',
393
+ tagDangerOutlineBorderColor: 'Danger-3',
394
+ tagInfoOutlineDisabledBorderColor: 'Brand-2',
395
+ tagSuccessOutlineDisabledBorderColor: 'Success-2',
396
+ tagWarningOutlineDisabledBorderColor: 'Warning-2',
397
+ tagDangerOutlineDisabledBorderColor: 'Danger-2',
398
+ treeSelectContentDisabledBackgroundColor: 'Neutral-fill-2',
399
+ inputClearColor: 'Neutral-text-2',
400
+ inputHoverClearColor: 'Neutral-text-3',
401
+ menuDarkItemOpenBackgroundColor: 'Neutral-fill-1',
402
+ menuSearchDarkBackgroundColor: 'Neutral-fill-2',
403
+ menuSearchDarkHoverBackgroundColor: 'Neutral-fill-1',
404
+ buttonSplitlineFullBackgroundColor: 'Neutral-text-2',
405
+ carouselIndicatorBackgroundColor: 'Neutral-text-3',
406
+ carouselIndicatorActiveBackgroundColor: 'Neutral-text-5',
407
+ menuDarkHeaderBorderColor: 'Neutral-border-1',
408
+ menuSearchDarkFocusBackgroundColor: 'Neutral-fill-1',
409
+ menuSearchDarkFocusShadow: 'Brand-2'
410
+ };
411
+
412
+ // 组件 token 的值保持为全局 token 名称,由 setToken 在调用时解析为当前 prefix 下的 css var 引用,
413
+ // 这样 setConfig 修改 prefix、或在此基础上覆盖全局 token 时,组件 token 都能跟随
414
+ var DarkToken = _objectSpread(_objectSpread({}, DarkCommonToken), DarkComponentToken);
415
+ export default DarkToken;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/theme",
3
- "version": "3.10.4-beta.1",
3
+ "version": "3.10.4-beta.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "",