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; }