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

Source Mode Styling

chrishoward-projectschrishoward-projects653 downloads

Provides a customisable raw look in source mode using a monospace font to clearly differentiate from Live Preview.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates13

Differentiate your Obsidian source mode from Live Preview edit mode with a raw text like aesthetic using customizable monospace fonts and styling options.

Overview

Source Mode Styling enhances Obsidian's source mode editor by applying monospace fonts and customizable styling that's familiar to developers and text editor users. While Obsidian's default source mode shows markdown syntax but retains most visual formatting, this plugin gives you an authentic "raw" editing experience providing greater differentiation with the Live Preview editor mode.

Key Benefits:

  • Full control over source mode appearance
  • Monospace font detection - automatically finds available fonts on your system
  • Real-time preview - changes apply instantly
  • Theme-aware - respects your theme's colours when desired
  • Cross-platform - works on desktop and mobile

Installation

From Community Plugins (Recommended)

  1. Open Obsidian Settings
  2. Go to Community plugins and disable Safe mode
  3. Click Browse and search for "Source Mode Styling"
  4. Install and enable the plugin

Manual Installation

  1. Download the latest release from GitHub Releases
  2. Extract the files to your vault's .obsidian/plugins/sourcemode-styling/ directory
  3. Reload Obsidian or restart the application
  4. Enable the plugin in Settings → Community plugins

Usage

Quick Start

  1. Open any markdown file in source mode
  2. Go to Settings → Community plugins → Source Mode Styling
  3. Customize your font and styling preferences

Configuration Options

Setting Description Options
Monospace font Choose your preferred coding font Auto-detected system fonts + theme default
Font weight Control text thickness Normal, Light, Semi-bold, Custom (100-900)
Font size Adjust text size for readability Custom or theme default
Font colour Set font custom colour Custom colour picker or theme default.
Line height Adjust vertical spacing Custom or theme default
Heading colour Set custom headings colour. Custom colour picker or theme default
Background colour Set editor background Custom colour picker or theme default

Font Detection

The plugin automatically detects monospace fonts installed on your system, including popular options like:

  • Source Code Pro
  • Fira Code
  • JetBrains Mono
  • Consolas
  • Monaco
  • And many more...

Examples

Obsidian Live Preview mode Obsidian Live Preview

Before vs After

Default Obsidian Source Mode:

  • Displays formatting syntax with theme styling
  • Minimal visual differentiation from Live Preview mode
  • Variable-width fonts
  • Theme-dependent appearance

1.00

With Source Mode Styling:

  • Clean, monospace text rendering
  • Uses theme colours and styling
  • Customizable colours and sizing
  • True "raw" editor look and feel
  • Clear differentiation from Live Preview editing

1.00

Advanced Usage

Theme Integration

The plugin works seamlessly with Obsidian themes:

  • Use "Theme default" options to maintain theme consistency
  • Override specific elements (fonts, colours) while keeping theme aesthetics
  • Custom settings persist across theme changes

CSS Customization

For advanced users, the plugin adds a class .source-mode-raw and generates CSS that can be further customized:

/* All text */
.source-mode-raw .markdown-source-view.mod-cm6 .cm-scroller {
   /* Your styles */
}

/* Headings */
.source-mode-raw .markdown-source-view.mod-cm6 .cm-header {
  /* Your styles */
}

Compatibility

  • Obsidian Version: 1.9.14+
  • Platforms: Windows, macOS, Linux, iOS, Android
  • Themes: Compatible with all Obsidian themes
  • Other Plugins: No known conflicts

Troubleshooting

Font Not Appearing?

  • Ensure the font is properly installed on your system
  • Try refreshing the plugin settings
  • Check if the font supports monospace character spacing

Settings Not Applying?

  • Make sure you're in source mode (not live preview)
  • Try toggling the plugin off and on
  • Restart Obsidian if issues persist

Mobile Issues?

  • Font selection is limited to system fonts on mobile
  • Some advanced features may not be available on mobile platforms

Contributing

Contributions are welcome! Please see our development documentation for setup instructions.

Development Setup

  1. Clone the repository
  2. Run npm install to install dependencies
  3. Run npm run dev for development with hot reload
  4. Run npm run build to build for production

Changelog

See CHANGELOG.md for version history and release notes.

Requirements

  • Minimumum verified on Obsidian 1.9.x

License

MIT License © Chris Howard 2025

81%
HealthExcellent
ReviewCaution
About
Differentiate Obsidian's source mode from Live Preview by applying a raw, monospace editor aesthetic with customizable fonts and styling. Detect fonts automatically, apply changes instantly, and respect theme colors across desktop and mobile.
Markdown
Details
Current version
0.2.31
Last updated
4 months ago
Created
11 months ago
Updates
13 releases
Downloads
653
Compatible with
Obsidian 1.9.14+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Support
Buy Me a Coffee
Author
chrishoward-projectschrishoward-projects
github.com/chrishoward-projects
GitHubchrishoward-projects
  1. Community
  2. Plugins
  3. Markdown
  4. Source Mode Styling

Related plugins

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Fantasy Statblocks

Create, manage and view a Fantasy Bestiary with Dungeons and Dragons style statblocks.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.

Auto Link Title

Automatically fetches the titles of links from the web.

Chronos Timeline

Render interactive timelines inline in your notes from simple markdown

Consistent Attachments and Links

Move note attachments and update links automatically.

Automatic Table Of Contents

Create a table of contents in a note that updates itself when the note changes.