Skip to content

Commit

Permalink
feat: create muitTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Santiago committed Oct 14, 2021
1 parent b68337b commit 104d445
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { MenuItem, Navigation } from 'components';
import { Navigation } from 'components';

import { ThemeProvider } from '@material-ui/styles';
import { lightTheme } from 'styles/muiTheme';

import '@fontsource/roboto/300.css';
import '@fontsource/roboto/400.css';
import '@fontsource/roboto/500.css';
import '@fontsource/roboto/700.css';

const App = (): JSX.Element => (
<div>
<ThemeProvider theme={lightTheme}>
<Navigation />
<MenuItem />
</div>
</ThemeProvider>
);

export default App;
13 changes: 13 additions & 0 deletions src/styles/muiTheme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { createTheme } from '@material-ui/core/styles';

export const darkTheme = createTheme({
palette: {
type: 'dark',
},
});

export const lightTheme = createTheme({
palette: {
type: 'light',
},
});

0 comments on commit 104d445

Please sign in to comment.