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.

36 lines (30 loc) 911 B
// ThreeD Garden Base Styles import colors from "~/themes/theme-light/base/colors" import borders from "~/themes/theme-light/base/borders" import boxShadows from "~/themes/theme-light/base/boxShadows" // ThreeD Garden Helper Function import rgba from "~/themes/theme-light/functions/rgba" const { black, white } = colors const { borderWidth, borderRadius } = borders const { md } = boxShadows // types // types type Types = any const card: Types = { styleOverrides: { root: { display: "flex", flexDirection: "column", position: "relative", minWidth: 0, wordWrap: "break-word", backgroundColor: white.main, backgroundClip: "border-box", border: `${borderWidth[0]} solid ${rgba(black.main, 0.125)}`, borderRadius: borderRadius.xl, boxShadow: md, overflow: "visible", }, }, } export default card