-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
65 lines (63 loc) · 1.88 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import mdx from '@astrojs/mdx'
import netlify from '@astrojs/netlify'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import vue from '@astrojs/vue'
import expressiveCode from 'astro-expressive-code'
import { defineConfig } from 'astro/config'
import githubLightCustom from './themes/github-light-custom.json'
export default defineConfig({
site: 'https://ryanvoitiskis.com/',
prefetch: {
prefetchAll: true
},
integrations: [
vue(),
tailwind({
applyBaseStyles: false
}),
expressiveCode({
themes: [githubLightCustom, 'github-dark'],
themeCssSelector: (theme) =>
`[class="${theme.name === 'github-dark' ? 'dark' : 'light'}"]`,
useDarkModeMediaQuery: false,
styleOverrides: {
borderColor: 'hsl(var(--border))',
borderRadius: '8px',
borderWidth: '1px',
codeFontFamily: 'BerkeleyMono, monospace',
codeFontWeight: '110',
codeFontSize: '0.875rem',
uiFontFamily: 'BerkeleyMono, monospace',
uiFontWeight: '100',
frames: {
editorActiveTabBackground: ({ theme }) =>
theme.colors['editor.background'],
editorTabBarBorderBottomColor: 'hsl(var(--border))',
editorTabBarBackground: 'hsl(var(--vmuted))',
editorActiveTabIndicatorTopColor: 'transparent',
editorActiveTabIndicatorBottomColor: ({ theme }) =>
theme.colors['editor.background'],
terminalBackground: ({ theme }) => theme.colors['editor.background'],
terminalTitlebarBackground: 'hsl(var(--vmuted))',
terminalTitlebarBorderBottomColor: 'hsl(var(--border))',
tooltipSuccessBackground: 'hsl(var(--primary))',
tooltipSuccessForeground: 'hsl(var(--primary-foreground))',
frameBoxShadowCssValue: 'none'
}
}
}),
mdx(),
sitemap()
],
output: 'static',
markdown: {
shikiConfig: {
themes: {
light: githubLightCustom,
dark: 'github-dark' // TODO: custom dark
}
}
},
adapter: netlify()
})