Skip to content
Snippets Groups Projects
theme.ts 990 B
Newer Older
  • Learn to ignore specific revisions
  • import { createTheme } from '@mui/material'
    
    export const theme = createTheme({
      palette: {
        mode: 'dark',
        primary: {
          main: '#F1C017',
          contrastText: '#000',
        },
      },
      components: {
        MuiButton: {
          defaultProps: {
            variant: 'contained',
          },
          styleOverrides: {
            root: {
              fontWeight: 700,
              minWidth: 130,
            },
          },
        },
        MuiTextField: {
          defaultProps: {
            size: 'small',
            fullWidth: true,
          },
          styleOverrides: {
            root: {
              maxWidth: '600px',
            },
          },
        },
        MuiSwitch: {
          styleOverrides: {
            track: {
              backgroundColor: '#7B7B7B',
              '.Mui-checked.Mui-checked + &': {
                backgroundColor: '#DCBA4A',
                opacity: 1,
              },
            },
          },
        },
        MuiDialog: {
          styleOverrides: {
            paper: {
              padding: '1rem',
              maxWidth: '700px',
            },
          },
        },
      },
    })