adding mui basic

This commit is contained in:
talksik
2022-05-27 21:11:43 -05:00
parent 7e40949fc8
commit 50e006b2d2
4 changed files with 344 additions and 8 deletions
+32 -1
View File
@@ -1,11 +1,42 @@
import { Button, createTheme, ThemeProvider, Typography } from '@mui/material';
import * as React from 'react';
import ReactDOM from "react-dom/client";
const theme = createTheme({
typography:{
fontFamily: ['IBM Plex Sans', 'sans-serif'].join(',')
},
palette: {
primary: {
main: '#438E86',
},
secondary: {
main: '#FFB6B6',
},
},
components: {
// Name of the component
MuiButtonBase: {
defaultProps: {
// The props to change the default for.
disableRipple: true, // No more ripple, on the whole application 💣!
},
},
},
});
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
<React.StrictMode>
hello from react
<ThemeProvider theme={theme}>
<Typography>hahaha</Typography>
<Button>Yooo</Button>
</ThemeProvider>
</React.StrictMode>
);
+3
View File
@@ -16,6 +16,9 @@ const createWindow = (): void => {
// Create the browser window.
const mainWindow = new BrowserWindow({
...DEFAULT_APP_PRESET,
// titleBarStyle: "hiddenInset",
frame: false,
roundedCorners: true,
});
// and load the index.html of the app.