1# If you're on Next.js v10 or newer
2npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
3
4# If you're on Next.js v9 or older
5npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9
1// tailwind.config.js
2module.exports = {
3 purge: [],
4 darkMode: false, // or 'media' or 'class'
5 theme: {
6 extend: {},
7 },
8 variants: {
9 extend: {},
10 },
11 plugins: [],
12}