mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
49 lines
907 B
TypeScript
49 lines
907 B
TypeScript
import type { FC } from 'react';
|
|
|
|
import { CssBaseline } from '@mui/material';
|
|
import {
|
|
ThemeProvider,
|
|
createTheme,
|
|
responsiveFontSizes
|
|
} from '@mui/material/styles';
|
|
|
|
import type { RequiredChildrenProps } from 'utils';
|
|
|
|
export const dialogStyle = {
|
|
'& .MuiDialog-paper': {
|
|
borderRadius: '8px',
|
|
borderColor: '#565656',
|
|
borderStyle: 'solid',
|
|
borderWidth: '1px'
|
|
}
|
|
};
|
|
|
|
const theme = responsiveFontSizes(
|
|
createTheme({
|
|
typography: {
|
|
fontSize: 13
|
|
},
|
|
palette: {
|
|
mode: 'dark',
|
|
secondary: {
|
|
main: '#2196f3' // blue[500]
|
|
},
|
|
info: {
|
|
main: '#607d8b' // blueGrey[500]
|
|
},
|
|
text: {
|
|
disabled: '#eee' // white
|
|
}
|
|
}
|
|
})
|
|
);
|
|
|
|
const CustomTheme: FC<RequiredChildrenProps> = ({ children }) => (
|
|
<ThemeProvider theme={theme}>
|
|
<CssBaseline />
|
|
{children}
|
|
</ThemeProvider>
|
|
);
|
|
|
|
export default CustomTheme;
|