Skip to content

Commit

Permalink
chore: add default docs theme
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Dec 9, 2024
1 parent 02a203d commit 87a642b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/.vitepress/theme/docs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
#0a0abc,
#24a0ff
);
}
21 changes: 21 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import './docs.css'

// import TwoSlashFloatingVue from 'vitepress-plugin-twoslash/client'

export default {
extends: DefaultTheme,

Layout: () => {
return h(DefaultTheme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
})
},

// enhanceApp({ app }: EnhanceAppContext) {
// app.use(TwoSlashFloatingVue)
// },
} satisfies Theme

0 comments on commit 87a642b

Please sign in to comment.