Socket
Book a DemoInstallSign in
Socket

@voidzero-dev/vitepress-theme

Package Overview
Dependencies
Maintainers
3
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
4.0.0
Version published
Weekly downloads
3.5K
752.77%
Maintainers
3
Weekly downloads
 
Created
Source

@voidzero-dev/vitepress-theme

Shared VitePress theme for VoidZero projects, including 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. Configure VitePress

In your .vitepress/config.ts:

import { defineConfig } from 'vitepress'
import { extendConfig } from '@voidzero-dev/vitepress-theme/config'

const config = defineConfig({
  themeConfig: {
    variant: 'viteplus',  // or 'vite', 'vitest', etc.
    nav: [
      { text: 'Home', link: '/' },
      // ... your navigation
    ]
  }
})

// inject theme specific config
export default extendConfig(config)

Note the theme config injects the Tailwind plugin so the downstream project doesn't have to. If the downstream project

2. Import the Theme

In your .vitepress/theme/index.ts:

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

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

In the CSS, import the CSS from theme (which imports tailwind):

/* styles.css */
@import "@voidzero-dev/vitepress-theme/src/styles/index.css";

@source "./**/*.vue";

/* Project specific branding colors */
:root[data-variant="vite"] {
  --color-brand: #6B1EB9;
}

:root.dark:not([data-theme])[data-variant="vite"],
:root[data-theme="dark"][data-variant="vite"] {
  --color-brand: var(--color-vite);
}

:root[data-theme="light"][data-variant="vite"] {
  --color-brand: #6B1EB9;
}

FAQs

Package last updated on 26 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