Skip to content

Commit 77423ae

Browse files
committed
chore(deps): update tailwindcss to v4
1 parent c998bf5 commit 77423ae

17 files changed

+360
-371
lines changed

assets/css/main.css

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";
2+
3+
@config '../../tailwind.config.ts';
4+
5+
/*
6+
The default border color has changed to `currentColor` in Tailwind CSS v4,
7+
so we've added these compatibility styles to make sure everything still
8+
looks the same as it did with Tailwind CSS v3.
9+
10+
If we ever want to remove these styles, we need to add an explicit border
11+
color utility to any element that depends on these defaults.
12+
*/
13+
@layer base {
14+
*,
15+
::after,
16+
::before,
17+
::backdrop,
18+
::file-selector-button {
19+
border-color: var(--color-gray-200, currentColor);
20+
}
21+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
"@primer/octicons-react": "19.14.0",
143143
"@primer/primitives": "10.3.4",
144144
"@primer/react": "36.27.0",
145+
"@tailwindcss/postcss": "^4.0.0",
145146
"@testing-library/react": "16.2.0",
146147
"@types/jest": "29.5.14",
147148
"@types/node": "22.10.9",
@@ -150,7 +151,6 @@
150151
"@types/react-dom": "19.0.3",
151152
"@types/react-router-dom": "5.3.3",
152153
"@types/semver": "7.5.8",
153-
"autoprefixer": "10.4.20",
154154
"axios": "1.7.9",
155155
"clsx": "2.1.1",
156156
"concurrently": "9.1.2",
@@ -176,7 +176,7 @@
176176
"semver": "7.6.3",
177177
"styled-components": "6.1.14",
178178
"tailwind-merge": "2.6.0",
179-
"tailwindcss": "3.4.17",
179+
"tailwindcss": "4.0.0",
180180
"terser-webpack-plugin": "5.3.11",
181181
"ts-jest": "29.2.5",
182182
"ts-loader": "9.5.2",

0 commit comments

Comments
 (0)