Migrate from MUI to Tailwind
Answered
West African Lion posted this in #help-forum
West African LionOP
I'm trying to migrate a project from MUI to tailwind css in a Next JS project gradually. I have installed tailwindcss and have gone through each step of installation. For tailwind I have created a different file tailwind.css but it is not working when I'm importing it in a component.
What am I doing wrong?
/* tailwind.config.js*/
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {},
},
plugins: [],
};/* tailwind.css */
@tailwind base;
@tailwind components;
@tailwind utilities;// ProductCard.jsx
import Card from "@mui/material/Card";
import CardActionArea from "@mui/material/CardActionArea";
import CardMedia from "@mui/material/CardMedia";
import CardContent from "@mui/material/CardContent";
import { Typography } from "@mui/material";
import "../app/styles/tailwind.css";
// ... Other code goes hereWhat am I doing wrong?
Answered by West African Lion
It worked... the postcss and autoprefixer was not installed
1 Reply
West African LionOP
It worked... the postcss and autoprefixer was not installed
Answer