Socket
Book a DemoInstallSign in
Socket

@voidzero-dev/vitepress-theme

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voidzero-dev/vitepress-theme

Shared VitePress theme for VoidZero projects

npmnpm
Version
1.1.62
Version published
Weekly downloads
3.9K
790.52%
Maintainers
2
Weekly downloads
 
Created
Source

@voidzero-dev/vitepress-theme

Shared VitePress theme for VoidZero projects, including VoidZero, Vite+, Vite, Vitest, Rolldown, and OXC.

Installation

npm install @voidzero-dev/vitepress-theme
# or
pnpm add @voidzero-dev/vitepress-theme

If developing locally, run pnpm link between the two directories instead.

Usage

1. Import the Theme

In your .vitepress/theme/index.ts:

import type { Theme } from 'vitepress'
import Theme from '@voidzero-dev/vitepress-theme'
import "@voidzero-dev/vitepress-theme/index.css";

export default {
    extends: BaseTheme as unknown as Theme,
    Layout
} satisfies Theme

2. Configure Your Variant and Dev Server

In your .vitepress/config.ts:

export default {
    vite: {
        server: {
            fs: {
                // Allow serving files from the linked theme package (parent directory)
                allow: [resolve(__dirname, '..', '..')]
            },
            watch: {
                ignored: ['!**/node_modules/@voidzero-dev/**']
            }
        },
        optimizeDeps: {
            exclude: ['@voidzero-dev/vitepress-theme']
        }
    },
  themeConfig: {
    variant: 'viteplus',  // or 'voidzero', 'vite', 'vitest', etc.
    nav: [
      { text: 'Home', link: '/' },
      // ... your navigation
    ]
  }
}

FAQs

Package last updated on 23 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts