Skip to content

Commit 70d91d3

Browse files
committed
Installed tailwind
1 parent 811f770 commit 70d91d3

5 files changed

Lines changed: 109 additions & 7 deletions

File tree

astro.config.mjs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
// @ts-check
2-
import { defineConfig } from 'astro/config';
3-
4-
import cloudflare from '@astrojs/cloudflare';
2+
import { defineConfig } from "astro/config";
3+
import tailwindcss from "@tailwindcss/vite";
4+
import cloudflare from "@astrojs/cloudflare";
55

66
// https://astro.build/config
77
export default defineConfig({
8-
adapter: cloudflare()
9-
});
8+
adapter: cloudflare(),
9+
vite: {
10+
plugins: [tailwindcss()],
11+
},
12+
});

bun.lock

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

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
},
1111
"dependencies": {
1212
"@astrojs/cloudflare": "^12.6.5",
13+
"@tailwindcss/vite": "^4.1.12",
1314
"astro": "^5.13.3",
1415
"install": "^0.13.0",
16+
"tailwindcss": "^4.1.12",
1517
"wrangler": "^4.32.0"
1618
}
1719
}

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
2+
import "../styles/global.css";
33
---
44

55
<html lang="en">

src/styles/global.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "tailwindcss";

0 commit comments

Comments
 (0)