@mussi/vitepress-theme

A lightweight VitePress theme extension for Ruby project documentation.
792 6
Install
npm install @mussi/vitepress-theme
Latest Version:2.0.0
Older releases:3
License:MIT
Last Updated:Sep 16, 2026
Links: GitHub  ·  npm
Maintainer: elmassimo

VitePress Docs Theme

The shared VitePress theme for the Vite Ruby documentation sites.

Version 2 extends the maintained VitePress default theme instead of copying its components. Sites automatically receive current code blocks, navigation, search, responsive behavior, accessibility, and future upstream fixes while retaining a small layer of shared styling.

Before and after

Page VitePress 0.22 theme Modernized VitePress 2 theme
Home Old Vite Ruby home page Modernized Vite Ruby home page
Guide Old Vite Ruby guide Modernized Vite Ruby guide

Usage

// .vitepress/config.ts
import baseConfig from '@mussi/vitepress-theme/config'
import { defineConfig } from 'vitepress'

export default defineConfig({
  extends: baseConfig,
  themeConfig: {
    logo: '/logo.svg',
    search: {
      provider: 'algolia',
      options: {
        appId: '...',
        apiKey: '...',
        indexName: '...'
      }
    }
  }
})
// .vitepress/theme/index.ts
import { VPTheme } from '@mussi/vitepress-theme'

export default VPTheme

Migrating from 1.x

Version 2 targets VitePress 2 and uses its default-theme configuration directly.

  • Replace themeConfig.algolia with themeConfig.search: { provider: 'algolia', options: { ... } }.
  • Use layout: home with VitePress's hero and features frontmatter instead of page: true and a custom home component.
  • Replace editLink.repo with VitePress's editLink.pattern.
  • Replace the custom footer license object with footer.message; footer.copyright remains available.
  • Use --vp-* CSS variables and .vp-doc selectors instead of the removed --vt-* variables and .vt-doc class.
  • Remove the /highlight import if used. VitePress now owns Shiki configuration through markdown.theme.

See the VitePress default theme configuration for the full API.

Related Packages

vitepress-plugin-nprogress

nprogress plugin for vitepress

41,350 24
vitepress-plugin-google-analytics

google-analytics plugin for vitepress

27,970 12
@i18n-micro/vitepress

VitePress bindings for i18n-micro — runtime dictionaries, MD components, and loc...

1,848 251
vitepress-md-var

Adds editable variables to markdown code blocks

1,601 1
vitepress-plugin-glossary

A VitePress plugin that automatically identifies and links glossary terms with i...

11,666

Version History

Version Released Vue License
2.0.0 MIT
1.0.2 ^3.2.26 MIT
1.0.1 ^3.2.26 MIT
1.0.0 ^3.2.26 MIT