Skip to content

Commit 172e14b

Browse files
committed
build!: upgrade to Tailwind CSS v4
1 parent 3602782 commit 172e14b

36 files changed

Lines changed: 7631 additions & 10633 deletions

astro.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from "astro/config";
2+
import tailwindcss from "@tailwindcss/vite";
23
import react from "@astrojs/react";
34
import sitemap from "@astrojs/sitemap";
4-
import tailwind from "@astrojs/tailwind";
55
import remarkToc from "remark-toc";
66
import remarkCollapse from "remark-collapse";
77
import { SITE } from "./src/config";
@@ -10,9 +10,6 @@ import { SITE } from "./src/config";
1010
export default defineConfig({
1111
site: SITE.website,
1212
integrations: [
13-
tailwind({
14-
applyBaseStyles: false,
15-
}),
1613
react(),
1714
sitemap({
1815
filter: page => SITE.showArchives || !page.endsWith("/archives"),
@@ -35,9 +32,12 @@ export default defineConfig({
3532
},
3633
},
3734
vite: {
35+
plugins: [tailwindcss()],
3836
optimizeDeps: {
3937
exclude: ["@resvg/resvg-js"],
4038
},
4139
},
42-
scopedStyleStrategy: "where",
40+
experimental: {
41+
svg: true,
42+
},
4343
});

0 commit comments

Comments
 (0)