Integration Tailwind
Create files
Create files in the root directory
tailwind.config.js
postcss.config.js
orpostcss.config.cjs
(vite.js)
const config = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {},
},
corePlugins: {
// Remove the Tailwind CSS preflight styles so it can use Material UI's preflight instead (CssBaseline).
preflight: false,
},
plugins: [],
};
export default config;
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
...
/* scrollbar */
@import 'simplebar-react/dist/simplebar.min.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
html {
...
}