nimiq-vitepress-theme
Version:
Nimiq UI theme for VitePress
21 lines (20 loc) • 687 B
JavaScript
import NqCard from "./components/NqCard.vue";
import NqGrid from "./components/NqGrid.vue";
import NqLargeCard from "./components/NqLargeCard.vue";
import NqModulesGrid from "./components/NqModulesGrid.vue";
import Layout from "./layout/Layout.vue";
import "./assets/index.css";
import "virtual:group-icons.css";
export function defineNimiqThemeConfig(options) {
return {
Layout,
async enhanceApp(ctx) {
if (options?.enhanceApp)
options.enhanceApp(ctx);
ctx.app.component("NqCard", NqCard);
ctx.app.component("NqGrid", NqGrid);
ctx.app.component("NqLargeCard", NqLargeCard);
ctx.app.component("NqModulesGrid", NqModulesGrid);
}
};
}