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.

40 lines (31 loc) 826 B
// @mui material components import { Theme } from "@mui/material/styles" function menuItem(theme: Theme) { const { palette, borders, transitions } = theme const { secondary, light, dark } = palette const { borderRadius } = borders return { display: "flex", alignItems: "center", width: "100%", color: secondary.main, borderRadius: borderRadius.md, transition: transitions.create("background-color", { easing: transitions.easing.easeInOut, duration: transitions.duration.standard, }), "& *": { transition: "color 100ms linear", }, "&:not(:last-child)": { mb: 1, }, "&:hover": { backgroundColor: light.main, "& *": { color: dark.main, }, }, } } export default menuItem