Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

VitePress Theme

weizwzweizwz31 downloads

VitePress-style theme with custom containers, enhanced code blocks, and modern typography.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

A VitePress-style theme plugin for Obsidian, bringing the modern documentation aesthetic and syntax to your notes.

中文文档

Features

Alert Containers

Renders VitePress native ::: syntax as GitHub Alert-style cards with optional custom titles:

::: info Information
This is an info message
:::

::: tip Suggestion
This is a tip
:::

::: warning Warning
This is a warning message
:::

::: danger Danger
This is a danger alert
:::

Preview1

Collapsible Container

Renders ::: details as a native clickable <details>/<summary> element:

::: details Click to expand
This content is hidden until clicked
:::

Preview2

Enhanced Code Blocks

Code blocks automatically get a language label and filename display, supporting VitePress [filename] syntax:

```ts [config.ts]
export default {
  title: 'My Site'
}
```

Preview3

Code Groups

Groups multiple consecutive code blocks into a tabbed switcher:

::: code-group

```ts [TypeScript]
const msg: string = 'hello'
```

```js [JavaScript]
const msg = 'hello'
```

:::

Preview4

Obsidian Callout Adaptation

Native Obsidian Callouts are automatically styled to match VitePress colors:

> [!note]
> This is a note callout

> [!warning]
> This is a warning callout

Preview5

Badge Component

VitePress-style badges for marking status or versions:

VitePress <Badge type="info" text="default" />
VitePress <Badge type="tip" text="^1.5.0" />
VitePress <Badge type="warning" text="beta" />
VitePress <Badge type="danger" text="caution" />

Preview6

Emoji

Support VitePress Emoji, and put the mouse on it to display the code corresponding to Emoji:

:cn: :eight: :seven:

Preview7

Additional Styles

  • Typography — Headings, line-height, and link styles consistent with VitePress
  • Links — Relative path resolution support (./file.md) and line highlighting references (#L10)
  • Tables — Unified borders and background colors

Compatibility

Feature Reading Mode Live Preview Source Mode
Alert containers (info/tip/warning/danger) ✅ ❌ ❌
Collapsible container (details) ✅ ❌ ❌
Badge component (Badge) ✅ ❌ ❌
Code group (code-group) ✅ ❌ ❌
Code block enhancements ✅ ❌ ❌
Callout styles ✅ ✅ ❌
Table / Typography / Links ✅ ✅ ❌

Note: VitePress-specific syntax (::: containers) is parsed and rendered in Obsidian Reading Mode via Post Processor. Live Preview and Source Mode are intentionally left unprocessed to preserve raw text for editing.

Installation

From Source

git clone https://github.com/weizwz/obsidian-vitepress-theme
cd obsidian-vitepress-theme
pnpm install
pnpm run build

Copy manifest.json and main.js to your Obsidian vault's .obsidian/plugins/vitepress-theme/ directory, then enable it under Settings → Community Plugins.

Manual Installation

  1. Download the latest release (manifest.json and main.js and styles.css)
  2. Place them in .obsidian/plugins/vitepress-theme/
  3. Enable under Settings → Community Plugins

Development

# Install dependencies
pnpm install

# Development mode (watch + auto-copy to root)
pnpm run dev

# Production build (minified + copied to root)
pnpm run build

Settings

Setting Description Default
Enable code block styles Language labels and filename display ✅
Enable container styles Alert container and details CSS ✅
Enable typography styles Heading, link, and layout styles ✅
Parse VitePress containers Parse ::: syntax and render containers ✅
Process links Internal link resolution and cross-file references ✅
Follow Obsidian theme Auto-adapt to Obsidian's color theme ✅
Custom primary color Custom brand color (when not following theme) #409eff
Debug mode Enable console debug logging ❌

License

MIT

86%
HealthExcellent
ReviewSatisfactory
About
Apply a VitePress-style documentation theme to Obsidian, matching VitePress typography, links, tables, emoji, and relative path/line reference behavior. Render VitePress features like alert containers, collapsible details, badge components, enhanced code blocks with filename labels, grouped code tabs, and style native callouts to VitePress colors.
ThemingAppearanceCSS
Details
Current version
1.0.1
Last updated
6 days ago
Created
2 months ago
Updates
2 releases
Downloads
31
Compatible with
Obsidian 1.2.3+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
weizwzweizwzweizwz
github.com/weizwz
GitHubweizwz
note.weizwz.com
  1. Community
  2. Plugins
  3. Theming
  4. VitePress Theme

Related plugins

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Contextual Typography

Add a data-tag-name attribute to all top-level divs in preview mode containing the child's tag name, allowing contextual typography styling.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Lapel

Show the heading levels in the gutter of the editor.

Snippetor

Create and tweak common snippets.

Show Whitespace

CSS styles and CM6 extensions to highlight whitespace in Source and Live Preview modes.

Callout Manager

Easily create and customize callouts.

Focus Mode

Add a toggle to hide interface elements so you can focus on your note.

Better Bullets

Improves readability of bulleted notes.