troylusty.com/astro.config.ts
Troy 90ef859c50
upgrade to tailwind v4.0 (#33)
* begin switching to tailwind v4

* remove old tw config file

* convert colors back to hex

* move all content out of tw config

* fixed colors

* better match colors

* remove abnormally large margins
2025-01-23 18:48:20 +00:00

39 lines
876 B
TypeScript

import { defineConfig, passthroughImageService } from "astro/config";
import sitemap from "@astrojs/sitemap";
import rehypeExternalLinks from "rehype-external-links";
import mdx from "@astrojs/mdx";
import tailwindcss from "@tailwindcss/vite";
import icon from "astro-icon";
// https://astro.build/config
export default defineConfig({
site: "https://troylusty.com",
integrations: [sitemap(), mdx(), icon()],
vite: {
plugins: [tailwindcss()],
},
output: "static",
markdown: {
rehypePlugins: [
[
rehypeExternalLinks,
{
target: "_blank",
},
],
],
shikiConfig: {
wrap: true,
themes: {
light: "github-light-default",
dark: "github-dark-default",
},
},
},
image: {
service: passthroughImageService(),
},
experimental: {
responsiveImages: true,
},
});