Skip to content

Commit 155628c

Browse files
committedMar 9, 2025
Upgrade Tailwind v4
1 parent 0c82b0b commit 155628c

File tree

4 files changed

+1102
-966
lines changed

4 files changed

+1102
-966
lines changed
 

‎input.css

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

‎package-lock.json

+1,079-953
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"description": "Simple file structure for Tailwind projects",
55
"main": "index.js",
66
"scripts": {
7-
"watch": "tailwindcss -i ./input.css -o ./css/style.css --watch",
8-
"build": "tailwindcss -i ./input.css -o ./css/style.css"
7+
"watch": "npx @tailwindcss/cli -i ./input.css -o ./css/style.css --watch",
8+
"build": "npx @tailwindcss/cli -i ./input.css -o ./css/style.css"
99
},
1010
"author": "Brad Traversy",
1111
"license": "MIT",
1212
"devDependencies": {
13-
"tailwindcss": "^3.2.7"
13+
"@tailwindcss/cli": "^4.0.12",
14+
"tailwindcss": "^4.0.12"
1415
}
1516
}

‎tailwind.config.js

-7
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.