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.

39 lines (32 loc) 970 B
// ThreeD Garden Base Styles import typography from "~/themes/theme-dark/base/typography" import borders from "~/themes/theme-dark/base/borders" // ThreeD Garden Helper Functions import pxToRem from "~/themes/theme-dark/functions/pxToRem" const { fontWeightBold, size } = typography const { borderRadius } = borders const root = { display: "inline-flex", justifyContent: "center", alignItems: "center", fontSize: size.xs, fontWeight: fontWeightBold, borderRadius: borderRadius.lg, padding: `${pxToRem(6.302)} ${pxToRem(16.604)}`, lineHeight: 1.4, textAlign: "center", textTransform: "uppercase", userSelect: "none", backgroundSize: "150% !important", backgroundPositionX: "25% !important", transition: "all 150ms ease-in", "&:disabled": { pointerEvent: "none", opacity: 0.65, }, "& .material-icons": { fontSize: pxToRem(15), marginTop: pxToRem(-2), }, } export default root