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.

90 lines (70 loc) 1.85 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 { text, info, secondary, transparent } = colors const { size } = typography const buttonText = { base: { backgroundColor: transparent.main, minHeight: pxToRem(37), color: text.main, boxShadow: "none", padding: `${pxToRem(9)} ${pxToRem(24)}`, "&:hover": { backgroundColor: transparent.main, boxShadow: "none", }, "&:focus": { boxShadow: "none", }, "&:active, &:active:focus, &:active:hover": { opacity: 0.85, boxShadow: "none", }, "&:disabled": { boxShadow: "none", }, "& .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: { color: info.main, "&:hover": { color: info.main, }, "&:focus:not(:hover)": { color: info.focus, boxShadow: "none", }, }, secondary: { color: secondary.main, "&:hover": { color: secondary.main, }, "&:focus:not(:hover)": { color: secondary.focus, boxShadow: "none", }, }, } export default buttonText