git clone https://github.com/apoorvcodes/react-tailwind-starter/
cd project-path
yarn start
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}
Note : You can add this config to remove unused stylings for better performance
purge: ["/src/**/*.{js,jsx,ts,tsx}', './public/index.html"]
module.exports = {
style: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
},
}
You can add more plugins read here Carco Docs