-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
42 lines (41 loc) · 1.26 KB
/
astro.config.mjs
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
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import latte from "@catppuccin/vscode/themes/latte.json" with { type: "json" };
import mocha from "@catppuccin/vscode/themes/mocha.json" with { type: "json" };
import expressiveCode from "astro-expressive-code";
import icon from "astro-icon";
import { defineConfig } from "astro/config";
// https://astro.build/config
export default defineConfig({
site: "https://callmeecho.dev",
markdown: {
shikiConfig: {
themes: {
light: "catppuccin-latte",
dark: "catppuccin-mocha",
},
},
},
integrations: [
tailwind({
config: {
applyBaseStyles: false,
},
}),
icon(),
sitemap(),
expressiveCode({
themes: [latte, mocha],
themeCssRoot: "html",
themeCssSelector: (theme) => `.${theme.type == "light" ? "latte" : "mocha"}`,
customizeTheme: (theme) => {
theme.colors["editor.background"] = theme.colors["textBlockQuote.background"];
theme.colors["tab.activeBackground"] = theme.colors["textBlockQuote.background"];
theme.colors["tab.activeForeground"] = theme.colors["extensionIcon.sponsorForeground"];
theme.colors["tab.activeBorderTop"] = theme.colors["extensionIcon.sponsorForeground"];
},
}),
mdx(),
],
});