I've a create-react-app project which uses @material-ui/core. How can I extend the tailwind css theme colors with the @material-ui/core pallete.
This is my tailwind.config.js file where I want tailwind to extend @material-ui/core pallete colors.
const { makeStyles, createStyles } = require('@material-ui/core');
let materialTheme = {};
const useHeaderStyles = makeStyles((theme) => {
materialTheme = theme; // I'm not able to get this theme
return createStyles(theme);
});
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {
colors: {
...materialTheme.palette
}
},
},
plugins: [],
}