Skip to content

Commit 9d0e68f

Browse files
committed
migrate to tailwindcss 4
1 parent 35ba12d commit 9d0e68f

10 files changed

Lines changed: 3467 additions & 3804 deletions

File tree

astro.config.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import sitemap from "@astrojs/sitemap";
44
import remarkMath from "remark-math";
55
import rehypeKatex from "rehype-katex";
66

7-
import tailwind from "@astrojs/tailwind";
7+
import tailwindcss from "@tailwindcss/vite";
88

99
// https://astro.build/config
1010
export default defineConfig({
1111
site: "https://kennethnym.com",
12-
integrations: [mdx(), sitemap(), tailwind()],
12+
integrations: [mdx(), sitemap()],
13+
1314
markdown: {
1415
shikiConfig: {
1516
// Choose from Shiki's built-in themes (or add your own)
@@ -19,4 +20,8 @@ export default defineConfig({
1920
remarkPlugins: [remarkMath],
2021
rehypePlugins: [rehypeKatex],
2122
},
23+
24+
vite: {
25+
plugins: [tailwindcss()],
26+
},
2227
});

package.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
2-
"name": "website",
3-
"type": "module",
4-
"version": "0.0.1",
5-
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev",
8-
"build": "astro check && astro build",
9-
"preview": "astro preview",
10-
"astro": "astro"
11-
},
12-
"dependencies": {
13-
"@astrojs/check": "^0.5.6",
14-
"@astrojs/mdx": "^2.1.1",
15-
"@astrojs/rss": "^4.0.5",
16-
"@astrojs/sitemap": "^3.1.1",
17-
"@astrojs/tailwind": "^5.1.0",
18-
"astro": "^4.4.15",
19-
"tailwindcss": "^3.4.1",
20-
"typescript": "^5.4.2"
21-
},
22-
"devDependencies": {
23-
"@catppuccin/tailwindcss": "^0.1.6",
24-
"@flydotio/dockerfile": "latest",
25-
"@tailwindcss/typography": "^0.5.10",
26-
"prettier": "^3.2.5",
27-
"prettier-plugin-astro": "^0.13.0",
28-
"rehype-katex": "^7.0.1",
29-
"remark-math": "^6.0.0"
30-
}
31-
}
2+
"name": "website",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro check && astro build",
9+
"preview": "astro preview",
10+
"astro": "astro"
11+
},
12+
"dependencies": {
13+
"@astrojs/check": "^0.5.6",
14+
"@astrojs/mdx": "^2.1.1",
15+
"@astrojs/rss": "^4.0.5",
16+
"@astrojs/sitemap": "^3.1.1",
17+
"@tailwindcss/vite": "^4.1.11",
18+
"astro": "^4.4.15",
19+
"tailwindcss": "^4.1.11",
20+
"typescript": "^5.4.2"
21+
},
22+
"devDependencies": {
23+
"@catppuccin/tailwindcss": "1.0.0",
24+
"@flydotio/dockerfile": "latest",
25+
"@tailwindcss/typography": "^0.5.10",
26+
"prettier": "^3.2.5",
27+
"prettier-plugin-astro": "^0.13.0",
28+
"rehype-katex": "^7.0.1",
29+
"remark-math": "^6.0.0"
30+
}
31+
}

0 commit comments

Comments
 (0)