Skip to content

Commit 6bf6dd3

Browse files
committedJan 10, 2022
Upgrade tailwind to v3
1 parent 000a0b6 commit 6bf6dd3

File tree

3 files changed

+98
-255
lines changed

3 files changed

+98
-255
lines changed
 

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"devDependencies": {
3939
"@types/node": "^16.10.2",
4040
"@types/react": "^17.0.25",
41-
"autoprefixer": "^10.2.6",
42-
"postcss": "^8.3.5",
43-
"tailwindcss": "^2.2.4",
41+
"autoprefixer": "^10.4.2",
42+
"postcss": "^8.4.5",
43+
"tailwindcss": "^3.0.12",
4444
"typescript": "^4.4.3"
4545
}
4646
}

‎tailwind.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
const plugin = require('tailwindcss/plugin')
22

33
module.exports = {
4-
mode: 'jit',
5-
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './lib/components/**/*.{js,ts,jsx,tsx}'],
6-
darkMode: false, // or 'media' or 'class'
4+
content: ['./pages/**/*.{js,ts,jsx,tsx}', './lib/components/**/*.{js,ts,jsx,tsx}'],
75
theme: {
86
extend: {},
97
},

0 commit comments

Comments
 (0)
Please sign in to comment.