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.
62 lines (49 loc) • 1.46 kB
text/typescript
// ThreeD Garden Base Styles
import colors from "~/themes/theme-dark/base/colors"
import borders from "~/themes/theme-dark/base/borders"
import typography from "~/themes/theme-dark/base/typography"
// // ThreeD Garden UI Dashboard PRO helper functions
import pxToRem from "~/themes/theme-dark/functions/pxToRem"
import rgba from "~/themes/theme-dark/functions/rgba"
const { inputBorderColor, info, grey, transparent, white } = colors
const { borderRadius } = borders
const { size } = typography
// types
type Types = any
const inputOutlined: Types = {
styleOverrides: {
root: {
backgroundColor: transparent.main,
fontSize: size.sm,
borderRadius: borderRadius.md,
"&:hover .MuiOutlinedInput-notchedOutline": {
borderColor: rgba(inputBorderColor, 0.6),
},
"&.Mui-focused": {
"& .MuiOutlinedInput-notchedOutline": {
borderColor: info.main,
},
},
},
notchedOutline: {
borderColor: rgba(inputBorderColor, 0.6),
},
input: {
color: white.main,
padding: pxToRem(12),
backgroundColor: transparent.main,
"&::-webkit-input-placeholder": {
color: grey[100],
},
},
inputSizeSmall: {
fontSize: size.xs,
padding: pxToRem(10),
},
multiline: {
color: grey[700],
padding: 0,
},
},
}
export default inputOutlined