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.

77 lines (59 loc) 1.65 kB
// ThreeD Garden Base Styles import colors from "~/themes/theme-dark/base/colors" import typography from "~/themes/theme-dark/base/typography" // ThreeD Garden Helper Functions import pxToRem from "~/themes/theme-dark/functions/pxToRem" const { white, text, info, secondary } = colors const { size } = typography const contained = { base: { backgroundColor: white.main, minHeight: pxToRem(37), color: text.main, padding: `${pxToRem(9)} ${pxToRem(24)}`, "&:hover": { backgroundColor: white.main, }, "&:active, &:active:focus, &:active:hover": { opacity: 0.85, }, "& .material-icon, .material-icons-round, svg": { fontSize: `${pxToRem(16)} !important`, }, }, small: { minHeight: pxToRem(29), padding: `${pxToRem(6)} ${pxToRem(18)}`, fontSize: size.xs, "& .material-icon, .material-icons-round, svg": { fontSize: `${pxToRem(12)} !important`, }, }, large: { minHeight: pxToRem(44), padding: `${pxToRem(12)} ${pxToRem(64)}`, fontSize: size.sm, "& .material-icon, .material-icons-round, svg": { fontSize: `${pxToRem(22)} !important`, }, }, primary: { backgroundColor: info.main, "&:hover": { backgroundColor: info.main, }, "&:focus:not(:hover)": { backgroundColor: info.focus, }, }, secondary: { backgroundColor: secondary.main, "&:hover": { backgroundColor: secondary.main, }, "&:focus:not(:hover)": { backgroundColor: secondary.focus, }, }, } export default contained