Skip to content

Commit c6dcaf7

Browse files
datlechinJubeki
andauthored
Upgrade to Tailwind CSS v4.0 (laravel#6523)
* Upgrade to Tailwind CSS v4.0 * Upgrade to Tailwind CSS 4 * Upgrade to Tailwind CSS 4 * Upgrade to Tailwind CSS 4 * Upgrade to Tailwind CSS 4 * Upgrade to Tailwind CSS v4.0 * remove compatible styles Co-authored-by: Julius Kiekbusch <[email protected]> * wip --------- Co-authored-by: Julius Kiekbusch <[email protected]>
1 parent 60269b2 commit c6dcaf7

File tree

6 files changed

+30
-46
lines changed

6 files changed

+30
-46
lines changed

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
"dev": "vite"
77
},
88
"devDependencies": {
9-
"autoprefixer": "^10.4.20",
9+
"@tailwindcss/vite": "^4.0.0",
1010
"axios": "^1.7.4",
1111
"concurrently": "^9.0.1",
1212
"laravel-vite-plugin": "^1.2.0",
13-
"postcss": "^8.4.47",
14-
"tailwindcss": "^3.4.13",
13+
"tailwindcss": "^4.0.0",
1514
"vite": "^6.0.11"
1615
}
1716
}

postcss.config.js

-6
This file was deleted.

resources/css/app.css

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
2+
3+
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
4+
@source '../../storage/framework/views/*.php';
5+
@source "../**/*.blade.php";
6+
@source "../**/*.js";
7+
@source "../**/*.vue";
8+
9+
@theme {
10+
--font-sans: Figtree, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
11+
'Noto Color Emoji';
12+
}

resources/views/welcome.blade.php

+14-14
Large diffs are not rendered by default.

tailwind.config.js

-20
This file was deleted.

vite.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { defineConfig } from 'vite';
22
import laravel from 'laravel-vite-plugin';
3+
import tailwindcss from '@tailwindcss/vite';
34

45
export default defineConfig({
56
plugins: [
67
laravel({
78
input: ['resources/css/app.css', 'resources/js/app.js'],
89
refresh: true,
910
}),
11+
tailwindcss(),
1012
],
1113
});

0 commit comments

Comments
 (0)