@cashub/ui 0.49.0-beta.13 → 0.49.0-beta.15
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/iconbox/IconBox.js +149 -91
- package/layout/Layout.jsx +13 -0
- package/package.json +1 -1
- package/select/Select.js +1 -1
- package/styles/GlobalStyle.js +75 -57
- package/styles/theme/dark.theme.js +3 -0
- package/styles/theme/ember.theme.js +3 -0
- package/styles/theme/white.theme.js +2 -0
package/iconbox/IconBox.js
CHANGED
|
@@ -40,100 +40,149 @@ const IconBox = _ref => {
|
|
|
40
40
|
const circleSize = size || 60;
|
|
41
41
|
const innerIconSize = iconSize || Math.round(circleSize * 0.5);
|
|
42
42
|
const iconColorFinal = mode === 'gradient' ? '#FFFFFF' : accent;
|
|
43
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
44
|
-
|
|
45
|
-
accent: accent,
|
|
46
|
-
gradientEnd: gradientEnd,
|
|
47
|
-
borderColor: borderColor,
|
|
48
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(IconCircle, {
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AccentOuter, {
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AccentGlassLayer, {
|
|
49
45
|
mode: mode,
|
|
50
46
|
accent: accent,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
47
|
+
gradientEnd: gradientEnd,
|
|
48
|
+
borderColor: borderColor
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(AccentContent, {
|
|
50
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(IconCircle, {
|
|
51
|
+
mode: mode,
|
|
52
|
+
accent: accent,
|
|
53
|
+
circleSize: circleSize,
|
|
54
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconBoxImage.default, {
|
|
55
|
+
size: innerIconSize,
|
|
56
|
+
iconKey: iconKey,
|
|
57
|
+
iconColor: iconColorFinal,
|
|
58
|
+
src: icon,
|
|
59
|
+
alt: `${title}'s icon`
|
|
60
|
+
})
|
|
61
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(TextColumn, {
|
|
62
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxTitle, {
|
|
63
|
+
children: title
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxBody, {
|
|
65
|
+
accentColor: accent,
|
|
66
|
+
children: children
|
|
67
|
+
})]
|
|
65
68
|
})]
|
|
66
69
|
})]
|
|
67
70
|
});
|
|
68
71
|
}
|
|
69
72
|
const bgImage = bgImageKey && _bgImageRegistry.default[bgImageKey];
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
if (bgImage || gradientFrom && gradientTo) {
|
|
74
|
+
const gradient = gradientFrom && gradientTo ? `linear-gradient(135deg, ${gradientFrom}, ${gradientTo})` : 'var(--color-background2)';
|
|
75
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(PlainWrapper, {
|
|
76
|
+
bgImage: bgImage,
|
|
77
|
+
gradient: gradient,
|
|
78
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(IconBoxHead, {
|
|
79
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconBoxFigure.default, {
|
|
80
|
+
sizeXS: sizeXS,
|
|
81
|
+
sizeS: sizeS,
|
|
82
|
+
size: size,
|
|
83
|
+
marginRight: true,
|
|
84
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconBoxImage.default, {
|
|
85
|
+
sizeXS: sizeXS,
|
|
86
|
+
sizeS: sizeS,
|
|
87
|
+
size: size,
|
|
88
|
+
iconKey: iconKey,
|
|
89
|
+
iconColor: iconColor,
|
|
90
|
+
src: icon,
|
|
91
|
+
alt: `${title}'s icon`
|
|
92
|
+
})
|
|
93
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxTitle, {
|
|
94
|
+
children: title
|
|
95
|
+
})]
|
|
96
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxBody, {
|
|
97
|
+
children: children
|
|
98
|
+
})]
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
const markerKey = theme?.bgMarkerKey || 'ember';
|
|
102
|
+
const marker = _bgMarkerRegistry.default[markerKey] || _bgMarkerRegistry.default.ember;
|
|
103
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(GlassOuter, {
|
|
104
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(GlassLayer, {
|
|
105
|
+
marker: marker
|
|
106
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(GlassContent, {
|
|
107
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(IconBoxHead, {
|
|
108
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconBoxFigure.default, {
|
|
81
109
|
sizeXS: sizeXS,
|
|
82
110
|
sizeS: sizeS,
|
|
83
111
|
size: size,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
112
|
+
marginRight: true,
|
|
113
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconBoxImage.default, {
|
|
114
|
+
sizeXS: sizeXS,
|
|
115
|
+
sizeS: sizeS,
|
|
116
|
+
size: size,
|
|
117
|
+
iconKey: iconKey,
|
|
118
|
+
iconColor: iconColor,
|
|
119
|
+
src: icon,
|
|
120
|
+
alt: `${title}'s icon`
|
|
121
|
+
})
|
|
122
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxTitle, {
|
|
123
|
+
children: title
|
|
124
|
+
})]
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxBody, {
|
|
126
|
+
children: children
|
|
91
127
|
})]
|
|
92
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxBody, {
|
|
93
|
-
children: children
|
|
94
128
|
})]
|
|
95
129
|
});
|
|
96
130
|
};
|
|
97
131
|
|
|
98
|
-
/* ---------- image
|
|
132
|
+
/* ---------- image 模式:无图/无渐层时,走玻璃卡片(兄弟节点结构) ---------- */
|
|
99
133
|
|
|
100
|
-
const
|
|
134
|
+
const GlassOuter = _styledComponents.default.div`
|
|
135
|
+
position: relative;
|
|
136
|
+
border-radius: var(--border-radius);
|
|
137
|
+
margin-bottom: var(--spacing);
|
|
138
|
+
`;
|
|
139
|
+
const GlassLayer = _styledComponents.default.div`
|
|
140
|
+
position: absolute;
|
|
141
|
+
inset: 0;
|
|
142
|
+
border-radius: inherit;
|
|
143
|
+
background-color: rgba(255, 255, 255, 0.06);
|
|
144
|
+
backdrop-filter: blur(20px);
|
|
145
|
+
-webkit-backdrop-filter: blur(20px);
|
|
146
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
147
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
148
|
+
pointer-events: none;
|
|
149
|
+
${_ref2 => {
|
|
150
|
+
let {
|
|
151
|
+
marker
|
|
152
|
+
} = _ref2;
|
|
153
|
+
return marker && `
|
|
154
|
+
background-image: url(${marker.triangle});
|
|
155
|
+
background-repeat: no-repeat;
|
|
156
|
+
background-position: right bottom;
|
|
157
|
+
background-size: 30% 70%;
|
|
158
|
+
`;
|
|
159
|
+
}}
|
|
160
|
+
`;
|
|
161
|
+
const GlassContent = _styledComponents.default.div`
|
|
162
|
+
position: relative;
|
|
163
|
+
padding: var(--spacing-l);
|
|
164
|
+
color: var(--font-on-background);
|
|
165
|
+
`;
|
|
166
|
+
|
|
167
|
+
/* ---------- image 模式:有 bgImage 或 gradient 时,走原本不透明版式 ---------- */
|
|
168
|
+
|
|
169
|
+
const PlainWrapper = _styledComponents.default.div`
|
|
101
170
|
display: flex;
|
|
102
171
|
flex-direction: column;
|
|
103
172
|
padding: var(--spacing-l);
|
|
104
173
|
margin-bottom: var(--spacing);
|
|
105
174
|
border-radius: var(--border-radius);
|
|
106
175
|
color: var(--font-on-background);
|
|
107
|
-
${
|
|
176
|
+
background: ${_ref3 => {
|
|
108
177
|
let {
|
|
109
178
|
bgImage,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
return `
|
|
118
|
-
background: ${image}${gradient};
|
|
119
|
-
background-repeat: no-repeat;
|
|
120
|
-
background-position: right bottom;
|
|
121
|
-
background-size: cover;
|
|
122
|
-
`;
|
|
123
|
-
}
|
|
124
|
-
const markerKey = theme?.bgMarkerKey || 'ember';
|
|
125
|
-
const marker = _bgMarkerRegistry.default[markerKey] || _bgMarkerRegistry.default.ember;
|
|
126
|
-
return `
|
|
127
|
-
background-color: rgba(255, 255, 255, 0.06);
|
|
128
|
-
backdrop-filter: blur(20px);
|
|
129
|
-
-webkit-backdrop-filter: blur(20px);
|
|
130
|
-
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
131
|
-
background-image: url(${marker.triangle});
|
|
132
|
-
background-repeat: no-repeat;
|
|
133
|
-
background-position: right bottom;
|
|
134
|
-
background-size: 30% 70%;
|
|
135
|
-
`;
|
|
136
|
-
}}
|
|
179
|
+
gradient
|
|
180
|
+
} = _ref3;
|
|
181
|
+
return bgImage ? `url(${bgImage}), ${gradient}` : gradient;
|
|
182
|
+
}};
|
|
183
|
+
background-repeat: no-repeat;
|
|
184
|
+
background-position: right bottom;
|
|
185
|
+
background-size: cover;
|
|
137
186
|
`;
|
|
138
187
|
const IconBoxHead = _styledComponents.default.div`
|
|
139
188
|
display: flex;
|
|
@@ -141,26 +190,28 @@ const IconBoxHead = _styledComponents.default.div`
|
|
|
141
190
|
margin-bottom: var(--spacing);
|
|
142
191
|
`;
|
|
143
192
|
|
|
144
|
-
/* ---------- accent / gradient
|
|
193
|
+
/* ---------- accent / gradient 模式(兄弟节点结构) ---------- */
|
|
145
194
|
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
align-items: center;
|
|
149
|
-
padding: var(--spacing);
|
|
195
|
+
const AccentOuter = _styledComponents.default.div`
|
|
196
|
+
position: relative;
|
|
150
197
|
border-radius: var(--border-radius);
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
198
|
+
`;
|
|
199
|
+
const AccentGlassLayer = _styledComponents.default.div`
|
|
200
|
+
position: absolute;
|
|
201
|
+
inset: 0;
|
|
202
|
+
border-radius: inherit;
|
|
203
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
204
|
+
pointer-events: none;
|
|
205
|
+
${_ref4 => {
|
|
155
206
|
let {
|
|
156
207
|
mode,
|
|
157
208
|
accent,
|
|
158
209
|
gradientEnd,
|
|
159
210
|
borderColor
|
|
160
|
-
} =
|
|
211
|
+
} = _ref4;
|
|
161
212
|
if (mode === 'gradient') {
|
|
162
213
|
return `
|
|
163
|
-
background: linear-gradient(22deg, var(--color-
|
|
214
|
+
background: linear-gradient(22deg, var(--color-card-gradient-base) 0%, var(--color-card-gradient-base) 40%, ${gradientEnd} 100%);
|
|
164
215
|
border: 2px solid ${borderColor};
|
|
165
216
|
`;
|
|
166
217
|
}
|
|
@@ -170,30 +221,37 @@ const AccentWrapper = _styledComponents.default.div`
|
|
|
170
221
|
`;
|
|
171
222
|
}}
|
|
172
223
|
`;
|
|
224
|
+
const AccentContent = _styledComponents.default.div`
|
|
225
|
+
position: relative;
|
|
226
|
+
display: flex;
|
|
227
|
+
align-items: center;
|
|
228
|
+
padding: var(--spacing);
|
|
229
|
+
color: var(--font-on-background);
|
|
230
|
+
`;
|
|
173
231
|
const IconCircle = _styledComponents.default.span`
|
|
174
232
|
display: inline-flex;
|
|
175
233
|
align-items: center;
|
|
176
234
|
justify-content: center;
|
|
177
235
|
border-radius: 50%;
|
|
178
|
-
width: ${
|
|
236
|
+
width: ${_ref5 => {
|
|
179
237
|
let {
|
|
180
238
|
circleSize
|
|
181
|
-
} =
|
|
239
|
+
} = _ref5;
|
|
182
240
|
return `${circleSize}px`;
|
|
183
241
|
}};
|
|
184
|
-
height: ${
|
|
242
|
+
height: ${_ref6 => {
|
|
185
243
|
let {
|
|
186
244
|
circleSize
|
|
187
|
-
} =
|
|
245
|
+
} = _ref6;
|
|
188
246
|
return `${circleSize}px`;
|
|
189
247
|
}};
|
|
190
248
|
flex-shrink: 0;
|
|
191
249
|
margin-right: var(--spacing-s);
|
|
192
|
-
background: ${
|
|
250
|
+
background: ${_ref7 => {
|
|
193
251
|
let {
|
|
194
252
|
mode,
|
|
195
253
|
accent
|
|
196
|
-
} =
|
|
254
|
+
} = _ref7;
|
|
197
255
|
return mode === 'gradient' ? 'rgba(255, 255, 255, 0.2)' : withAlpha(accent, '14');
|
|
198
256
|
}};
|
|
199
257
|
`;
|
|
@@ -214,16 +272,16 @@ const IconBoxBody = _styledComponents.default.div`
|
|
|
214
272
|
font-size: var(--font-h1);
|
|
215
273
|
font-weight: bold;
|
|
216
274
|
line-height: 1.3;
|
|
217
|
-
text-align: ${
|
|
275
|
+
text-align: ${_ref8 => {
|
|
218
276
|
let {
|
|
219
277
|
accentColor
|
|
220
|
-
} =
|
|
278
|
+
} = _ref8;
|
|
221
279
|
return accentColor ? 'left' : 'center';
|
|
222
280
|
}};
|
|
223
|
-
color: ${
|
|
281
|
+
color: ${_ref9 => {
|
|
224
282
|
let {
|
|
225
283
|
accentColor
|
|
226
|
-
} =
|
|
284
|
+
} = _ref9;
|
|
227
285
|
return accentColor || 'inherit';
|
|
228
286
|
}};
|
|
229
287
|
`;
|
package/layout/Layout.jsx
CHANGED
|
@@ -6,6 +6,7 @@ import Container from './Container';
|
|
|
6
6
|
import Footer from './Footer';
|
|
7
7
|
import Sidebar from './Sidebar';
|
|
8
8
|
import Backdrop from './Backdrop';
|
|
9
|
+
import bgMainRegistry from './bgMainRegistry';
|
|
9
10
|
|
|
10
11
|
const Layout = ({
|
|
11
12
|
mode,
|
|
@@ -68,6 +69,18 @@ const Main = styled.div`
|
|
|
68
69
|
display: flex;
|
|
69
70
|
flex: 1;
|
|
70
71
|
position: relative;
|
|
72
|
+
${({ theme }) => {
|
|
73
|
+
if (theme?.hideAsideDecoration) return '';
|
|
74
|
+
const bgKey = theme?.bgMainKey || 'default';
|
|
75
|
+
const bgImage = bgMainRegistry[bgKey];
|
|
76
|
+
return `
|
|
77
|
+
background: url(${bgImage});
|
|
78
|
+
background-size: cover;
|
|
79
|
+
background-repeat: no-repeat;
|
|
80
|
+
background-position: center;
|
|
81
|
+
background-attachment: fixed;
|
|
82
|
+
`;
|
|
83
|
+
}}
|
|
71
84
|
`;
|
|
72
85
|
|
|
73
86
|
export default Layout;
|
package/package.json
CHANGED
package/select/Select.js
CHANGED
package/styles/GlobalStyle.js
CHANGED
|
@@ -123,178 +123,196 @@ const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
|
|
|
123
123
|
} = _ref19;
|
|
124
124
|
return theme.bgColor4;
|
|
125
125
|
}};
|
|
126
|
-
--color-
|
|
126
|
+
--color-card-gradient-base: ${_ref20 => {
|
|
127
127
|
let {
|
|
128
128
|
theme
|
|
129
129
|
} = _ref20;
|
|
130
|
-
return theme.
|
|
130
|
+
return theme.colorCardGradientBase || theme.bgColor2;
|
|
131
131
|
}};
|
|
132
|
-
--
|
|
132
|
+
--color-select-reverse: ${_ref21 => {
|
|
133
133
|
let {
|
|
134
134
|
theme
|
|
135
135
|
} = _ref21;
|
|
136
|
-
return theme.
|
|
136
|
+
return theme.colorSelectReverse || theme.bgColor1;
|
|
137
137
|
}};
|
|
138
|
-
--
|
|
138
|
+
--color-glass-bg: ${_ref22 => {
|
|
139
139
|
let {
|
|
140
140
|
theme
|
|
141
141
|
} = _ref22;
|
|
142
|
-
return theme.
|
|
142
|
+
return theme.colorGlassBg || 'rgba(255, 255, 255, 0.06)';
|
|
143
143
|
}};
|
|
144
|
-
--
|
|
144
|
+
--color-backdrop: ${_ref23 => {
|
|
145
145
|
let {
|
|
146
146
|
theme
|
|
147
147
|
} = _ref23;
|
|
148
|
-
return theme.
|
|
148
|
+
return theme.backdropBg;
|
|
149
149
|
}};
|
|
150
|
-
--font-
|
|
150
|
+
--font-h1: ${_ref24 => {
|
|
151
151
|
let {
|
|
152
152
|
theme
|
|
153
153
|
} = _ref24;
|
|
154
|
-
return theme.
|
|
154
|
+
return theme.fontH1;
|
|
155
155
|
}};
|
|
156
|
-
--font-
|
|
156
|
+
--font-h2: ${_ref25 => {
|
|
157
157
|
let {
|
|
158
158
|
theme
|
|
159
159
|
} = _ref25;
|
|
160
|
-
return theme.
|
|
160
|
+
return theme.fontH2;
|
|
161
161
|
}};
|
|
162
|
-
--font-
|
|
162
|
+
--font-h3: ${_ref26 => {
|
|
163
163
|
let {
|
|
164
164
|
theme
|
|
165
165
|
} = _ref26;
|
|
166
|
-
return theme.
|
|
166
|
+
return theme.fontH3;
|
|
167
167
|
}};
|
|
168
|
-
--font-
|
|
168
|
+
--font-body1: ${_ref27 => {
|
|
169
169
|
let {
|
|
170
170
|
theme
|
|
171
171
|
} = _ref27;
|
|
172
|
-
return theme.
|
|
172
|
+
return theme.fontBody1;
|
|
173
173
|
}};
|
|
174
|
-
--font-
|
|
174
|
+
--font-body2: ${_ref28 => {
|
|
175
175
|
let {
|
|
176
176
|
theme
|
|
177
177
|
} = _ref28;
|
|
178
|
-
return theme.
|
|
178
|
+
return theme.fontBody2;
|
|
179
179
|
}};
|
|
180
|
-
--font-
|
|
180
|
+
--font-button: ${_ref29 => {
|
|
181
181
|
let {
|
|
182
182
|
theme
|
|
183
183
|
} = _ref29;
|
|
184
|
-
return theme.
|
|
184
|
+
return theme.fontButton;
|
|
185
185
|
}};
|
|
186
|
-
--font-
|
|
186
|
+
--font-caption: ${_ref30 => {
|
|
187
187
|
let {
|
|
188
188
|
theme
|
|
189
189
|
} = _ref30;
|
|
190
|
-
return theme.
|
|
190
|
+
return theme.fontCaption;
|
|
191
191
|
}};
|
|
192
|
-
--font-
|
|
192
|
+
--font-family: ${_ref31 => {
|
|
193
193
|
let {
|
|
194
194
|
theme
|
|
195
195
|
} = _ref31;
|
|
196
|
-
return theme.
|
|
196
|
+
return theme.fontFamily;
|
|
197
197
|
}};
|
|
198
|
-
--font-
|
|
198
|
+
--font-normal: ${_ref32 => {
|
|
199
199
|
let {
|
|
200
200
|
theme
|
|
201
201
|
} = _ref32;
|
|
202
|
-
return theme.
|
|
202
|
+
return theme.fontWeightNormal;
|
|
203
203
|
}};
|
|
204
|
-
--font-
|
|
204
|
+
--font-bold: ${_ref33 => {
|
|
205
205
|
let {
|
|
206
206
|
theme
|
|
207
207
|
} = _ref33;
|
|
208
|
-
return theme.
|
|
208
|
+
return theme.fontWeightBold;
|
|
209
209
|
}};
|
|
210
|
-
--font-on-
|
|
210
|
+
--font-on-primary: ${_ref34 => {
|
|
211
211
|
let {
|
|
212
212
|
theme
|
|
213
213
|
} = _ref34;
|
|
214
|
-
return theme.
|
|
214
|
+
return theme.fontOnPrimary;
|
|
215
215
|
}};
|
|
216
|
-
--font-on-
|
|
216
|
+
--font-on-success: ${_ref35 => {
|
|
217
217
|
let {
|
|
218
218
|
theme
|
|
219
219
|
} = _ref35;
|
|
220
|
-
return theme.
|
|
220
|
+
return theme.fontOnSuccess;
|
|
221
221
|
}};
|
|
222
|
-
--font-on-
|
|
222
|
+
--font-on-warning: ${_ref36 => {
|
|
223
223
|
let {
|
|
224
224
|
theme
|
|
225
225
|
} = _ref36;
|
|
226
|
-
return theme.
|
|
226
|
+
return theme.fontOnWarning;
|
|
227
227
|
}};
|
|
228
|
-
--
|
|
228
|
+
--font-on-danger: ${_ref37 => {
|
|
229
229
|
let {
|
|
230
230
|
theme
|
|
231
231
|
} = _ref37;
|
|
232
|
-
return theme.
|
|
232
|
+
return theme.fontOnDanger;
|
|
233
233
|
}};
|
|
234
|
-
--
|
|
234
|
+
--font-on-background: ${_ref38 => {
|
|
235
235
|
let {
|
|
236
236
|
theme
|
|
237
237
|
} = _ref38;
|
|
238
|
-
return theme.
|
|
238
|
+
return theme.fontOnBg;
|
|
239
239
|
}};
|
|
240
|
-
--
|
|
240
|
+
--font-on-mute: ${_ref39 => {
|
|
241
241
|
let {
|
|
242
242
|
theme
|
|
243
243
|
} = _ref39;
|
|
244
|
-
return theme.
|
|
244
|
+
return theme.fontMutedColor;
|
|
245
245
|
}};
|
|
246
|
-
--
|
|
246
|
+
--box-shadow: ${_ref40 => {
|
|
247
247
|
let {
|
|
248
248
|
theme
|
|
249
249
|
} = _ref40;
|
|
250
|
-
return theme.
|
|
250
|
+
return theme.boxShadow;
|
|
251
251
|
}};
|
|
252
|
-
--border-
|
|
252
|
+
--border-color: ${_ref41 => {
|
|
253
253
|
let {
|
|
254
254
|
theme
|
|
255
255
|
} = _ref41;
|
|
256
|
-
return theme.
|
|
256
|
+
return theme.borderColor;
|
|
257
257
|
}};
|
|
258
|
-
--border-
|
|
258
|
+
--border-color-transparent: ${_ref42 => {
|
|
259
259
|
let {
|
|
260
260
|
theme
|
|
261
261
|
} = _ref42;
|
|
262
|
-
return theme.
|
|
262
|
+
return theme.borderColorTransparent;
|
|
263
263
|
}};
|
|
264
|
-
--border-
|
|
264
|
+
--border-width: ${_ref43 => {
|
|
265
265
|
let {
|
|
266
266
|
theme
|
|
267
267
|
} = _ref43;
|
|
268
|
-
return theme.
|
|
268
|
+
return theme.borderWidth;
|
|
269
269
|
}};
|
|
270
|
-
--border-radius-
|
|
270
|
+
--border-radius-s: ${_ref44 => {
|
|
271
271
|
let {
|
|
272
272
|
theme
|
|
273
273
|
} = _ref44;
|
|
274
|
-
return theme.
|
|
274
|
+
return theme.borderRadiusS;
|
|
275
275
|
}};
|
|
276
|
-
--
|
|
276
|
+
--border-radius: ${_ref45 => {
|
|
277
277
|
let {
|
|
278
278
|
theme
|
|
279
279
|
} = _ref45;
|
|
280
|
-
return theme.
|
|
280
|
+
return theme.borderRadius;
|
|
281
281
|
}};
|
|
282
|
-
--
|
|
282
|
+
--border-radius-l: ${_ref46 => {
|
|
283
283
|
let {
|
|
284
284
|
theme
|
|
285
285
|
} = _ref46;
|
|
286
|
-
return theme.
|
|
286
|
+
return theme.borderRadiusL;
|
|
287
287
|
}};
|
|
288
|
-
--
|
|
288
|
+
--border-radius-round: ${_ref47 => {
|
|
289
289
|
let {
|
|
290
290
|
theme
|
|
291
291
|
} = _ref47;
|
|
292
|
-
return theme.
|
|
292
|
+
return theme.borderRadiusRound;
|
|
293
293
|
}};
|
|
294
|
-
--spacing-
|
|
294
|
+
--spacing-xs: ${_ref48 => {
|
|
295
295
|
let {
|
|
296
296
|
theme
|
|
297
297
|
} = _ref48;
|
|
298
|
+
return theme.spacerXS;
|
|
299
|
+
}};
|
|
300
|
+
--spacing-s: ${_ref49 => {
|
|
301
|
+
let {
|
|
302
|
+
theme
|
|
303
|
+
} = _ref49;
|
|
304
|
+
return theme.spacerS;
|
|
305
|
+
}};
|
|
306
|
+
--spacing: ${_ref50 => {
|
|
307
|
+
let {
|
|
308
|
+
theme
|
|
309
|
+
} = _ref50;
|
|
310
|
+
return theme.spacer;
|
|
311
|
+
}};
|
|
312
|
+
--spacing-l: ${_ref51 => {
|
|
313
|
+
let {
|
|
314
|
+
theme
|
|
315
|
+
} = _ref51;
|
|
298
316
|
return theme.spacerL;
|
|
299
317
|
}};
|
|
300
318
|
/* Global style */
|
|
@@ -22,6 +22,9 @@ const colorStyle = {
|
|
|
22
22
|
bgColor3: '#2d2a5d',
|
|
23
23
|
bgColor4: '#222143',
|
|
24
24
|
backdropBg: 'rgba(0, 0, 0, 0.75)',
|
|
25
|
+
colorSelectReverse: '#222143',
|
|
26
|
+
colorGlassBg: 'rgba(6, 12, 35, 0.6)',
|
|
27
|
+
colorCardGradientBase: '#141B30',
|
|
25
28
|
cardMode: 'gradient',
|
|
26
29
|
bgMainKey: 'dark',
|
|
27
30
|
bgMarkerKey: 'dark',
|
|
@@ -20,12 +20,15 @@ const colorStyle = {
|
|
|
20
20
|
bgColor3: '#F3E9E9',
|
|
21
21
|
bgColor4: 'linear-gradient(90deg, #E62B27 0%, #D9211E 45%, #C60E27 100%)',
|
|
22
22
|
backdropBg: 'rgba(0, 0, 0, 0.75)',
|
|
23
|
+
colorSelectReverse: '#FAF5F5',
|
|
24
|
+
colorGlassBg: 'rgba(255, 255, 255, 0.06)',
|
|
23
25
|
useModernIcons: true,
|
|
24
26
|
useModernCardIcons: true,
|
|
25
27
|
useLightBrand: true,
|
|
26
28
|
cardMode: 'accent',
|
|
27
29
|
bgMainKey: 'default',
|
|
28
30
|
bgMarkerKey: 'ember',
|
|
31
|
+
hideAsideDecoration: true,
|
|
29
32
|
colorHoverSidebar: 'rgba(255, 255, 255, 0.15)',
|
|
30
33
|
colorActiveSidebar: 'rgba(255, 255, 255, 0.22)',
|
|
31
34
|
colorTextSidebar: '#FFFFFF',
|