Skip to content

Commit 7a829dd

Browse files
committed
feat: use voidzero theme
1 parent 677a328 commit 7a829dd

10 files changed

Lines changed: 529 additions & 44 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
import { defineConfig } from 'vitepress'
22
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'
33
import Icons from 'unplugin-icons/vite'
4+
import { extendConfig } from '@voidzero-dev/vitepress-theme/config'
45

5-
export default defineConfig({
6+
const config = defineConfig<unknown>({
67
title: 'Vite Plugin Registry',
7-
description: 'Discover plugins for Vite, Rollup, Rolldown',
8+
description: 'Discover plugins for Vite, Rolldown, and Rollup',
89
cleanUrls: true,
910

10-
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
11+
head: [['link', { rel: 'icon', href: 'https://vite.dev/logo-without-border.svg' }]],
1112

1213
themeConfig: {
14+
variant: "vite",
15+
16+
footer: {
17+
copyright: `© 2026 VoidZero Inc. and Vite contributors.`,
18+
},
19+
1320
nav: [
14-
{ text: 'About', link: '/about' },
1521
{ text: 'Plugins', link: '/plugins' },
1622
{ text: 'Guide', link: '/guide/' },
1723
],
@@ -35,7 +41,7 @@ export default defineConfig({
3541
provider: 'local',
3642
},
3743

38-
socialLinks: [{ icon: 'github', link: 'https://github.com/sapphi-red/vite-plugin-registry' }],
44+
socialLinks: [{ icon: 'github', link: 'https://github.com/vitejs/vite-plugin-registry' }],
3945
},
4046
markdown: {
4147
config(md) {
@@ -46,3 +52,5 @@ export default defineConfig({
4652
plugins: [groupIconVitePlugin(), Icons({ compiler: 'vue3' })],
4753
},
4854
})
55+
56+
export default extendConfig(config)

docs/.vitepress/theme/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import DefaultTheme from 'vitepress/theme'
21
import type { Theme } from 'vitepress'
2+
import ViteTheme from "@voidzero-dev/vitepress-theme/src/vite";
33
import FloatingVue from 'floating-vue'
44
import 'floating-vue/dist/style.css'
55
import 'virtual:group-icons.css'
6+
import "./styles.css";
67

78
export default {
8-
extends: DefaultTheme,
9+
extends: ViteTheme,
910
enhanceApp({ app }) {
1011
app.use(FloatingVue)
1112
},
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script setup lang="ts">
2+
</script>
3+
4+
<template>
5+
<section class="wrapper border-t px-5 sm:px-10 py-14 sm:py-20">
6+
<div class="max-w-2xl mx-auto">
7+
<p class="text-white/70 text-pretty mb-8">
8+
This registry collects plugin data from npm daily and provides a searchable directory of plugins for Vite, Rolldown, and Rollup.
9+
</p>
10+
<p class="text-white/70 text-pretty mb-8">
11+
The data is refreshed every day automatically based on the data from npm and metadata provided by plugin authors.
12+
</p>
13+
<h3 class="text-white text-lg font-semibold mb-4">For Plugin Authors</h3>
14+
<p class="text-white/70 text-pretty mb-8">
15+
Plugin authors can provide enhanced metadata by adding a <code class="text-white/90 bg-white/10 px-1.5 py-0.5 rounded">vite-plugin-registry</code> field to their <code class="text-white/90 bg-white/10 px-1.5 py-0.5 rounded">package.json</code>. See the <a href="/guide/" class="text-white underline">Guide</a> for details.
16+
</p>
17+
<h3 class="text-white text-lg font-semibold mb-4">Credits</h3>
18+
<p class="text-white/70 text-pretty">
19+
This registry is partially inspired by <a href="https://www.flint.fyi/blog/what-flint-does-differently/#plugin-registry" class="text-white underline" target="_blank" rel="noopener noreferrer">Flint's blog post "What Flint Does Differently"</a>.
20+
</p>
21+
</div>
22+
</section>
23+
</template>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<template>
2+
<div
3+
class="wrapper wrapper--ticks grid w-full border-nickel"
4+
>
5+
<div
6+
class="flex flex-col p-10 justify-between gap-10 items-center"
7+
>
8+
<div
9+
class="flex flex-col gap-5 items-center text-center"
10+
>
11+
<h1 class="text-white text-pretty max-w-[30rem]">
12+
Vite Plugin Registry
13+
</h1>
14+
<p class="text-white/70 md:text-lg max-w-[30rem] text-pretty">
15+
Discover and compare plugins for Vite, Rollup, and Rolldown.
16+
Find the right tools to enhance your build workflow.
17+
</p>
18+
<div class="flex items-center gap-5 mt-8">
19+
<a href="/plugins/" class="button button--primary inline-block w-fit">
20+
Browse Plugins
21+
</a>
22+
</div>
23+
</div>
24+
</div>
25+
</div>
26+
</template>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<script setup>
2+
import Hero from './Hero.vue'
3+
import About from './About.vue'
4+
import Footer from '@components/oss/Footer.vue'
5+
</script>
6+
7+
<template>
8+
<Hero />
9+
<About />
10+
<Footer
11+
heading="Start building"
12+
button-text="Browse Plugins"
13+
button-link="/plugins/"
14+
/>
15+
</template>

docs/.vitepress/theme/styles.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@import '@voidzero-dev/vitepress-theme/src/styles/index.css';
2+
3+
@source "./**/*.vue";
4+
5+
/* Vite */
6+
:root[data-variant='vite'] {
7+
--color-brand: #6b1eb9;
8+
}
9+
10+
:root.dark:not([data-theme])[data-variant='vite'],
11+
:root[data-theme='dark'][data-variant='vite'] {
12+
--color-brand: var(--color-vite);
13+
}
14+
15+
/* Forced light mode brand for Vite */
16+
:root[data-theme='light'][data-variant='vite'] {
17+
--color-brand: #6b1eb9;
18+
}

docs/about.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/index.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
---
2+
title: Vite Plugin Registry
3+
titleTemplate: Discover plugins for your build tools
24
layout: home
5+
theme: dark
6+
---
37

4-
hero:
5-
name: Vite Plugin Registry
6-
text: Discover plugins for your build tools
7-
tagline: Find and compare plugins for Vite, Rollup, Rolldown
8-
actions:
9-
- theme: brand
10-
text: Browse Plugins
11-
link: /plugins
12-
- theme: alt
13-
text: Plugin Author Guide
14-
link: /guide/
8+
<script setup>
9+
import Home from './.vitepress/theme/landing/Layout.vue'
10+
</script>
1511

16-
---
12+
<Home />

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@types/node": "^24.10.4",
2020
"@types/semver": "^7.7.1",
2121
"@valibot/to-json-schema": "^1.5.0",
22+
"@voidzero-dev/vitepress-theme": "^4.0.4",
2223
"@vueuse/core": "^14.1.0",
2324
"floating-vue": "^5.2.2",
2425
"minisearch": "^7.2.0",

0 commit comments

Comments
 (0)