@akinon/ui-theme 0.5.0 → 0.7.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.
@@ -1,6 +1,7 @@
1
1
  export declare const neutral: {
2
2
  '50': string;
3
3
  '75': string;
4
+ '80': string;
4
5
  '100': string;
5
6
  '150': string;
6
7
  '200': string;
@@ -10,6 +11,7 @@ export declare const neutral: {
10
11
  '375': string;
11
12
  '400': string;
12
13
  '500': string;
14
+ '550': string;
13
15
  '600': string;
14
16
  '700': string;
15
17
  '800': string;
@@ -17,9 +19,11 @@ export declare const neutral: {
17
19
  '950': string;
18
20
  };
19
21
  export declare const ebonyClay: {
22
+ '25': string;
20
23
  '50': string;
21
24
  '100': string;
22
25
  '150': string;
26
+ '175': string;
23
27
  '200': string;
24
28
  '300': string;
25
29
  '350': string;
@@ -32,18 +36,24 @@ export declare const ebonyClay: {
32
36
  '600': string;
33
37
  '700': string;
34
38
  '800': string;
39
+ '850': string;
35
40
  '900': string;
36
41
  '950': string;
42
+ '951': string;
37
43
  };
38
44
  export declare const gray: {
39
45
  '100': string;
46
+ '150': string;
40
47
  '200': string;
48
+ '250': string;
41
49
  '300': string;
42
50
  '400': string;
43
51
  '500': string;
44
52
  '600': string;
45
53
  '700': string;
54
+ '750': string;
46
55
  '800': string;
56
+ '850': string;
47
57
  '900': string;
48
58
  '925': string;
49
59
  '950': string;
@@ -54,12 +64,16 @@ export declare const red: {
54
64
  '200': string;
55
65
  '300': string;
56
66
  '400': string;
67
+ '425': string;
68
+ '450': string;
57
69
  '500': string;
58
70
  '600': string;
59
71
  '700': string;
60
72
  '800': string;
61
73
  '900': string;
62
74
  '950': string;
75
+ '951': string;
76
+ '952': string;
63
77
  };
64
78
  export declare const green: {
65
79
  '50': string;
@@ -73,6 +87,10 @@ export declare const green: {
73
87
  '800': string;
74
88
  '900': string;
75
89
  '950': string;
90
+ '951': string;
91
+ '952': string;
92
+ '953': string;
93
+ '954': string;
76
94
  };
77
95
  export declare const blue: {
78
96
  '50': string;
@@ -86,6 +104,10 @@ export declare const blue: {
86
104
  '800': string;
87
105
  '900': string;
88
106
  '950': string;
107
+ '951': string;
108
+ '952': string;
109
+ '953': string;
110
+ '954': string;
89
111
  };
90
112
  export declare const purple: {
91
113
  '50': string;
@@ -99,6 +121,9 @@ export declare const purple: {
99
121
  '800': string;
100
122
  '900': string;
101
123
  '950': string;
124
+ '951': string;
125
+ '952': string;
126
+ '953': string;
102
127
  };
103
128
  export declare const pink: {
104
129
  '50': string;
@@ -121,7 +146,6 @@ export declare const azure: {
121
146
  '400': string;
122
147
  '500': string;
123
148
  '600': string;
124
- '750': string;
125
149
  '700': string;
126
150
  '800': string;
127
151
  '900': string;
@@ -133,12 +157,18 @@ export declare const orange: {
133
157
  '200': string;
134
158
  '300': string;
135
159
  '400': string;
160
+ '425': string;
161
+ '450': string;
136
162
  '500': string;
137
163
  '600': string;
138
164
  '700': string;
139
165
  '800': string;
140
166
  '900': string;
141
167
  '950': string;
168
+ '951': string;
169
+ '952': string;
170
+ '953': string;
171
+ '954': string;
142
172
  };
143
173
  export declare const akinon: {
144
174
  '50': string;
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/colors.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;CAiBnB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAkBrB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;CAYhB,CAAC;AAEF,eAAO,MAAM,GAAG;;;;;;;;;;;;CAYf,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYjB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;CAYhB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYlB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;CAYhB,CAAC;AAGF,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAajB,CAAC;AAGF,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYlB,CAAC;AAGF,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYlB,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/colors.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;CAgBhB,CAAC;AAEF,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;CAgBf,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;CAgBjB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;CAgBhB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAelB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;CAYhB,CAAC;AAGF,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYjB,CAAC;AAGF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAkBlB,CAAC;AAGF,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYlB,CAAC"}
@@ -5,7 +5,8 @@ exports.akinon = exports.orange = exports.azure = exports.pink = exports.purple
5
5
  exports.neutral = {
6
6
  '50': '#ffffff',
7
7
  '75': '#fbfcfd',
8
- '100': '#f5f5f5',
8
+ '80': '#fafafa',
9
+ '100': '#f5f6f6',
9
10
  '150': '#f1f3f9',
10
11
  '200': '#e5e5e5',
11
12
  '250': '#d6e1e3',
@@ -14,6 +15,7 @@ exports.neutral = {
14
15
  '375': '#bfbfbf',
15
16
  '400': '#a3a3a3',
16
17
  '500': '#737373',
18
+ '550': '#626262',
17
19
  '600': '#525252',
18
20
  '700': '#404040',
19
21
  '800': '#262626',
@@ -21,9 +23,11 @@ exports.neutral = {
21
23
  '950': '#0a0a0a'
22
24
  };
23
25
  exports.ebonyClay = {
26
+ '25': '#6c7ebe',
24
27
  '50': '#677084',
25
28
  '100': '#5c6880',
26
29
  '150': '#58669a',
30
+ '175': '#495679',
27
31
  '200': '#515c7c',
28
32
  '300': '#465178',
29
33
  '350': '#43464f',
@@ -36,18 +40,24 @@ exports.ebonyClay = {
36
40
  '600': '#232b3b', // applied from design: header input bg
37
41
  '700': '#1d2331',
38
42
  '800': '#171d27',
43
+ '850': '#131826',
39
44
  '900': '#11171e',
40
- '950': '#0c111a'
45
+ '950': '#0c111a',
46
+ '951': '#000000bf'
41
47
  };
42
48
  exports.gray = {
43
49
  '100': '#f5f5f5',
50
+ '150': '#e9f0f7',
44
51
  '200': '#e5e5e5',
52
+ '250': '#d4d6f0',
45
53
  '300': '#d4d4d4',
46
54
  '400': '#a3a3a3',
47
55
  '500': '#788195', // applied from design: header text placeholder
48
56
  '600': '#525252',
49
57
  '700': '#404040',
58
+ '750': '#292b2c',
50
59
  '800': '#262626',
60
+ '850': '#30363e',
51
61
  '900': '#3b404c', // applied from design: layout border
52
62
  '925': '#36373b',
53
63
  '950': '#171717'
@@ -58,12 +68,16 @@ exports.red = {
58
68
  '200': '#fce0cf',
59
69
  '300': '#fac7b1',
60
70
  '400': '#f58d7a',
71
+ '425': '#ff5163',
72
+ '450': '#f05050',
61
73
  '500': '#ef4444',
62
74
  '600': '#d93636',
63
75
  '700': '#b32525',
64
76
  '800': '#8f1818',
65
77
  '900': '#6b0e0e',
66
- '950': '#450606'
78
+ '950': '#450606',
79
+ '951': '#e33030',
80
+ '952': '#f6b5b5'
67
81
  };
68
82
  exports.green = {
69
83
  '50': '#fafcf2',
@@ -76,7 +90,11 @@ exports.green = {
76
90
  '700': '#529e13',
77
91
  '800': '#3d800d',
78
92
  '900': '#275e07',
79
- '950': '#163d03'
93
+ '950': '#163d03',
94
+ '951': '#67b50c',
95
+ '952': '#71d200',
96
+ '953': '#e3f6cc',
97
+ '954': '#7bd500'
80
98
  };
81
99
  exports.blue = {
82
100
  '50': '#f5fcff',
@@ -89,7 +107,11 @@ exports.blue = {
89
107
  '700': '#2153b8',
90
108
  '800': '#153b94',
91
109
  '900': '#0c286e',
92
- '950': '#051647'
110
+ '950': '#051647',
111
+ '951': '#126a6f',
112
+ '952': '#75e2e7',
113
+ '953': '#c6f0f2',
114
+ '954': '#363d51'
93
115
  };
94
116
  exports.purple = {
95
117
  '50': '#fbf7fc',
@@ -102,7 +124,10 @@ exports.purple = {
102
124
  '700': '#72467b',
103
125
  '800': '#633e6a',
104
126
  '900': '#543659',
105
- '950': '#341b37'
127
+ '950': '#341b37',
128
+ '951': '#7667b6',
129
+ '952': '#9387c7',
130
+ '953': '#eae7f4'
106
131
  };
107
132
  exports.pink = {
108
133
  '50': '#fff7fd',
@@ -126,7 +151,6 @@ exports.azure = {
126
151
  '400': '#599cff',
127
152
  '500': '#4482ff', // applied from design: primary button color
128
153
  '600': '#1b55f5',
129
- '750': '#1890ff',
130
154
  '700': '#1440e1',
131
155
  '800': '#1734b6',
132
156
  '900': '#19318f',
@@ -139,12 +163,18 @@ exports.orange = {
139
163
  '200': '#ffebbf',
140
164
  '300': '#fcd997',
141
165
  '400': '#fcb44e',
166
+ '425': '#ffaa49',
167
+ '450': '#ce8d0b',
142
168
  '500': '#f98003',
143
169
  '600': '#e06e02',
144
170
  '700': '#ba5202',
145
171
  '800': '#963d02',
146
172
  '900': '#702900',
147
- '950': '#471700'
173
+ '950': '#471700',
174
+ '951': '#ff7041',
175
+ '952': '#ff7041',
176
+ '953': '#fce0ce',
177
+ '954': '#ffc76b'
148
178
  };
149
179
  // Akinon brand color and shades.
150
180
  exports.akinon = {
@@ -1,2 +1,3 @@
1
1
  export * from './theme';
2
+ export * from './types.d';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./theme"), exports);
18
+ __exportStar(require("./types.d"), exports);
@@ -34,7 +34,7 @@ export declare const useToken: typeof antdTheme.useToken;
34
34
  * --color-{object_key}-{object_key}: {color_value};
35
35
  */
36
36
  export declare const getCssVariables: () => {
37
- [key: string]: string;
37
+ [key: string]: string | number;
38
38
  };
39
39
  export {};
40
40
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAiBvD,eAAO,MAAM,QAAQ,KAAK,CAAC;AAE3B,KAAK,SAAS,GACV,QAAQ,GACR,OAAO,GACP,MAAM,GACN,QAAQ,GACR,KAAK,GACL,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,WAAW,GACX,SAAS,CAAC;AAEd,KAAK,KAAK,GAAG;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAevC,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,EAAE,kBAiGnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,OAAO,SAAS,CAAC,QAA6B,CAAC;AAEtE;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;CAc3B,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAqCvD,eAAO,MAAM,QAAQ,KAAK,CAAC;AAE3B,KAAK,SAAS,GACV,QAAQ,GACR,OAAO,GACP,MAAM,GACN,QAAQ,GACR,KAAK,GACL,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,WAAW,GACX,SAAS,CAAC;AAEd,KAAK,KAAK,GAAG;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAevC,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,EAAE,kBAkWnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,OAAO,SAAS,CAAC,QAA6B,CAAC;AAEtE;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;CA2B3B,CAAC"}
package/dist/cjs/theme.js CHANGED
@@ -52,6 +52,91 @@ exports.theme = {
52
52
  fontSize: exports.fontSize * 0.875
53
53
  },
54
54
  components: {
55
+ Button: {
56
+ // type: primary
57
+ colorPrimary: colors.azure['500'],
58
+ colorPrimaryHover: colors.azure['600'],
59
+ colorPrimaryActive: colors.azure['700'],
60
+ colorPrimaryText: colors.neutral['50'],
61
+ primaryShadow: 'unset',
62
+ // type: default (secondary)
63
+ defaultBg: colors.neutral['50'],
64
+ defaultColor: colors.azure['500'],
65
+ defaultHoverBg: colors.neutral['100'],
66
+ defaultHoverColor: colors.azure['500'],
67
+ defaultActiveBg: colors.neutral['50'],
68
+ defaultActiveColor: colors.azure['500'],
69
+ defaultBorderColor: colors.azure['500'],
70
+ defaultShadow: 'unset',
71
+ defaultBgSm: colors.gray['750'],
72
+ defaultBgSmHover: colors.gray['800'],
73
+ // prop: danger
74
+ colorError: colors.red['450'],
75
+ colorErrorHover: colors.red['500'],
76
+ colorErrorActive: colors.red['600'],
77
+ colorErrorBorder: colors.red['500'],
78
+ dangerShadow: 'unset',
79
+ colorErrorBgSM: colors.red['425'],
80
+ colorErrorBgSMHover: colors.red['450'],
81
+ colorErrorSMHover: colors.neutral['50'],
82
+ // type: success
83
+ colorSuccessBg: colors.green['500'],
84
+ colorSuccessBorder: colors.green['500'],
85
+ colorSuccessHover: colors.green['600'],
86
+ colorSuccessActive: colors.green['700'],
87
+ // type: warning
88
+ colorWarningBg: colors.neutral['50'],
89
+ colorWarningBorder: colors.neutral['50'],
90
+ colorWarningHover: colors.neutral['100'],
91
+ colorWarningActive: colors.neutral['50'],
92
+ colorWarningText: colors.orange['450'],
93
+ // prop: disabled
94
+ colorBgContainerDisabled: colors.neutral['100'],
95
+ colorTextDisabled: colors.neutral['350'],
96
+ borderColorDisabled: colors.neutral['350'],
97
+ // prop: ghost
98
+ defaultGhostBorderColor: 'transparent',
99
+ defaultGhostColor: colors.azure['500'],
100
+ // all buttons
101
+ contentFontSizeSM: exports.fontSize * 0.75,
102
+ borderRadiusSM: 11,
103
+ paddingBlockSM: 1,
104
+ paddingInlineSM: 20,
105
+ colorText: colors.neutral['50'],
106
+ colorTextHover: colors.neutral['50'],
107
+ contentLineHeightSM: 1,
108
+ controlHeight: 40,
109
+ borderRadius: 5,
110
+ paddingBlock: 10,
111
+ paddingInline: 45,
112
+ contentLineHeight: 1,
113
+ fontWeight: 600
114
+ },
115
+ Checkbox: {
116
+ colorPrimary: colors.ebonyClay['25'],
117
+ colorBgContainer: colors.gray['150'],
118
+ colorText: colors.neutral['350'],
119
+ colorChecked: colors.neutral['50'],
120
+ controlInteractiveSize: 20
121
+ },
122
+ Badge: {
123
+ colorText: colors.neutral['50']
124
+ },
125
+ Radio: {
126
+ radioSize: 14,
127
+ dotSize: 5,
128
+ colorPrimary: colors.azure['500'],
129
+ colorBgContainer: colors.gray['150'],
130
+ colorText: colors.neutral['350'],
131
+ colorChecked: colors.neutral['50'],
132
+ colorBorder: colors.neutral['550'],
133
+ buttonBg: colors.ebonyClay['600'],
134
+ buttonColor: colors.neutral['50'],
135
+ buttonSolidCheckedBg: colors.ebonyClay['600'],
136
+ buttonSolidCheckedColor: colors.neutral['50'],
137
+ buttonSolidCheckedBorder: colors.azure['500'],
138
+ borderRadiusSM: 100
139
+ },
55
140
  Layout: {
56
141
  headerBg: colors.ebonyClay['500'],
57
142
  siderBg: colors.ebonyClay['500']
@@ -72,13 +157,82 @@ exports.theme = {
72
157
  },
73
158
  Breadcrumb: {
74
159
  fontSize: exports.fontSize * 0.625,
75
- lastItemColor: colors.azure['500']
160
+ itemColor: colors.azure['500'],
161
+ lastItemColor: colors.gray['500'],
162
+ paddingBottom: exports.fontSize * 0.5,
163
+ borderBottom: '1px solid var(--color-gray-900)',
164
+ paddingLeft: 20,
165
+ paddingRight: 20,
166
+ marginLeft: 8,
167
+ marginRight: 8,
168
+ fontWeight: 600,
169
+ lineHeight: 1.5,
170
+ separatorColor: colors.azure['500'],
171
+ letterSpacing: exports.fontSize * 0.03,
172
+ marginInline: 0,
173
+ height: 'auto'
174
+ },
175
+ Tag: {
176
+ defaultColorSuccess: colors.green['951'],
177
+ defaultBorderColorSuccess: colors.green['952'],
178
+ defaultBgSuccess: colors.green['953'],
179
+ defaultColorWaiting1: colors.orange['951'],
180
+ defaultBorderColorWaiting1: colors.orange['952'],
181
+ defaultBgWaiting1: colors.orange['953'],
182
+ defaultColorWaiting2: colors.blue['951'],
183
+ defaultBorderColorWaiting2: colors.blue['952'],
184
+ defaultBgWaiting2: colors.blue['953'],
185
+ defaultColorWaiting3: colors.purple['951'],
186
+ defaultBorderColorWaiting3: colors.purple['952'],
187
+ defaultBgWaiting3: colors.purple['953'],
188
+ defaultColorFailed: colors.red['951'],
189
+ defaultBorderColorFailed: colors.red['450'],
190
+ defaultBgFailed: colors.red['952'],
191
+ borderRadius: 5,
192
+ fontSize: exports.fontSize * 0.8125,
193
+ paddingLeft: 15,
194
+ paddingRight: 15,
195
+ fontSizeClose: exports.fontSize * 0.6875,
196
+ fontWeight: 500
197
+ },
198
+ Tooltip: {
199
+ bgColor: colors.ebonyClay['951']
200
+ },
201
+ Flex: {},
202
+ Spin: {},
203
+ Alert: {
204
+ defaultColorSuccess: colors.green['951'],
205
+ defaultBorderColorSuccess: colors.green['952'],
206
+ defaultBgSuccess: colors.green['953'],
207
+ defaultColorWaiting1: colors.orange['951'],
208
+ defaultBorderColorWaiting1: colors.orange['952'],
209
+ defaultBgWaiting1: colors.orange['953'],
210
+ defaultColorWaiting2: colors.blue['951'],
211
+ defaultBorderColorWaiting2: colors.blue['952'],
212
+ defaultBgWaiting2: colors.blue['953'],
213
+ defaultColorWaiting3: colors.purple['951'],
214
+ defaultBorderColorWaiting3: colors.purple['952'],
215
+ defaultBgWaiting3: colors.purple['953'],
216
+ defaultColorFailed: colors.red['951'],
217
+ defaultBorderColorFailed: colors.red['450'],
218
+ defaultBgFailed: colors.red['952']
219
+ },
220
+ Grid: {
221
+ rowMaxWidth: 1368,
222
+ gutter: 24
76
223
  },
77
224
  Card: {
78
225
  colorBgContainer: colors.ebonyClay['450'],
79
226
  colorTextDescription: colors.neutral['100'],
80
227
  headerFontSize: exports.fontSize * 1.25,
81
- fontSize: exports.fontSize * 0.875
228
+ fontSize: exports.fontSize * 0.875,
229
+ borderRadiusLG: 10,
230
+ paddingLG: 40,
231
+ padding: 24,
232
+ headerHeight: exports.fontSize * 1.25,
233
+ lineHeight: 1,
234
+ colorBorderSecondary: colors.ebonyClay['550'],
235
+ lineWidth: 2
82
236
  },
83
237
  Collapse: {
84
238
  headerPadding: '0 0 12px',
@@ -90,7 +244,12 @@ exports.theme = {
90
244
  Form: {
91
245
  itemMarginBottom: 16,
92
246
  labelColor: colors.neutral['100'],
93
- verticalLabelPadding: 4
247
+ verticalLabelPadding: '7px 0',
248
+ // TODO: contribute to antd to use normal and percentage
249
+ lineHeight: 'normal',
250
+ fontWeight: 600,
251
+ colorError: colors.red['425'],
252
+ verticalErrorPadding: '7px 0'
94
253
  },
95
254
  Pagination: {
96
255
  colorText: colors.ebonyClay['950'],
@@ -114,13 +273,104 @@ exports.theme = {
114
273
  colorBgContainer: colors.ebonyClay['475'],
115
274
  fontSizeLG: exports.fontSize * 0.875,
116
275
  colorBorder: colors.ebonyClay['550'],
117
- lineWidth: 2
276
+ lineWidth: 2,
277
+ activeShadow: 'unset',
278
+ errorActiveShadow: 'unset',
279
+ warningActiveShadow: 'unset',
280
+ fontWeight: 600,
281
+ colorBgContainerDisabled: colors.gray['850'],
282
+ colorTextDisabled: colors.ebonyClay['375']
118
283
  },
119
284
  InputNumber: {
120
285
  colorBgContainer: colors.ebonyClay['475'],
121
286
  fontSizeLG: exports.fontSize * 0.875,
122
287
  colorBorder: colors.ebonyClay['550'],
123
288
  lineWidth: 2
289
+ },
290
+ Modal: {
291
+ titleFontSize: exports.fontSize * 1.25,
292
+ padding: '20px 35px',
293
+ fontWeight: 500,
294
+ borderBottom: `1px solid ${colors.blue['954']}`,
295
+ footerPadding: '0 35px 20px 35px',
296
+ closeIconColor: colors.neutral['100'],
297
+ contentPadding: 0,
298
+ footerMarginTop: 0,
299
+ closeTop: 20,
300
+ closeRight: 27,
301
+ headerMarginBottom: 0,
302
+ badgeColorContent: '',
303
+ badgeColorTop: 27,
304
+ badgeColorLeft: 0,
305
+ badgeColorWidth: 4,
306
+ badgeColorHeight: 16,
307
+ badgeColorPosition: 'absolute',
308
+ badgeColorBackgroundColor: colors.red['425']
309
+ },
310
+ Progress: {
311
+ strokeColor: colors.green['100'],
312
+ trailColor: colors.ebonyClay['850'],
313
+ borderRadius: '0',
314
+ height: '18px !important',
315
+ successBgColor: 'repeating-linear-gradient(60deg, rgba(36, 180, 19, 1) 0, rgba(36, 180, 19, 1) 5px, rgba(72, 192, 62, 1) 5px, rgba(72, 192, 62, 1) 10px) !important'
316
+ },
317
+ Steps: {
318
+ zero: '0 !important',
319
+ auto: 'auto !important',
320
+ none: 'none !important',
321
+ full: '100% !important',
322
+ flex: 'flex !important',
323
+ rowGap: '10px',
324
+ iconWidthHeight: '38px !important',
325
+ iconSize: '18px !important',
326
+ paddingInlineEnd: '16px',
327
+ tailTop: '16px',
328
+ tailHeight: '3px',
329
+ titleFontSize: '14px !important',
330
+ iconColor: 'white',
331
+ tailColor: 'linear-gradient(to right, #343639 50%, transparent 50%) !important',
332
+ tailLastChildColor: 'linear-gradient(to right, #4482ff 50%, transparent 50%) !important',
333
+ tailFirstChildColor: 'linear-gradient(to right, transparent 50%, #4482ff 50%) !important',
334
+ tailProcessFirstChildColor: 'linear-gradient(to right, transparent 50%, #3b404c 50%) !important',
335
+ tailProcessColor: 'linear-gradient(to right, #4482ff 50%, #3b404c 50%) !important',
336
+ tailWaitLastChildColor: 'linear-gradient(to right, #3b404c 50%, transparent 50%) !important',
337
+ finishIconBgColor: `${colors.green['952']} !important`,
338
+ finishTailColor: `${colors.azure['500']} !important`,
339
+ processIconBgColor: `${colors.orange['425']} !important`,
340
+ waitIconBgColor: `${colors.neutral['50']} !important`,
341
+ waitIconColor: `${colors.ebonyClay['951']} !important`,
342
+ waitTitleColor: `${colors.neutral['50']} !important`,
343
+ waitTailColor: `${colors.gray['900']} !important`,
344
+ manyItemsTransform: 'rotate(-40deg)',
345
+ manyItemsWidth: '90px',
346
+ manyItemsHeight: '80px',
347
+ manyItemsWhiteSpace: 'break-spaces',
348
+ manyItemsMarginInlineStart: '40px',
349
+ manyItemsIconWidthHeight: '22px !important',
350
+ manyItemsTailHeight: '4px',
351
+ manyItemsTailBottom: '10px'
352
+ },
353
+ Switch: {
354
+ colorPrimary: colors.green['952'],
355
+ colorPrimaryHover: colors.green['951'],
356
+ colorPrimaryActive: colors.green['954'],
357
+ trackHeight: 26,
358
+ trackMinWidth: 57,
359
+ handleSize: 22,
360
+ colorTextQuaternary: colors.gray['250'],
361
+ colorTextTertiary: colors.gray['300'],
362
+ handleBg: colors.neutral['80'],
363
+ handleShadow: '1px 1px 2px 0 rgba(156, 169, 194, 0.5)',
364
+ fontSizeSM: exports.fontSize * 0.5625,
365
+ innerMinMargin: 0
366
+ },
367
+ Divider: {
368
+ colorSplit: colors.ebonyClay['175'],
369
+ colorText: colors.gray['500'],
370
+ colorTextHeading: colors.gray['500'],
371
+ fontWeight: 500,
372
+ textPaddingInline: 8,
373
+ margin: 48
124
374
  }
125
375
  }
126
376
  };
@@ -141,8 +391,8 @@ exports.useToken = antd_1.theme.useToken;
141
391
  * --color-{object_key}-{object_key}: {color_value};
142
392
  */
143
393
  const getCssVariables = () => {
144
- const { colors } = exports.theme;
145
- const prefix = '--color';
394
+ const { colors, token } = exports.theme;
395
+ let prefix = '--color';
146
396
  const result = {};
147
397
  for (const [colorType, colorObject] of Object.entries(colors)) {
148
398
  for (const [colorShade, colorValue] of Object.entries(colorObject)) {
@@ -150,6 +400,15 @@ const getCssVariables = () => {
150
400
  result[variableName] = colorValue;
151
401
  }
152
402
  }
403
+ prefix = '--token';
404
+ if (token) {
405
+ for (const [key, value] of Object.entries(token)) {
406
+ const variableName = `${prefix}-${key}`;
407
+ if (typeof value === 'string' || typeof value === 'number') {
408
+ result[variableName] = value;
409
+ }
410
+ }
411
+ }
153
412
  return result;
154
413
  };
155
414
  exports.getCssVariables = getCssVariables;