VitePress Theme

approvedunreviewed

by weizwz

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

★ 2 stars↓ 277 downloadsUpdated 7d agoMIT

VitePress Theme for Obsidian

A VitePress-style theme plugin for Obsidian, bringing a great reading experience to VitePress-based documentation within Obsidian.

中文文档

Main features:

  1. Aligns basic content styles—including headings, line height, and overall reading typography—with VitePress standards.
  2. Properly renders VitePress extended syntax, including frontmatter properties, Emojis, containers, code groups, code line highlighting / diff / warning annotations, and more.
  3. Enhances base styles and code block appearance for a cleaner, more visually appealing reading interface.

home

Feature Showcase

Frontmatter Properties

frontmatter

Headings, Text, Code Blocks & Link Icons

main

Emoji

emoji

Badge Component

badge

Blockquotes

block

Collapsible Syntax / Details Container

details

details1

Alert Containers

tips

tips1

Code Block Titles & Code Groups

group

Code Line Highlighting / Diff / Warning Annotations

highlight

focus

diff

warning

Compatibility

FeatureReading ModeLive PreviewSource Mode
Alert containers (info/note/tip/important/warning/danger/caution)✅❌❌
Collapsible container (details)✅❌❌
Badge component (Badge)✅❌❌
Emoji (:emoji:)✅❌❌
Code group (code-group)✅❌❌
Code block enhancements (language label / filename / line numbers / highlights / diff / alerts)✅❌❌
Link enhancements (external favicons / relative paths / line highlight links)✅❌❌
Table / Typography styles✅✅❌

Settings

SettingDescriptionDefault
Display languageChoose the language for plugin interface and container labels (Follow Obsidian / English / 简体中文)Follow Obsidian
Follow Obsidian themeAutomatically adapt brand colors to match Obsidian accent color✅
Custom primary colorBrand color for links and accents when not following Obsidian theme#409eff
Enable typography stylesApply VitePress typography (headings, links, lists, and line height)✅
Enable code block stylesApply VitePress-style code blocks (window header, language labels, and code groups)✅
Enable container stylesApply VitePress-style alert and collapsible container styles✅
Code block corner radiusBorder radius in pixels for code blocks and code groups (0–16 px)8
Show line numbersDisplay line numbers alongside code blocks in reading view✅
Code line highlights and annotationsSupport {1,3-5} line highlights and [!code focus/++/--/error/warning] markers✅
Parse VitePress containersConvert ::: syntax to alert containers, details blocks, and code groups✅
Process linksEnhance external and VitePress-style internal links✅
Show external link faviconsFetch site favicons for external links via favicon.im✅
Resolve relative linksResolve VitePress-style relative paths and #L10-L15 line highlight links✅
Parse VitePress badgesConvert <Badge /> syntax to styled inline badges✅
Parse VitePress emojisConvert :emoji: shortcodes to emoji icons✅
Debug modeEnable debug logging in the developer console❌
Reload stylesReapply theme classes and refresh rendered markdown views-
Reset to defaultsRestore all options to their default values-

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.