-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
43 lines (40 loc) · 1.03 KB
/
astro.config.ts
File metadata and controls
43 lines (40 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { defineConfig, fontProviders } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import icon from "astro-icon";
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import astroExpressiveCode from "astro-expressive-code";
// https://astro.build/config
export default defineConfig({
vite: {
plugins: [tailwindcss()],
},
integrations: [
icon(),
astroExpressiveCode({
styleOverrides: {
borderRadius: "0.5rem",
borderWidth: "0",
codeBackground: ({ theme }) =>
`var(--color-zinc-${theme.type === "dark" ? "800" : "200"})`,
frames: {
shadowColor: "transparent",
},
},
themeCssSelector: (theme) =>
theme.type === "dark" ? `[data-theme="dark"]` : `[data-theme="light"]`,
}),
mdx(),
react(),
],
experimental: {
fonts: [
{
provider: fontProviders.google(),
name: "Noto Sans",
cssVariable: "--font-noto-sans",
weights: ["100 900"],
},
],
},
});