import { createTheme, ThemeProvider } from '@mui/material/styles'; import Button from '@mui/material/Button'; const customTheme = createTheme({ components: { MuiButton: { styleOverrides: { root: { variants: [ { props: { variant: 'dashed' }, style: ({ theme }) => ({ textTransform: 'none', border: `2px dashed ${theme.palette.primary.main}`, color: theme.palette.primary.main, }), }, { props: { variant: 'dashed', color: 'secondary' }, style: ({ theme }) => ({ border: `2px dashed ${theme.palette.secondary.main}`, color: theme.palette.secondary.main, }), }, { props: { variant: 'dashed', size: 'large' }, style: { borderWidth: 4, }, }, { props: { variant: 'dashed', color: 'secondary', size: 'large' }, style: { fontSize: 18, }, }, ], }, }, }, }, }); export default function GlobalThemeVariants() { return ( ); }