File Color
SNIPPET
ecustic

File Color

An Obsidian plugin for setting colors on folders and files in the file tree.

183 Stars
GitHub
CSSAny theme
# Obsidian File Color

![Obsidian File Color Banner](./docs/images/hero-rounded.png)

## What is this?
This is a plugin for [Obsidian](https://obsidian.md), which allows you to select colors for your files and folders in the file explorer.

## Usage

Setting the color for a file or folder is done by right clicking on the file in the file explorer and selecting `Set color`. This opens a modal where you can select all the colors defined in the plugin palette.

![Setting a color](./docs/images/set-color-rounded.gif)

### Changing the palette

To add colors to the palette open the plugin settings, and click the `+` button. Then use the color picker to select the color, and input a name for the color. Afterwards it will appear in the `Set color` modal. You can add as many colors as you need.

![Adding a color](./docs/images/add-color-rounded.gif)

### Options

- Cascade Colors: if turned on, colors on folders will cascade to their children. Set colors on children to override parents.
- Background Colors: if turned on, the background is colored instead of the text.

## Compatibility

This plugin has been tested with a few other community plugins:

* [Icon Folder](https://github.com/FlorianWoelki/obsidian-icon-folder)
  * Should work out of the box, and colors should automatically be applied to the icons as well.
* [Folder Note](https://github.com/aidenlx/folder-note-core)
  * Will also work out of the box, however the underlines added to the files will not be colored.
  * Personally I use the following CSS snippet locally:

    ```css
    .nav-folder.alx-folder-with-note>.nav-folder-title>.nav-folder-title-content {
      text-decoration-style: dotted;
      text-decoration-color: inherit;
    }
    ```
    Which will make make the underline use the colors defined by this plugin. The result looks something like this:

    ![Example with icons and folder notes](./docs/images/icons-notes-rounded.png)
---

<div align="center">
  <a href="https://www.buymeacoffee.com/ecustic">
    <img src="https://media2.giphy.com/media/7ssLleBvWvESbx0BuG/giphy.gif" />
  </a>
</div>

How to Install

  1. Download the CSS file below
  2. Move it to your vault's .obsidian/snippets/ folder
  3. Open Obsidian → Settings → Appearance → CSS Snippets → Enable it
Download snippet.css

Stats

Stars

183

Forks

17

License

MIT

Last updated 28mo ago