@multitheftauto/starlight-theme-mtasa
Version:
Starlight theme for Multi Theft Auto
34 lines (31 loc) • 1.31 kB
text/typescript
import type { StarlightPlugin } from '@astrojs/starlight/types';
const packageName = '@multitheftauto/starlight-theme-mtasa';
export default function mtasaStarlightThemePlugin(): StarlightPlugin {
return {
name: 'starlight-theme-mtasa',
hooks: {
setup({ config, updateConfig }) {
updateConfig({
customCss: [
`${packageName}/theme.css`,
`${packageName}/font-face.css`,
...config.customCss ?? [],
],
components: {
ThemeSelect: `${packageName}/ThemeSelect.astro`,
Header: `${packageName}/Header.astro`,
...config.components ?? {},
},
social: {
github: 'https://github.com/multitheftauto/',
discord: 'https://discord.com/invite/mtasa',
youtube: 'https://youtube.com/user/mtaqa',
twitch: 'https://twitch.tv/mtaqa',
'x.com': 'https://x.com/mtaqa',
...config.social ?? {},
}
})
}
},
};
}