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

Folder Accents

EmmaEmma35 downloads

Automatically change accent colour based on which folder your note is in.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Automatically change Obsidian's accent colour based on which folder your note is in.

folder accents demo

Companion plugin for the COLOURS theme. COLOURS derives its entire palette from a single --color-accent variable. Folder Accents extends that by letting different parts of your vault have their own distinct colour identity, automatically, without any manual switching.

It is designed specifically to unlock COLOURS' per-folder palette feature. Might work with any theme that respects --color-accent.

How It Works

When you open a note, the plugin checks which folder it lives in. If the folder has a colour assigned, the entire UI shifts to that accent colour instantly. Open a note in a different folder and the colour follows.

Features

  • Per-folder accent colours — assign any colour to any folder
  • Subfolder inheritance — Projects/Work inherits from Projects if no exact match is defined
  • Most-specific match wins — no need to worry about order; deeper paths always take priority
  • Native folder search — type to find folders, just like Obsidian's core plugins
  • Live preview — colour changes the moment you switch files
  • Backup & Restore — export and import your mappings as JSON

Installation

Manual

  1. Download main.js and manifest.json
  2. Create .obsidian/plugins/folder-accents/ in your vault
  3. Place both files there
  4. Settings → Community Plugins → enable Folder Accents

From Community Plugins

  1. Settings → Community Plugins → Browse
  2. Search for Folder Accents
  3. Install and enable

Usage

  1. Open Settings → Community Plugins → Folder Accents → Options
  2. Click + Add Folder
  3. Type a folder name — matching folders appear as you type
  4. Pick a colour with the colour picker
  5. Open any note in that folder — the accent changes automatically

folder accents demo

To back up your mappings, use Export in the settings panel. To restore, use Import.

Folder Priority

When a note could match more than one mapped folder, the most specific path always wins — meaning the longest matching folder path takes precedence, regardless of the order mappings appear in settings.

Example:

Mapping Colour
Projects Blue
Projects/Work Red
Projects/Work/Active Green

Opening a note in Projects/Work/Active/note.md applies Green, because Projects/Work/Active is the longest match. A note in Projects/Work/old-note.md gets Red. A note directly in Projects/ gets Blue.

If only Projects is mapped, all notes inside it — including those in Projects/Work and deeper — inherit Blue. Add a more specific mapping at any time to override just that subtree.

How It Works (Technical)

The plugin injects a small CSS override onto <body> when you open a file:

body[data-folder-accent="folder-accent-0"] {
  --color-accent: #7F8C8D !important;
}

Because Obsidian themes derive UI colours from --color-accent, the entire interface updates instantly — no reload needed.

Compatibility

  • Obsidian: v0.15.0+
  • Mobile: Yes (iOS and Android)
  • Themes: Any theme using CSS --color-accent

License

GPL-3.0

98%
HealthExcellent
ReviewPassed
About
Change Obsidian's accent color automatically based on the folder of the open note. Assign per-folder colours with subfolder inheritance and most-specific-path priority, preview changes live, and import/export mappings as JSON. For COLOURS theme and might works on theme that respects `--color-accent`.
ThemingFolders
Details
Current version
1.0.0
Last updated
Last week
Created
Last week
Updates
1 release
Downloads
35
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
EmmaEmmawrongvibe
GitHubwrongvibe
  1. Community
  2. Plugins
  3. Theming
  4. Folder Accents

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.

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!

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

Folder notes

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

Multi Properties

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

Simple Note Review

Simple, customizable plugin for easy note review, resurfacing and repetition.

Create Note in Folder

Add commands to create a note in a specific folder.

File Explorer Note Count

See the number of notes in each folder within the file explorer.