add tailwind

This commit is contained in:
SkyfallWasTaken 2024-07-06 12:00:38 +01:00
parent eb279fee59
commit 05fb14f224
4 changed files with 21 additions and 8 deletions

View file

@ -1,10 +1,11 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx'; import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap'; import sitemap from '@astrojs/sitemap';
import tailwind from "@astrojs/tailwind";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
site: 'https://example.com', site: 'https://example.com',
integrations: [mdx(), sitemap()], integrations: [mdx(), sitemap(), tailwind()]
}); });

BIN
bun.lockb

Binary file not shown.

View file

@ -9,12 +9,16 @@
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {},
"devDependencies": {
"tailwindcss": "^3.4.4",
"typescript": "^5.5.3",
"@catppuccin/tailwindcss": "^0.1.6",
"@astrojs/check": "^0.7.0",
"@astrojs/mdx": "^3.1.2", "@astrojs/mdx": "^3.1.2",
"@astrojs/rss": "^4.0.7", "@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6", "@astrojs/sitemap": "^3.1.6",
"astro": "^4.11.5", "@astrojs/tailwind": "^5.1.0",
"@astrojs/check": "^0.7.0", "astro": "^4.11.5"
"typescript": "^5.5.3"
} }
} }

8
tailwind.config.mjs Normal file
View file

@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
plugins: [],
}