UNPKG

react-garden

Version:

React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.

63 lines (61 loc) 1.86 kB
const input = theme => { return { MuiInputLabel: { styleOverrides: { root: { color: theme.palette.text.secondary } } }, MuiInput: { styleOverrides: { root: { '&:before': { borderBottom: `1px solid rgba(${theme.palette.customColors.main}, 0.22)` }, '&:hover:not(.Mui-disabled):before': { borderBottom: `1px solid rgba(${theme.palette.customColors.main}, 0.32)` }, '&.Mui-disabled:before': { borderBottomStyle: 'solid' } } } }, MuiFilledInput: { styleOverrides: { root: { backgroundColor: `rgba(${theme.palette.customColors.main}, 0.04)`, '&:hover:not(.Mui-disabled)': { backgroundColor: `rgba(${theme.palette.customColors.main}, 0.08)` }, '&:before': { borderBottom: `1px solid rgba(${theme.palette.customColors.main}, 0.22)` }, '&:hover:not(.Mui-disabled):before': { borderBottom: `1px solid rgba(${theme.palette.customColors.main}, 0.32)` } } } }, MuiOutlinedInput: { styleOverrides: { root: { '&:hover:not(.Mui-focused):not(.Mui-disabled) .MuiOutlinedInput-notchedOutline': { borderColor: `rgba(${theme.palette.customColors.main}, 0.32)` }, '&:hover.Mui-error .MuiOutlinedInput-notchedOutline': { borderColor: theme.palette.error.main }, '& .MuiOutlinedInput-notchedOutline': { borderColor: `rgba(${theme.palette.customColors.main}, 0.22)` }, '&.Mui-disabled .MuiOutlinedInput-notchedOutline': { borderColor: theme.palette.text.disabled } } } } } } export default input