Upgrade tailwindcss to v3 and dependencies; migrate config file

This commit is contained in:
Willian Mitsuda 2022-08-07 21:39:37 -03:00
parent 2fca205106
commit 42f03fc557
3 changed files with 692 additions and 1502 deletions

2178
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -75,10 +75,10 @@
},
"devDependencies": {
"@vitejs/plugin-react": "^2.0.0",
"autoprefixer": "^9.8.8",
"postcss": "^7.0.39",
"autoprefixer": "^10.4.8",
"postcss": "^8.4.16",
"source-map-explorer": "^2.5.2",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.6",
"tailwindcss": "^3.1.8",
"vite": "^3.0.4",
"vite-plugin-compression": "^0.5.1"
}

View File

@ -10,8 +10,7 @@ function withOpacity(variableName) {
}
module.exports = {
purge: ["./src/**/*.{js,jsx,ts,tsx}", "./index.html"],
darkMode: false, // or 'media' or 'class'
content: ["./src/**/*.{js,jsx,ts,tsx}", "./index.html"],
theme: {
extend: {
colors: {
@ -53,12 +52,5 @@ module.exports = {
},
},
},
variants: {
extend: {
cursor: ["disabled"],
backgroundColor: ["disabled"],
textColor: ["disabled"],
},
},
plugins: [],
};