// eslint-disable-next-line no-restricted-imports import { createMuiTheme } from '@material-ui/core' // eslint-disable-next-line no-restricted-imports import { Overrides } from '@material-ui/core/styles/overrides' import { GlobalAppThemeInterface } from '@monorail/helpers/theme' import { Theme } from '@monorail/v2/core/theme/colors' const fontFamily = `'Gotham SSm A', 'Gotham SSm B', -apple-system, BlinkMacSystemFont,'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'` const LIST_ITEM_INSET = 28 export const createMuiThemeFromSc = (themeSC: GlobalAppThemeInterface) => { const theme = themeSC.v2 const overrides = makeMuiOverrides(theme) return createMuiTheme({ /** * Material uses inheritence for some components, such as MuiButtonBase. In order to provide our desired defaults * for props/styles across all usages (direct or indirect), we cannot simply provide them as defaults in our * re-export layer; we provide those defaults here. * * In order to minimize variation, we try to lock into as few visual variations of MUI as we can and ban usage * visual-only MUI features, such as "size"/"color"/"variant". We make exceptions when the visual variations of MUI * are feature-significant. * * DS 2020-09-12 */ props: { MuiSvgIcon: { fontSize: 'inherit', // shapeRendering: 'crispedges', // Unsure which looks better, on or off? -DS 2020-09-14 }, MuiButtonBase: { disableRipple: true, }, // MUI Lists do weird things with