From a4ed5449e93fc9b3c633faa913db79eee5a7d114 Mon Sep 17 00:00:00 2001 From: Max Schmidt Date: Mon, 15 May 2023 17:48:17 +0200 Subject: [PATCH] LOOL Signed-off-by: Max Schmidt --- astro/astro.config.mjs | 5 +++-- astro/src/global.css | 7 +++++++ astro/src/layouts/Layout.astro | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 astro/src/global.css diff --git a/astro/astro.config.mjs b/astro/astro.config.mjs index 83c96ec..281ee05 100644 --- a/astro/astro.config.mjs +++ b/astro/astro.config.mjs @@ -5,10 +5,11 @@ import compress from "astro-compress"; import critters from "astro-critters"; -// https://astro.build/config export default defineConfig({ integrations: [ - tailwind(), + tailwind({ + config: { applyBaseStyles: false }, + }), image({ serviceEntryPoint: "@astrojs/image/sharp", }), diff --git a/astro/src/global.css b/astro/src/global.css new file mode 100644 index 0000000..327eec6 --- /dev/null +++ b/astro/src/global.css @@ -0,0 +1,7 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +h1 { + @apply text-4xl; +} diff --git a/astro/src/layouts/Layout.astro b/astro/src/layouts/Layout.astro index 7112b7e..8221364 100644 --- a/astro/src/layouts/Layout.astro +++ b/astro/src/layouts/Layout.astro @@ -1,4 +1,5 @@ --- +import "../global.css"; export interface Props { title: string; }