Rainbow Tree

pending

by satoshikokubo

Colorize the file explorer with rainbow background colors and layered indent bars that show folder depth at a glance.

Updated 1mo agoMITDiscovered via Obsidian Unofficial Plugins
View on GitHub

๐ŸŒˆ Rainbow Tree

Colorize your Obsidian file explorer with rainbow backgrounds and layered indent bars.

Rainbow Tree automatically assigns colors from a customizable palette to every folder and file in your file explorer. Nested items display stacked color bars on the left edge, making folder depth instantly visible.

Rainbow Tree Screenshot

Features

  • Rainbow backgrounds โ€” Each item gets a color from a 7-color rainbow palette (Red โ†’ Orange โ†’ Yellow โ†’ Green โ†’ Blue โ†’ Indigo โ†’ Violet)
  • Layered indent bars โ€” Child items show stacked bars on the left, each matching its ancestor's color
  • Dark & Light theme support โ€” Separate color definitions for each theme with automatic switching
  • Two color modes โ€” Stable (path-based, consistent across sessions) or Dynamic (optimizes for minimal adjacent color duplication)
  • Fully customizable palette โ€” Add, remove, or modify colors with independent dark/light pickers
  • Per-folder color override โ€” Right-click any folder to assign a custom color
  • Adjustable bar style โ€” Width (2โ€“16 px), opacity (0.1โ€“1.0), and gap (0โ€“4 px)
  • Smooth animations โ€” Optional fade-in when expanding folders
  • Japanese & English โ€” Full i18n support

Installation

From Community Plugins (Recommended)

  1. Open Settings โ†’ Community Plugins โ†’ Browse
  2. Search for "Rainbow Tree"
  3. Click Install, then Enable

Manual Installation

  1. Download the latest release (main.js, manifest.json, styles.css) from Releases
  2. Create a folder: <your-vault>/.obsidian/plugins/rainbow-tree/
  3. Copy the three files into that folder
  4. Enable the plugin in Settings โ†’ Community Plugins

Settings

SettingDefaultDescription
Enable Rainbow TreeOnToggle the entire plugin
Color modeStableStable: colors are path-based and consistent. Dynamic: minimizes adjacent duplicate colors
Bar Width16 pxWidth of each color bar
Bar Opacity0.25Opacity of background colors and bars
Bar Gap3 pxGap between stacked bars
Expand animationOnFade-in effect when expanding folders
Compact row spacingOffReduce vertical gaps (experimental, may conflict with some themes)

Color Modes

Stable Mode (Default)

Colors are determined by each item's path using a hash function. This means:

  • Colors stay the same even when you scroll or collapse/expand folders
  • Reopening the vault shows identical colors
  • Best for users who want a consistent visual layout

Dynamic Mode

Colors are assigned by visual order, actively avoiding adjacent duplicate colors:

  • The last visible child and the next sibling folder will have different colors
  • Parent colors are excluded from child palettes
  • Best for users who prioritize visual distinction between adjacent rows

Customization Tips

  • Increase bar width (12โ€“16 px) for a bold, colorful look
  • Decrease opacity (0.1โ€“0.15) for subtle tinting that doesn't distract
  • Set bar gap to 0 for a seamless, flush appearance
  • Right-click a folder to assign an override color โ€” useful for marking important project folders

Compatibility

  • Obsidian v1.5.0+
  • Desktop (Windows, macOS, Linux) and Mobile (iOS, Android)
  • Works with both dark and light themes
  • Compatible with custom CSS themes (colors adapt to your background)

Development

git clone https://github.com/satoshikokubo/rainbow-tree.git
cd rainbow-tree
npm install
npm run dev    # watch mode
npm run build  # production build

Support

If you find Rainbow Tree useful, consider supporting development:

Buy Me a Coffee

License

MIT


๐ŸŒˆ Rainbow Tree by satoshikokubo

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.