DEV Community

sayantan chakraborty
sayantan chakraborty

Posted on

theme.js while using MUI in nextjs project

Theming Mui

this offer a theming methods but from react 18 and next i never able to use theme.js in my system. this below button's styling works for me but i need re-usability of such css.

 <Button css={css` 
  display: flex;
  align-items: center;
  justify-content: center;                          
  background-color: black;
  color: white;
  font-size: 10px;
  padding: 10px 60px;
  border-radius: 5px;
  margin: 10px 0px;
  cursor: pointer;
  margin-left: 10px;
  :hover {
            color: #3e2723;
            border:2px solid #3e2723;
            border-color: #3e2723;
            transition: border-color 0s ease-out 0.6s, width 0.3s ease-out 0.6s, height 0.3s ease-out .7s;
          }
`}>  Click for More </Button>

Enter fullscreen mode Exit fullscreen mode

Top comments (0)