Skip to content

Commit a58a438

Browse files
⚡️ Upgrade Tailwind version to 4
1 parent c0538cf commit a58a438

22 files changed

+765
-1561
lines changed

package-lock.json

Lines changed: 653 additions & 1453 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
"@docsearch/js": "^3.9.0",
1313
"@fontsource/poppins": "^5.2.6",
1414
"@tailwindcss/forms": "^0.5.10",
15+
"@tailwindcss/postcss": "^4.1.8",
1516
"@tailwindcss/typography": "^0.5.16",
1617
"alpinejs": "^3.14.9",
17-
"autoprefixer": "^10.4.21",
1818
"axios": "^1.9.0",
1919
"laravel-vite-plugin": "^0.7.8",
20-
"motion": "^12.10.4",
20+
"motion": "^12.16.0",
2121
"number-flow": "^0.5.7",
22-
"postcss": "^8.5.3",
22+
"postcss": "^8.5.4",
2323
"prettier": "^3.5.3",
2424
"prettier-plugin-blade": "^2.1.21",
25-
"prettier-plugin-tailwindcss": "^0.6.11",
26-
"tailwindcss": "^3.4.17",
25+
"prettier-plugin-tailwindcss": "^0.6.12",
26+
"tailwindcss": "^4.1.8",
2727
"vite": "^4.5.14"
2828
}
2929
}

postcss.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export default {
22
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
3+
'@tailwindcss/postcss': {},
54
},
65
};

public/js/filament/forms/components/markdown-editor.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/filament/forms/components/rich-editor.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/filament/forms/components/select.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/filament/support/support.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/css/app.css

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
2+
3+
@plugin '@tailwindcss/typography';
4+
@plugin '@tailwindcss/forms';
5+
6+
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
7+
@source '../../storage/framework/views/*.php';
8+
@source '../../vendor/filament/**/*.blade.php';
9+
10+
@custom-variant dark (&:where(.dark, .dark *));
11+
12+
@theme {
13+
--color-mirage: #141624;
14+
--color-haiti: #16182c;
15+
--color-cloud: #2b2e53;
16+
17+
--font-poppins: 'Poppins', Verdana, sans-serif;
18+
}
19+
20+
@utility container {
21+
margin-inline: auto;
22+
}
23+
24+
/*
25+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
26+
so we've added these compatibility styles to make sure everything still
27+
looks the same as it did with Tailwind CSS v3.
28+
29+
If we ever want to remove these styles, we need to add an explicit border
30+
color utility to any element that depends on these defaults.
31+
*/
32+
@layer base {
33+
*,
34+
::after,
35+
::before,
36+
::backdrop,
37+
::file-selector-button {
38+
border-color: var(--color-gray-200, currentcolor);
39+
}
40+
}
441

542
@layer base {
643
html {

resources/css/docsearch.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@reference "./app.css"
2+
13
:root {
24
--docsearch-container-background: rgba(0, 0, 0, 0.5);
35
--docsearch-primary-color: #987af1;
@@ -34,11 +36,11 @@
3436
}
3537

3638
.DocSearch-Button-Placeholder {
37-
@apply hidden pl-1 pr-1 text-sm text-black/60 min-[400px]:block min-[520px]:pr-20 dark:text-white/60;
39+
@apply hidden pr-1 pl-1 text-sm text-black/60 min-[400px]:block min-[520px]:pr-20 dark:text-white/60;
3840
}
3941

4042
.DocSearch-Button-Keys {
41-
@apply ml-1 mt-1 hidden min-w-[auto] text-sm leading-none min-[520px]:flex;
43+
@apply mt-1 ml-1 hidden min-w-[auto] text-sm leading-none min-[520px]:flex;
4244
}
4345

4446
.DocSearch-Button-Key {

resources/views/components/alert-v1-announcement.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ class="relative z-0 mt-5 flex flex-col items-start gap-3 overflow-hidden rounded
66
>
77
{{-- Blue circle --}}
88
<div
9-
class="absolute left-6 top-0 -z-10 hidden h-32 w-6 -rotate-[60deg] rounded-full blur-lg min-[450px]:top-1/2 min-[450px]:-translate-y-1/2 dark:block dark:bg-gradient-to-b dark:from-blue-500 dark:to-blue-500/10"
9+
class="absolute left-6 top-0 -z-10 hidden h-32 w-6 -rotate-60 rounded-full blur-lg min-[450px]:top-1/2 min-[450px]:-translate-y-1/2 dark:block dark:bg-linear-to-b dark:from-blue-500 dark:to-blue-500/10"
1010
aria-hidden="true"
1111
></div>
1212

1313
{{-- White circle --}}
1414
<div
15-
class="absolute left-20 top-0 -z-20 hidden h-32 w-3 -rotate-[60deg] rounded-full blur-lg min-[450px]:top-1/2 min-[450px]:-translate-y-1/2 dark:block dark:bg-gradient-to-b dark:from-white/30 dark:to-transparent"
15+
class="absolute left-20 top-0 -z-20 hidden h-32 w-3 -rotate-60 rounded-full blur-lg min-[450px]:top-1/2 min-[450px]:-translate-y-1/2 dark:block dark:bg-linear-to-b dark:from-white/30 dark:to-transparent"
1616
aria-hidden="true"
1717
></div>
1818

1919
{{-- Icon --}}
2020
<div
21-
class="grid size-10 place-items-center rounded-full bg-gray-200/50 backdrop-blur-sm dark:bg-black/30"
21+
class="grid size-10 place-items-center rounded-full bg-gray-200/50 backdrop-blur-xs dark:bg-black/30"
2222
aria-hidden="true"
2323
>
2424
<x-icons.colored-confetti

0 commit comments

Comments
 (0)