jinmugo2k downloadsAutomatically switch themes based on the folder of the opened note
Automatically switch Obsidian themes based on the folder of the opened note.
https://github.com/user-attachments/assets/cdf6700d-08c4-498a-8fec-ba0ab977adc3
git clone https://github.com/JinmuGo/obsidian-theme-by-folder .obsidian/plugins/theme-by-folder
You can use BRAT (Beta Reviewer's Auto-update Tool) to install this plugin before it becomes publicly listed:
BRAT settings → Click "Add a beta plugin".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.
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
pnpm install
pnpm build
Contributions, issues, and feature requests are welcome! Please check out the issues page or open a pull request
This project is licensed under the 0BSD License. See LICENSE for details.