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

Rainbow Folders Fixer

dee158dee1582k downloads

Stop rainbow folders from changing colors when you scroll through the File explorer.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

This is a plugin I made for personal use in Obsidian. It solves the issue of rainbow folders changing colors as DOM elements are loaded and unloaded (i.e. when scrolling) in the File explorer by making use of data attributes.

How to use

In the plugin settings, there are three settings to be configured:

  • Number of colors: the number of colors you want to iterate through.
  • Attribute name: this is what will be added to the element. For example, putting "foldernumber" in here will add an attribute called "data-foldernumber" to the element.
  • Apply recursively: toggle this on or off to have the rainbow iterate recursively through all subfolders, or to keep all children folders the same color as their parents.

In your CSS snippets or your theme, you now only need to do the following instead of relying on Nth-child implementations (though it may still be useful to keep that on hand and commented out in case you no longer wish to use this plugin):

.nav-folder[data-foldernumber="1"] {
  --rainbowcolor: var(--rainbowcolor1);
}
.nav-folder[data-foldernumber="2"] {
  --rainbowcolor: var(--rainbowcolor2);
}
.nav-folder[data-foldernumber="3"] {
  --rainbowcolor: var(--rainbowcolor3);
}
/* etc... */
HealthGood
ReviewCaution
About
Fix rainbow folder color flicker in the File Explorer by adding stable data attributes to folder elements so colors remain consistent while scrolling. Apply per-folder numbering with optional recursive propagation and target folders in your theme/CSS via the data attribute (e.g. data-foldernumber) for reliable rainbow styling.
FoldersCSSTheming
Details
Current version
1.0.0
Last updated
Last year
Created
Last year
Updates
1 release
Downloads
2k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
dee158dee158
GitHubdee158
  1. Community
  2. Plugins
  3. Folders
  4. Rainbow Folders Fixer

Related plugins

Style Settings

Adjust theme, plugin, and snippet CSS variables.

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.

Theme by Folder

Automatically switch themes based on the folder of the opened note

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Hider

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

Custom Frames

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

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.

Admonition

Admonition block-styled content.

Folder notes

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

CSS Editor

Edit CSS snippet files.