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
  • Updates8

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.

HealthExcellent
ReviewPassed
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.3
Last updated
4 weeks ago
Created
Last year
Updates
8 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
jinmu.me
  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.

Share Note

Instantly share/publish a note, with the full theme and content exactly like you see in Obsidian. Data is shared encrypted by default, and only you and the person you send it to have the key.

Multi Properties

Add properties to multiple notes at once. Either right-click a folder or select multiple notes and right-click the selection.

Note Toolbar

Add customizable toolbars to your notes.

Folder notes

Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.

Link Favicons

See the favicon for a linked website.