Skip to content

Commit dfeadc7

Browse files
authored
chore: upgrade tailwind to v4 (#8)
1 parent 134448b commit dfeadc7

7 files changed

Lines changed: 211 additions & 390 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Guidance for coding agents working in this repository.
2727
-`entrypoints/devtools-panel/lang.ts`: typed wrapper around `browser.i18n.getMessage`.
2828
-`public/_locales/en/messages.json`: English extension and panel messages.
2929
-`public/_locales/zh_CN/messages.json`: Simplified Chinese extension and panel messages.
30-
-`assets/main.css`: Tailwind layers and small global Element Plus table overrides.
30+
-`assets/main.css`: Tailwind CSS v4 import and small global Element Plus table overrides.
3131
-`public/icon/`: extension icons.
3232
-`.github/renovate.json5`: dependency update policy.
3333

‎assets/main.css‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import"tailwindcss";
42

53
body {
64
padding:16px;
@@ -10,4 +8,4 @@ body {
108

119
.el-table--enable-row-hover .el-table__bodytr:hover>td.el-table__cell{
1210
background-color: inherit !important;
13-
}
11+
}

‎package.json‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@
2828
},
2929
"devDependencies": {
3030
"@antfu/eslint-config": "^3.12.0",
31+
"@tailwindcss/vite": "^4.3.0",
3132
"@types/chrome": "^0.0.280",
3233
"@vueuse/core": "^12.0.0",
3334
"@wxt-dev/module-vue": "^1.0.3",
34-
"autoprefixer": "^10.4.20",
3535
"conventional-changelog-cli": "^5.0.0",
3636
"eslint": "^9.17.0",
37-
"postcss": "^8.4.49",
38-
"tailwindcss": "^3.4.17",
37+
"tailwindcss": "^4.3.0",
3938
"typescript": "5.6.3",
4039
"vue-tsc": "^2.1.10",
4140
"wxt": "^0.20.26"

0 commit comments

Comments
 (0)