tachiyomi-website/website/src/.vitepress/theme/index.ts

24 lines
600 B
TypeScript
Raw Normal View History

2023-07-18 02:00:06 +02:00
// https://vitepress.dev/guide/custom-theme
import { h } from "vue";
import Theme from "vitepress/theme";
import "./styles/base.styl";
2023-07-18 02:00:06 +02:00
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/dark/css-vars.css";
import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
2023-07-18 02:00:06 +02:00
export default {
extends: Theme,
Layout: () => {
return h(Theme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
});
},
enhanceApp({ app, router, siteData }) {
app.use(ElementPlus);
enhanceAppWithTabs(app);
},
};