-
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathindex.tsx
More file actions
42 lines (34 loc) · 1.19 KB
/
index.tsx
File metadata and controls
42 lines (34 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from 'react';
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import { RouterProvider } from 'react-router-dom';
import { applyTheme, Theme } from '@cloudscape-design/components/theming';
import { router } from './router';
import { store } from './store';
import '@cloudscape-design/global-styles/index.css';
import 'ace-builds/css/ace.css';
import 'ace-builds/css/theme/cloud_editor.css';
import 'ace-builds/css/theme/cloud_editor_dark.css';
import 'assets/css/index.css';
import 'locale';
const container = document.getElementById('root');
const theme: Theme = {
tokens: {
fontFamilyBase: 'metro-web, Metro, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',
fontSizeHeadingS: '15px',
fontSizeHeadingL: '19px',
fontSizeHeadingXl: '22px',
fontSizeDisplayL: '40px',
},
};
applyTheme({ theme });
if (container) {
const root = createRoot(container);
root.render(
<React.StrictMode>
<Provider store={store}>
<RouterProvider router={router} />
</Provider>
</React.StrictMode>,
);
}