mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
34 lines
700 B
TypeScript
34 lines
700 B
TypeScript
import { FC } from 'react';
|
|
|
|
import { CssBaseline } from '@mui/material';
|
|
import { createTheme, responsiveFontSizes, ThemeProvider } from '@mui/material/styles';
|
|
import { blueGrey, blue } from '@mui/material/colors';
|
|
|
|
import { RequiredChildrenProps } from './utils';
|
|
|
|
const theme = responsiveFontSizes(
|
|
createTheme({
|
|
typography: {
|
|
fontSize: 13
|
|
},
|
|
palette: {
|
|
mode: 'dark',
|
|
secondary: {
|
|
main: blue[500]
|
|
},
|
|
info: {
|
|
main: blueGrey[500]
|
|
}
|
|
}
|
|
})
|
|
);
|
|
|
|
const CustomTheme: FC<RequiredChildrenProps> = ({ children }) => (
|
|
<ThemeProvider theme={theme}>
|
|
<CssBaseline />
|
|
{children}
|
|
</ThemeProvider>
|
|
);
|
|
|
|
export default CustomTheme;
|