Configuração:
npx create-next-app next-crud
npm install -D tailwindcss@latest postcss@lates sutoprefixer@latest
npx tailwindcss init -p
Dentro do arquivo tailwind.config.js coloque:
module.exports = {
purge: {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}'
],
safelist: [
/^bg-/,
/^to-/,
/^from-/,
]
},
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}