-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
41 lines (36 loc) · 983 Bytes
/
app.js
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
import React from 'react';
import ReactDOM from 'react-dom';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import purple from '@material-ui/core/colors/purple';
import green from '@material-ui/core/colors/green';
import CssBaseline from '@material-ui/core/CssBaseline';
import AppShell from './src/AppShell';
const theme = createMuiTheme({
typography: {
useNextVariants: true,
},
palette: {
primary: {
light: purple[300],
main: purple[500],
dark: purple[700],
},
secondary: {
light: green[300],
main: green[500],
dark: green[700],
},
},
});
if (process.browser) {
window.theme = theme;
}
console.log("DevNexus 2022 is running");
ReactDOM.render(
<MuiThemeProvider theme={theme}>
{/* Reboot kickstart an elegant, consistent, and simple baseline to build upon. */}
<CssBaseline />
<AppShell />
</MuiThemeProvider>,
document.getElementById('app')
);