From cd6aaa1ef1ccf9beca8db09b0573615ab33c9a21 Mon Sep 17 00:00:00 2001 From: Felix Brabetz Date: Sat, 16 May 2026 02:07:56 +0200 Subject: [PATCH] Migrate to official Astro Tailwind integration for robust styling --- astro.config.mjs | 6 ++++-- package.json | 6 ++++-- src/layouts/Layout.astro | 32 -------------------------------- tailwind.config.mjs | 30 ++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 36 deletions(-) create mode 100644 tailwind.config.mjs diff --git a/astro.config.mjs b/astro.config.mjs index 882e651..33a61b6 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,4 +1,6 @@ import { defineConfig } from 'astro/config'; +import tailwind from '@astrojs/tailwind'; -// https://astro.build/config -export default defineConfig({}); +export default defineConfig({ + integrations: [tailwind()], +}); diff --git a/package.json b/package.json index 0ec388f..4799ad6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "brabetz-homepage", "type": "module", - "version": "0.0.1", + "version": "1.0.0", "scripts": { "dev": "astro dev", "start": "astro dev", @@ -10,6 +10,8 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.0.0" + "astro": "^4.0.0", + "@astrojs/tailwind": "^5.1.0", + "tailwindcss": "^3.4.0" } } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index e79aca6..b45d533 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -12,8 +12,6 @@ const { title } = Astro.props; {title} - - @@ -25,36 +23,6 @@ const { title } = Astro.props; - -