♻️ refactor(App): use custom theme

This commit is contained in:
2024-01-20 16:07:05 +01:00
parent c569fcf0a2
commit 8aff802faa
2 changed files with 28 additions and 1 deletions
+7
View File
@@ -1,10 +1,17 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import { ThemeProvider } from '@mui/material/styles'
import { CssBaseline } from '@mui/material'
import App from './App.tsx'
import theme from 'style/theme.ts'
import './index.css'
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<ThemeProvider theme={theme}>
<CssBaseline />
<App />
</ThemeProvider>
</React.StrictMode>
)
+20
View File
@@ -0,0 +1,20 @@
import { createTheme } from '@mui/material/styles'
// A custom theme for this app
const theme = createTheme({
palette: {
mode: 'dark',
primary: {
main: '#e44c65',
},
secondary: {
main: '#3f51b5',
},
background: {
default: '#101018',
paper: '#1c1d26',
},
},
})
export default theme