Skip to content

Commit 81c4685

Browse files
authored
Upgrade to Tailwind 4 (#77)
* Upgrade to Tailwind 4 * Update deprecated utilities
1 parent f10baaf commit 81c4685

File tree

13 files changed

+391
-520
lines changed

13 files changed

+391
-520
lines changed

astro.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
// @ts-check
22
import { defineConfig } from "astro/config";
33

4-
import tailwind from "@astrojs/tailwind";
4+
import tailwindcss from "@tailwindcss/vite";
55
import icon from "astro-icon";
66
// @ts-ignore
77
import preact from "@astrojs/preact";
88

99
// https://astro.build/config
1010
export default defineConfig({
1111
site: "https://usebottles.com",
12-
integrations: [tailwind(), icon(), preact()],
12+
vite: {
13+
plugins: [tailwindcss()],
14+
},
15+
integrations: [icon(), preact()],
1316
});

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"@astrojs/check": "^0.9.3",
1414
"@astrojs/preact": "^3.5.3",
1515
"@astrojs/rss": "^4.0.7",
16-
"@astrojs/tailwind": "^5.1.0",
1716
"@iconify-json/bxl": "^1.2.0",
1817
"@iconify-json/material-symbols": "^1.2.1",
18+
"@tailwindcss/vite": "^4.0.17",
1919
"astro": "^4.15.4",
2020
"astro-icon": "^1.1.1",
2121
"js-yaml": "^4.1.0",
@@ -27,7 +27,6 @@
2727
"@tailwindcss/typography": "^0.5.15",
2828
"@types/js-yaml": "^4.0.9",
2929
"autoprefixer": "^10.4.20",
30-
"postcss": "^8.4.45",
31-
"tailwindcss": "^3.4.10"
30+
"tailwindcss": "^4.0.17"
3231
}
3332
}

0 commit comments

Comments
 (0)