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

Theme by Folder

jinmugojinmugo2k downloads

Automatically switch themes based on the folder of the opened note

Add to Obsidian
  • Overview
  • Scorecard
  • Updates6

Automatically switch Obsidian themes based on the folder of the opened note.

Preview

https://github.com/user-attachments/assets/cdf6700d-08c4-498a-8fec-ba0ab977adc3

Features

  • Auto Theme & Mode Switching: Instantly changes your Obsidian theme and mode (light/dark) when you open a note in a configured folder.
  • Per-Folder Configuration: Assign custom themes and modes to specific vault folders.
  • Flexible Mode Options: Choose between Light Mode, Dark Mode, or System Default for each folder.
  • Fallback Settings: Define default theme and mode to use when no folder mapping matches.
  • Lightweight & Fast: Minimal performance impact with simple path-based matching.
  • User-Friendly UI: Configure mappings directly in Obsidian's Settings → Theme by Folder.

Installation

Manual Installation

  1. Download or clone this repository into your vault's plugins folder:
    git clone https://github.com/JinmuGo/obsidian-theme-by-folder .obsidian/plugins/theme-by-folder
    
  2. In Obsidian, go to Settings → Community Plugins and enable Theme by Folder.
  3. Reload Obsidian if the plugin doesn't appear immediately.

Via Community Plugins (BRAT)

You can use BRAT (Beta Reviewer's Auto-update Tool) to install this plugin before it becomes publicly listed:

  1. Install the BRAT plugin from Obsidian's Community Plugins.
  2. Go to BRAT settings → Click "Add a beta plugin".
  3. Paste the following GitHub repo URL: https://github.com/JinmuGo/obsidian-theme-by-folder
  4. Click Install and Enable the plugin!

Configuration

  1. Open Settings → Theme by Folder.
  2. Click Add Mapping to create a new mapping.
  3. Enter a Mapping Name, choose or type the Folder Path, select a Theme from the dropdown, and choose a Mode (Light/Dark/System).
  4. Repeat for additional folders as needed.
  5. (Optional) Set Default Theme and Default Mode for unmatched folders.

Usage

Once configured, simply open any note in your vault. The plugin will detect the note's folder and automatically apply the corresponding theme and mode. If no mapping is found, the Default Theme and Mode are used.

Development

Folder Structure

obsidian-theme-by-folder/
├── src/
│   ├── main.ts          # Core plugin logic
│   ├── settings.ts      # Types and default settings
│   ├── ui/              # UI components and renderers
│   └── utils/           # Utility functions
├── manifest.json        # Plugin manifest
├── package.json         # NPM package info
└── tsconfig.json        # TypeScript config

Build

pnpm install
pnpm build

Contributing

Contributions, issues, and feature requests are welcome! Please check out the issues page or open a pull request

License

This project is licensed under the 0BSD License. See LICENSE for details.

76%
HealthGood
ReviewSatisfactory
About
Switch Obsidian theme and light/dark mode automatically when opening notes in specified folders. Assign themes and modes per folder (Light, Dark, or System Default), set a default fallback for unmatched notes, and keep behavior fast with simple path-based matching.
ThemingFoldersAppearance
Details
Current version
1.3.1
Last updated
4 months ago
Created
Last year
Updates
6 releases
Downloads
2k
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Sponsor
GitHub Sponsors
Author
jinmugojinmugo
github.com/JinMuGo
GitHubjinmugo
  1. Community
  2. Plugins
  3. Theming
  4. Theme by Folder

Related plugins

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Hider

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

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Callout Manager

Easily create and customize callouts.

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.

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

Link Favicons

See the favicon for a linked website.

Lapel

Show the heading levels in the gutter of the editor.

Waypoint

Easily generate dynamic MOCs in your folder notes using waypoints. Enables folders to show up in the graph view and removes the need for messy tags!

Note Toolbar

Add customizable toolbars to your notes.