@cashub/ui 0.48.30 → 0.49.0-beta.1

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.
Files changed (59) hide show
  1. package/assets/images/bg-aside.png +0 -0
  2. package/assets/images/bg-main-vivid.png +0 -0
  3. package/assets/images/bg-main.png +0 -0
  4. package/button/IconButton.js +5 -7
  5. package/icon/assets/android.jsx +10 -0
  6. package/icon/assets/app-management.jsx +10 -0
  7. package/icon/assets/appStore.jsx +6 -0
  8. package/icon/assets/battery.jsx +15 -0
  9. package/icon/assets/bill.jsx +10 -0
  10. package/icon/assets/campaign.jsx +9 -0
  11. package/icon/assets/casstore.jsx +8 -0
  12. package/icon/assets/dashboard.jsx +6 -0
  13. package/icon/assets/enterprise.jsx +15 -0
  14. package/icon/assets/firmware.jsx +8 -0
  15. package/icon/assets/folder.jsx +8 -0
  16. package/icon/assets/group.jsx +18 -0
  17. package/icon/assets/heartbeats.jsx +9 -0
  18. package/icon/assets/invite-user.jsx +9 -0
  19. package/icon/assets/log.jsx +9 -0
  20. package/icon/assets/manufacturer.jsx +7 -0
  21. package/icon/assets/merchant.jsx +16 -0
  22. package/icon/assets/package-collection.jsx +8 -0
  23. package/icon/assets/report.jsx +11 -0
  24. package/icon/assets/resource.jsx +9 -0
  25. package/icon/assets/role.jsx +7 -0
  26. package/icon/assets/shield-lock.jsx +202 -0
  27. package/icon/assets/shield-no-signal.jsx +195 -0
  28. package/icon/assets/shield-unsafe.jsx +191 -0
  29. package/icon/assets/shield.jsx +186 -0
  30. package/icon/assets/statistics.jsx +9 -0
  31. package/icon/assets/tag.jsx +14 -0
  32. package/icon/assets/template-management.jsx +8 -0
  33. package/icon/assets/terminal.jsx +7 -0
  34. package/icon/assets/tradeye.jsx +7 -0
  35. package/icon/registry.js +70 -0
  36. package/iconbox/IconBox.js +46 -10
  37. package/iconbox/assets/bg-enterprise.png +0 -0
  38. package/iconbox/assets/bg-merchant.png +0 -0
  39. package/iconbox/assets/bg-terminal.png +0 -0
  40. package/iconbox/assets/bg-user.png +0 -0
  41. package/iconbox/bgImageRegistry.js +18 -0
  42. package/iconbox/subComponent/IconBoxImage.js +57 -14
  43. package/layout/Aside.js +17 -7
  44. package/layout/Container.js +20 -3
  45. package/layout/Header.jsx +5 -12
  46. package/layout/Layout.jsx +0 -15
  47. package/layout/Logo.jsx +5 -5
  48. package/layout/MenuIcon.jsx +23 -5
  49. package/layout/Sidebar.jsx +38 -48
  50. package/layout/assets/burger-modern.jsx +9 -0
  51. package/layout/bgMainRegistry.js +14 -0
  52. package/package.json +2 -2
  53. package/styles/GlobalStyle.js +101 -79
  54. package/styles/theme/dark.theme.js +4 -1
  55. package/styles/theme/ember.theme.js +100 -0
  56. package/styles/theme/light.theme.js +1 -0
  57. package/styles/theme/midnight.theme.js +99 -0
  58. package/styles/theme/white.theme.js +6 -1
  59. package/styles/themes.js +5 -1
@@ -1,16 +1,16 @@
1
- import { useEffect, useState, useRef } from 'react';
1
+ import { useEffect, useState, useRef, useContext } from 'react';
2
2
  import { FaCaretRight } from 'react-icons/fa';
3
3
  import { Link, useLocation } from 'react-router-dom';
4
4
  import { useTranslation } from 'react-i18next';
5
- import styled, { css } from 'styled-components';
5
+ import styled, { css, ThemeContext } from 'styled-components';
6
6
  import headerStyle from '../styles/config/header.style';
7
7
  import media from '../styles/mixin/media';
8
8
  import scrollbar from '../styles/mixin/scrollbar';
9
9
  import Aside from './Aside';
10
10
  import AsideHeader from './AsideHeader';
11
+ import iconOverrides from '../icon/registry';
11
12
 
12
13
  const Sidebar = ({
13
- theme,
14
14
  logo,
15
15
  hasSidebar,
16
16
  $display,
@@ -20,31 +20,24 @@ const Sidebar = ({
20
20
  const location = useLocation();
21
21
  const sidebarRef = useRef(null);
22
22
  const [hoverDisplay, setHoverDisplay] = useState(false);
23
-
24
23
  const nowPath = (path) => {
25
24
  return location.pathname.includes(path);
26
25
  };
27
-
28
26
  const handleMouseOver = () => {
29
27
  if ($display === true) {
30
28
  return;
31
29
  }
32
-
33
30
  setHoverDisplay(true);
34
31
  };
35
-
36
32
  const handleMouseOut = (event) => {
37
33
  if ($display === true) {
38
34
  return;
39
35
  }
40
-
41
36
  if (sidebarRef.current.contains(event.relatedTarget)) {
42
37
  return;
43
38
  }
44
-
45
39
  setHoverDisplay(false);
46
40
  };
47
-
48
41
  return (
49
42
  <>
50
43
  <Aside
@@ -54,7 +47,6 @@ const Sidebar = ({
54
47
  onMouseOut={handleMouseOut}
55
48
  >
56
49
  <AsideHeader
57
- theme={theme}
58
50
  logo={logo}
59
51
  hasSidebar={hasSidebar}
60
52
  toggleSidebar={toggleSidebar}
@@ -74,7 +66,6 @@ const Sidebar = ({
74
66
  />
75
67
  );
76
68
  }
77
-
78
69
  return <MenuList {...prop} active={nowPath(prop.path)} key={key} />;
79
70
  })}
80
71
  </Menu>
@@ -83,18 +74,20 @@ const Sidebar = ({
83
74
  );
84
75
  };
85
76
 
86
- const MenuList = ({ path, name, icon, active }) => {
77
+ const MenuList = ({ path, name, icon, iconKey, active }) => {
87
78
  const { t: trans } = useTranslation();
88
-
79
+ const themeContext = useContext(ThemeContext);
80
+ const override = themeContext?.useModernIcons && iconKey && iconOverrides[iconKey];
81
+ const IconComponent = override || icon;
82
+ const isComponent = typeof IconComponent === 'function';
89
83
  return (
90
84
  <MenuItem active={active}>
91
85
  <MenuItemLink to={path}>
92
- <img
93
- crossOrigin='anonymous'
94
- src={icon}
95
- alt={`${name} icon`}
96
- width='24px'
97
- />
86
+ {isComponent ? (
87
+ <IconWrapper><IconComponent /></IconWrapper>
88
+ ) : (
89
+ <img crossOrigin='anonymous' src={IconComponent} alt={`${name} icon`} width='24px' />
90
+ )}
98
91
  <span>{trans(name)}</span>
99
92
  </MenuItemLink>
100
93
  </MenuItem>
@@ -105,6 +98,7 @@ const MenuListWithSubMenu = ({
105
98
  path,
106
99
  name,
107
100
  icon,
101
+ iconKey,
108
102
  child,
109
103
  active,
110
104
  currentPath,
@@ -113,22 +107,27 @@ const MenuListWithSubMenu = ({
113
107
  level,
114
108
  }) => {
115
109
  const { t: trans } = useTranslation();
110
+ const themeContext = useContext(ThemeContext);
116
111
  const [open, setOpen] = useState(active);
117
-
112
+ const override = themeContext?.useModernIcons && iconKey && iconOverrides[iconKey];
113
+ const IconComponent = override || icon;
114
+ const isComponent = typeof IconComponent === 'function';
118
115
  const toggleOpen = () => {
119
116
  setOpen(!open);
120
117
  };
121
-
122
118
  useEffect(() => {
123
119
  $display === false && hoverDisplay === false && setOpen(false);
124
120
  }, [$display, hoverDisplay]);
125
-
126
121
  return (
127
122
  <>
128
123
  <MenuItem onClick={toggleOpen}>
129
124
  <MenuItemButton as='button' open={open} $level={level}>
130
- {icon ? (
131
- <img crossOrigin='anonymous' src={icon} alt={`${name} icon`} />
125
+ {IconComponent ? (
126
+ isComponent ? (
127
+ <IconWrapper><IconComponent /></IconWrapper>
128
+ ) : (
129
+ <img crossOrigin='anonymous' src={IconComponent} alt={`${name} icon`} />
130
+ )
132
131
  ) : (
133
132
  <EmptyIcon />
134
133
  )}
@@ -144,7 +143,6 @@ const MenuListWithSubMenu = ({
144
143
  .map((prop, key) => {
145
144
  const href = `${path}${prop.path}`;
146
145
  const active = currentPath.includes(prop.path);
147
-
148
146
  if (prop.parent === true) {
149
147
  return (
150
148
  <MenuListWithSubMenu
@@ -159,7 +157,6 @@ const MenuListWithSubMenu = ({
159
157
  />
160
158
  );
161
159
  }
162
-
163
160
  return (
164
161
  <SubMenuItem key={key} active={active} $level={level}>
165
162
  <Link to={href}>
@@ -173,45 +170,46 @@ const MenuListWithSubMenu = ({
173
170
  );
174
171
  };
175
172
 
173
+ const IconWrapper = styled.span`
174
+ display: inline-flex;
175
+ width: 24px;
176
+ height: 24px;
177
+ margin-right: var(--spacing);
178
+ flex: 0 0 24px;
179
+ color: var(--color-text-sidebar);
180
+ svg { width: 100%; height: 100%; }
181
+ `;
176
182
  const Menu = styled.ul`
177
183
  overflow-y: auto;
178
184
  overflow-x: hidden;
179
185
  height: 100%;
180
-
181
186
  span {
182
- color: var(--font-on-background);
187
+ color: var(--color-text-sidebar);
183
188
  font-size: var(--font-body1);
184
189
  }
185
-
186
190
  li {
187
191
  transition: 0.3s;
188
-
189
192
  &:hover {
190
- background: var(--color-hover);
193
+ background: var(--color-hover-sidebar);
191
194
  }
192
195
  }
193
-
194
196
  ${scrollbar}
195
-
196
197
  ${media.tablet`
197
198
  height: calc(100% - ${headerStyle.height});
198
199
  `};
199
200
  `;
200
-
201
201
  const MenuItem = styled.li`
202
202
  ${(props) =>
203
203
  props.active === true &&
204
204
  css`
205
- background: var(--color-active);
205
+ background: var(--color-active-sidebar);
206
206
  `};
207
207
  `;
208
-
209
208
  const MenuItemLink = styled(Link)`
210
209
  display: flex;
211
210
  align-items: center;
212
211
  padding: 0 var(--spacing);
213
212
  height: 48px;
214
-
215
213
  img {
216
214
  width: 24px;
217
215
  height: 24px;
@@ -219,17 +217,14 @@ const MenuItemLink = styled(Link)`
219
217
  flex: 0 0 24px;
220
218
  }
221
219
  `;
222
-
223
220
  const MenuItemButton = styled(MenuItemLink)`
224
221
  background-color: transparent;
225
222
  border: none;
226
223
  cursor: pointer;
227
224
  width: 100%;
228
-
229
225
  .arrow {
230
226
  margin-left: auto;
231
- color: var(--color-primary);
232
-
227
+ color: var(--color-arrow-sidebar);
233
228
  ${({ open }) =>
234
229
  open === true &&
235
230
  css`
@@ -238,12 +233,10 @@ const MenuItemButton = styled(MenuItemLink)`
238
233
  `};
239
234
  }
240
235
  `;
241
-
242
236
  const SubMenu = styled.ul`
243
237
  overflow: hidden;
244
238
  height: ${(props) => (props.open === true ? 'auto' : '0px')};
245
239
  `;
246
-
247
240
  const SubMenuItem = styled.li`
248
241
  a {
249
242
  display: flex;
@@ -252,20 +245,17 @@ const SubMenuItem = styled.li`
252
245
  padding-left: ${({ $level }) =>
253
246
  `calc(var(--spacing) * 2 + 1.5rem + ${$level} * var(--spacing))`};
254
247
  height: 48px;
255
-
256
248
  ${({ active }) =>
257
249
  active === true &&
258
250
  css`
259
- background: var(--color-active);
251
+ background: var(--color-active-sidebar);
260
252
  `};
261
253
  }
262
254
  `;
263
-
264
255
  const EmptyIcon = styled.span`
265
256
  width: 24px;
266
257
  height: 24px;
267
258
  margin-right: var(--spacing);
268
259
  flex: 0 0 24px;
269
260
  `;
270
-
271
261
  export default Sidebar;
@@ -0,0 +1,9 @@
1
+ const BurgerModernIcon = () => (
2
+ <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M5 7H19" stroke="currentcolor" stroke-width="1.5" stroke-linecap="round"/>
4
+ <path d="M5 12H19" stroke="currentcolor" stroke-width="1.5" stroke-linecap="round"/>
5
+ <path d="M5 17H19" stroke="currentcolor" stroke-width="1.5" stroke-linecap="round"/>
6
+ </svg>
7
+ );
8
+
9
+ export default BurgerModernIcon;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _bgMain = _interopRequireDefault(require("../assets/images/bg-main.png"));
8
+ var _bgMainVivid = _interopRequireDefault(require("../assets/images/bg-main-vivid.png"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ const bgMainRegistry = {
11
+ default: _bgMain.default,
12
+ vivid: _bgMainVivid.default
13
+ };
14
+ var _default = exports.default = bgMainRegistry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.48.30",
3
+ "version": "0.49.0-beta.1",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",
@@ -52,4 +52,4 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  }
55
- }
55
+ }
@@ -63,226 +63,255 @@ const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
63
63
  } = _ref9;
64
64
  return theme.colorActive;
65
65
  }};
66
- --color-scroll-bar: ${_ref10 => {
66
+ --color-hover-sidebar: ${_ref10 => {
67
67
  let {
68
68
  theme
69
69
  } = _ref10;
70
- return theme.scrollBarColor;
70
+ return theme.colorHoverSidebar || theme.colorHover;
71
71
  }};
72
- --color-background1: ${_ref11 => {
72
+ --color-active-sidebar: ${_ref11 => {
73
73
  let {
74
74
  theme
75
75
  } = _ref11;
76
- return theme.bgColor1;
76
+ return theme.colorActiveSidebar || theme.colorActive;
77
77
  }};
78
- --color-background2: ${_ref12 => {
78
+ --color-text-sidebar: ${_ref12 => {
79
79
  let {
80
80
  theme
81
81
  } = _ref12;
82
- return theme.bgColor2;
82
+ return theme.colorTextSidebar || theme.fontOnBg;
83
83
  }};
84
- --color-background3: ${_ref13 => {
84
+ --color-icon-header: ${_ref13 => {
85
85
  let {
86
86
  theme
87
87
  } = _ref13;
88
- return theme.bgColor3;
88
+ return theme.colorIconHeader || theme.fontOnBg;
89
89
  }};
90
- --color-backdrop: ${_ref14 => {
90
+ --color-arrow-sidebar: ${_ref14 => {
91
91
  let {
92
92
  theme
93
93
  } = _ref14;
94
- return theme.backdropBg;
94
+ return theme.colorArrowSidebar || theme.colorPrimary;
95
95
  }};
96
-
97
- --font-h1: ${_ref15 => {
96
+ --color-scroll-bar: ${_ref15 => {
98
97
  let {
99
98
  theme
100
99
  } = _ref15;
101
- return theme.fontH1;
100
+ return theme.scrollBarColor;
102
101
  }};
103
- --font-h2: ${_ref16 => {
102
+ --color-background1: ${_ref16 => {
104
103
  let {
105
104
  theme
106
105
  } = _ref16;
107
- return theme.fontH2;
106
+ return theme.bgColor1;
108
107
  }};
109
- --font-h3: ${_ref17 => {
108
+ --color-background2: ${_ref17 => {
110
109
  let {
111
110
  theme
112
111
  } = _ref17;
113
- return theme.fontH3;
112
+ return theme.bgColor2;
114
113
  }};
115
- --font-body1: ${_ref18 => {
114
+ --color-background3: ${_ref18 => {
116
115
  let {
117
116
  theme
118
117
  } = _ref18;
119
- return theme.fontBody1;
118
+ return theme.bgColor3;
120
119
  }};
121
- --font-body2: ${_ref19 => {
120
+ --color-background4: ${_ref19 => {
122
121
  let {
123
122
  theme
124
123
  } = _ref19;
125
- return theme.fontBody2;
124
+ return theme.bgColor4;
126
125
  }};
127
- --font-button: ${_ref20 => {
126
+ --color-backdrop: ${_ref20 => {
128
127
  let {
129
128
  theme
130
129
  } = _ref20;
131
- return theme.fontButton;
130
+ return theme.backdropBg;
132
131
  }};
133
- --font-caption: ${_ref21 => {
132
+ --font-h1: ${_ref21 => {
134
133
  let {
135
134
  theme
136
135
  } = _ref21;
137
- return theme.fontCaption;
136
+ return theme.fontH1;
138
137
  }};
139
- --font-family: ${_ref22 => {
138
+ --font-h2: ${_ref22 => {
140
139
  let {
141
140
  theme
142
141
  } = _ref22;
143
- return theme.fontFamily;
142
+ return theme.fontH2;
144
143
  }};
145
- --font-normal: ${_ref23 => {
144
+ --font-h3: ${_ref23 => {
146
145
  let {
147
146
  theme
148
147
  } = _ref23;
149
- return theme.fontWeightNormal;
148
+ return theme.fontH3;
150
149
  }};
151
- --font-bold: ${_ref24 => {
150
+ --font-body1: ${_ref24 => {
152
151
  let {
153
152
  theme
154
153
  } = _ref24;
155
- return theme.fontWeightBold;
154
+ return theme.fontBody1;
156
155
  }};
157
- --font-on-primary: ${_ref25 => {
156
+ --font-body2: ${_ref25 => {
158
157
  let {
159
158
  theme
160
159
  } = _ref25;
161
- return theme.fontOnPrimary;
160
+ return theme.fontBody2;
162
161
  }};
163
- --font-on-success: ${_ref26 => {
162
+ --font-button: ${_ref26 => {
164
163
  let {
165
164
  theme
166
165
  } = _ref26;
167
- return theme.fontOnSuccess;
166
+ return theme.fontButton;
168
167
  }};
169
- --font-on-warning: ${_ref27 => {
168
+ --font-caption: ${_ref27 => {
170
169
  let {
171
170
  theme
172
171
  } = _ref27;
173
- return theme.fontOnWarning;
172
+ return theme.fontCaption;
174
173
  }};
175
- --font-on-danger: ${_ref28 => {
174
+ --font-family: ${_ref28 => {
176
175
  let {
177
176
  theme
178
177
  } = _ref28;
179
- return theme.fontOnDanger;
178
+ return theme.fontFamily;
180
179
  }};
181
- --font-on-background: ${_ref29 => {
180
+ --font-normal: ${_ref29 => {
182
181
  let {
183
182
  theme
184
183
  } = _ref29;
185
- return theme.fontOnBg;
184
+ return theme.fontWeightNormal;
186
185
  }};
187
- --font-on-mute: ${_ref30 => {
186
+ --font-bold: ${_ref30 => {
188
187
  let {
189
188
  theme
190
189
  } = _ref30;
191
- return theme.fontMutedColor;
190
+ return theme.fontWeightBold;
192
191
  }};
193
-
194
- --box-shadow: ${_ref31 => {
192
+ --font-on-primary: ${_ref31 => {
195
193
  let {
196
194
  theme
197
195
  } = _ref31;
198
- return theme.boxShadow;
196
+ return theme.fontOnPrimary;
199
197
  }};
200
- --border-color: ${_ref32 => {
198
+ --font-on-success: ${_ref32 => {
201
199
  let {
202
200
  theme
203
201
  } = _ref32;
204
- return theme.borderColor;
202
+ return theme.fontOnSuccess;
205
203
  }};
206
- --border-color-transparent: ${_ref33 => {
204
+ --font-on-warning: ${_ref33 => {
207
205
  let {
208
206
  theme
209
207
  } = _ref33;
210
- return theme.borderColorTransparent;
208
+ return theme.fontOnWarning;
211
209
  }};
212
- --border-width: ${_ref34 => {
210
+ --font-on-danger: ${_ref34 => {
213
211
  let {
214
212
  theme
215
213
  } = _ref34;
216
- return theme.borderWidth;
214
+ return theme.fontOnDanger;
217
215
  }};
218
- --border-radius-s: ${_ref35 => {
216
+ --font-on-background: ${_ref35 => {
219
217
  let {
220
218
  theme
221
219
  } = _ref35;
222
- return theme.borderRadiusS;
220
+ return theme.fontOnBg;
223
221
  }};
224
- --border-radius: ${_ref36 => {
222
+ --font-on-mute: ${_ref36 => {
225
223
  let {
226
224
  theme
227
225
  } = _ref36;
228
- return theme.borderRadius;
226
+ return theme.fontMutedColor;
229
227
  }};
230
- --border-radius-l: ${_ref37 => {
228
+ --box-shadow: ${_ref37 => {
231
229
  let {
232
230
  theme
233
231
  } = _ref37;
234
- return theme.borderRadiusL;
232
+ return theme.boxShadow;
235
233
  }};
236
- --border-radius-round: ${_ref38 => {
234
+ --border-color: ${_ref38 => {
237
235
  let {
238
236
  theme
239
237
  } = _ref38;
240
- return theme.borderRadiusRound;
238
+ return theme.borderColor;
241
239
  }};
242
-
243
- --spacing-xs: ${_ref39 => {
240
+ --border-color-transparent: ${_ref39 => {
244
241
  let {
245
242
  theme
246
243
  } = _ref39;
247
- return theme.spacerXS;
244
+ return theme.borderColorTransparent;
248
245
  }};
249
- --spacing-s: ${_ref40 => {
246
+ --border-width: ${_ref40 => {
250
247
  let {
251
248
  theme
252
249
  } = _ref40;
253
- return theme.spacerS;
250
+ return theme.borderWidth;
254
251
  }};
255
- --spacing: ${_ref41 => {
252
+ --border-radius-s: ${_ref41 => {
256
253
  let {
257
254
  theme
258
255
  } = _ref41;
259
- return theme.spacer;
256
+ return theme.borderRadiusS;
260
257
  }};
261
- --spacing-l: ${_ref42 => {
258
+ --border-radius: ${_ref42 => {
262
259
  let {
263
260
  theme
264
261
  } = _ref42;
262
+ return theme.borderRadius;
263
+ }};
264
+ --border-radius-l: ${_ref43 => {
265
+ let {
266
+ theme
267
+ } = _ref43;
268
+ return theme.borderRadiusL;
269
+ }};
270
+ --border-radius-round: ${_ref44 => {
271
+ let {
272
+ theme
273
+ } = _ref44;
274
+ return theme.borderRadiusRound;
275
+ }};
276
+ --spacing-xs: ${_ref45 => {
277
+ let {
278
+ theme
279
+ } = _ref45;
280
+ return theme.spacerXS;
281
+ }};
282
+ --spacing-s: ${_ref46 => {
283
+ let {
284
+ theme
285
+ } = _ref46;
286
+ return theme.spacerS;
287
+ }};
288
+ --spacing: ${_ref47 => {
289
+ let {
290
+ theme
291
+ } = _ref47;
292
+ return theme.spacer;
293
+ }};
294
+ --spacing-l: ${_ref48 => {
295
+ let {
296
+ theme
297
+ } = _ref48;
265
298
  return theme.spacerL;
266
299
  }};
267
-
268
300
  /* Global style */
269
301
  font-size: 16px;
270
302
  font-family: Helvetica;
271
303
  overflow-x: hidden;
272
304
  background: var(--color-background1);
273
305
  }
274
-
275
306
  /* Custom normalize */
276
307
  *,
277
308
  *::before,
278
309
  *::after {
279
310
  box-sizing: border-box;
280
311
  }
281
-
282
312
  html {
283
313
  line-height: 1;
284
314
  }
285
-
286
315
  h1,
287
316
  h2,
288
317
  h3,
@@ -295,7 +324,6 @@ const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
295
324
  a {
296
325
  text-decoration: none;
297
326
  }
298
-
299
327
  button,
300
328
  input,
301
329
  optgroup,
@@ -303,30 +331,24 @@ const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
303
331
  textarea {
304
332
  line-height: 1;
305
333
  }
306
-
307
334
  ul {
308
335
  padding: 0;
309
336
  margin: 0;
310
337
  }
311
-
312
338
  li {
313
339
  list-style: none;
314
340
  }
315
-
316
341
  figure {
317
342
  margin: 0;
318
343
  }
319
-
320
344
  p {
321
345
  margin: 0;
322
346
  }
323
-
324
347
  dl,
325
348
  dt,
326
349
  dd {
327
350
  margin: 0;
328
351
  }
329
-
330
352
  .margin-bottom-s {
331
353
  margin-bottom: var(--spacing-s);
332
354
  }
@@ -20,7 +20,10 @@ const colorStyle = {
20
20
  bgColor1: '#13142e',
21
21
  bgColor2: '#222143',
22
22
  bgColor3: '#2d2a5d',
23
- backdropBg: 'rgba(0, 0, 0, 0.75)'
23
+ bgColor4: '#222143',
24
+ backdropBg: 'rgba(0, 0, 0, 0.75)',
25
+ useLightBrand: true,
26
+ hideMainDecoration: true
24
27
  };
25
28
 
26
29
  // Common font style