# Minimalist colored folders

**URL:** <https://forum.obsidian.md/t/minimalist-colored-folders/54032>\
**Category:** Themes & CSS snippets\
**Tags:** custom-css\
**Created:** [February 8, 2023, 1:47pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032 "2023-02-08T13:47:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![prrtzt](https://forum.obsidian.md/user_avatar/forum.obsidian.md/prrtzt/32/42250_2.png) [@prrtzt](https://forum.obsidian.md/u/prrtzt)\
**Post date:** [February 8, 2023, 1:47pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/1 "2023-02-08T13:47:29Z")

</div>

Hi all,

I’ve been looking for a way to add color to my folders. I tried the snippets created by [Lithou](https://forum.obsidian.md/t/adding-color-to-obsidian-a-rainbow-of-possibility/12805/11) and [pbhopeful](https://forum.obsidian.md/t/iterative-rainbow-folder-colors-css/21066) but I wanted something more minimalist.

So I made some changes and created two versions.

The first version “title only” will add a background to the title of top-level folders only. The second version will add a background to top-level folder and all of their contents. Colors and opacity can be modified at the top of the CSS file. The snippets don’t make any change to typography. Only colors and margin/padding of folders. Screenshots below are with the Things theme.

Title only

 ![Annotation 2023-02-08 141154](https://forum.obsidian.md/uploads/default/original/3X/1/a/1a58aabe02aeb65ddcddded8e718c418d847cfc4.png)

Title + contents

 ![Annotation 2023-02-08 141245](https://forum.obsidian.md/uploads/default/original/3X/7/c/7c42972e1ea5a9dec1b84694bc30d63eb75917fd.png)

The CSS snippets are available [on Github here](https://github.com/ptthstr/obsidian-minimalist-color-folders).

The “title only” snippet is pretty clean. The second one (title+contents) needs a bit of polishing: for instance, while hovering top-level folders, the background doesn’t overlap perfectly. I won’t spend additional time on it though, as I’m using the “title only” spinnet. Also, I’ve tested those in light mode only (I’m not a fan of dark mode).

Enjoy and feel free to propose some changes!

---

<div class="post-metadata">

**Author:** ![YungFilipinoPapi](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/91b2a8/32.png) [@YungFilipinoPapi](https://forum.obsidian.md/u/YungFilipinoPapi)\
**Post date:** [February 15, 2023, 9:46pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/2 "2023-02-15T21:46:30Z")

</div>

Thank you for sharing this! I’m a complete noob at all of this and was making slow progress trying to customise pbhopeful’s snippet when I found this - much much better.

I’m using the title+contents snippet on dark mode (Things theme) and am pretty happy with it - I just changed the colours to suit me better. I’m not sure what you meant by the hovering when hovering, but I’m happy with it anyway.

The only thing I would change further is the ability to change the individual colours of the subfolders, something halfway between yours and pbhopeful’s rendition, but I guess I will need to learn more about CSS to attempt it.

---

<div class="post-metadata">

**Author:** ![Tanto\_Monta](https://forum.obsidian.md/user_avatar/forum.obsidian.md/tanto_monta/32/47026_2.png) [@Tanto\_Monta](https://forum.obsidian.md/u/Tanto_Monta)\
**Post date:** [February 16, 2023, 4:49pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/3 "2023-02-16T16:49:01Z")

</div>

Thank you very much. I like it. 👍

---

<div class="post-metadata">

**Author:** ![ruben-sg](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@ruben-sg](https://forum.obsidian.md/u/ruben-sg)\
**Post date:** [October 3, 2023, 11:37am UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/4 "2023-10-03T11:37:36Z")

</div>

Thank you very much! The snippet works fine, except for one issue: When opening folders or editing notes, the folder or the note somewhat moves in the navigation.

You can see in the screenshot, that all the folders are closed. But because I had previously opened “Privat”, it is somewhat to the left. Any idea how to fix this?  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/8/6/861f64644cf3139b7951fd834f8312f6a31c275d.png)

---

<div class="post-metadata">

**Author:** ![StreLock](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@StreLock](https://forum.obsidian.md/u/StreLock)\
**Post date:** [December 6, 2023, 2:44am UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/5 "2023-12-06T02:44:55Z")

</div>

Had same issue  
Fixed by removing from css what comes after Other Settings - selectors that change margins and paddings etc.

---

<div class="post-metadata">

**Author:** ![CurlyDandelion](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/c/5f8ce5/32.png) [@CurlyDandelion](https://forum.obsidian.md/u/CurlyDandelion)\
**Post date:** [February 22, 2024, 12:36pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/6 "2024-02-22T12:36:08Z")

</div>

Edit: I managed. Did not know that CSS is something different. Thank you for this cool theme!

> [@CurlyDandelion](#):
>
> I know that this is really really old. I would love to use this theme, but I have trouble implementing it as I am new to Obsidian. The tutorials do not help. I can find the plugin-folder fine. I can download the files from github. I can also put the unzipped file into the plugin folder for obsidian. But it just does not show up in obsidian.  
> I managed to install another plugin directly in the app, so I am not sure, why it is not working.
> 
> Can someone help please? 🌻 thank you!

---

<div class="post-metadata">

**Author:** ![wordsman](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/w/e47774/32.png) [@wordsman](https://forum.obsidian.md/u/wordsman)\
**Post date:** [May 5, 2024, 10:06am UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/7 "2024-05-05T10:06:29Z")

</div>

I love this! I’m not a coder, though, so have no idea how to apply it. Do you have any instructions? Thanks 🙏🏻

---

<div class="post-metadata">

**Author:** ![Brom](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@Brom](https://forum.obsidian.md/u/Brom)\
**Post date:** [June 8, 2024, 12:40pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/8 "2024-06-08T12:40:09Z")

</div>

Hi everyone,  
Thank you for this snippet that I love !

I have a problem though : I don’t understand why the css snippet works on my synced vault on android, but not on the PC side…? Where should I look ?  
On PC : the css file is there (in the snippet folder), in the settings, it is “ON” and reloaded.  
I closed and relaunch the app on PC.  
hm…

---

<div class="post-metadata">

**Author:** ![ruben-sg](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@ruben-sg](https://forum.obsidian.md/u/ruben-sg)\
**Post date:** [June 9, 2024, 8:50am UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/9 "2024-06-09T08:50:55Z")

</div>

The css stopped working with the newest update. So maybe that’s your problem as well? Any idea on how to get the colors back would be appreciated! 🙂

---

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [June 9, 2024, 10:31am UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/10 "2024-06-09T10:31:35Z")

</div>

For Obsidian desktop and mobile v1.6+ only:

For the “[First level folder bg (Title only).css](https://github.com/ptthstr/obsidian-minimalist-color-folders/blob/main/First%20level%20folder%20bg%20(Title%20only).css)” snippet, replacing all the `.nav-folder.mod-root > .nav-folder-children` parts with `.nav-files-container > div >` should do it. e.g.

```auto
.nav-files-container > div > .nav-folder:nth-child(9n+2) > .nav-folder-title { ... }

```

 ![Screenshot 2024-06-09 at 7.02.13](https://forum.obsidian.md/uploads/default/original/3X/f/1/f116198cd37183283e17678cb23c4efa8c8ba8ef.png)

![Screenshot 2024-06-09 at 7.01.32](https://forum.obsidian.md/uploads/default/original/3X/6/b/6ba60863ca7ccfcc2493059721484a66dd0a4dbc.png)

---

<div class="post-metadata">

**Author:** ![ruben-sg](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@ruben-sg](https://forum.obsidian.md/u/ruben-sg)\
**Post date:** [June 9, 2024, 1:51pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/11 "2024-06-09T13:51:54Z")

</div>

Thank you! Worked perfectly!

---

<div class="post-metadata">

**Author:** ![registereduser](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/47e85d/32.png) [@registereduser](https://forum.obsidian.md/u/registereduser)\
**Post date:** [June 9, 2024, 4:27pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/12 "2024-06-09T16:27:12Z")

</div>

Appreciate that. Thank you!

---

<div class="post-metadata">

**Author:** ![Flickumbicus](https://forum.obsidian.md/user_avatar/forum.obsidian.md/flickumbicus/32/21625_2.png) [@Flickumbicus](https://forum.obsidian.md/u/Flickumbicus)\
**Post date:** [June 10, 2024, 7:47am UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/13 "2024-06-10T07:47:20Z")

</div>

Here’s another thank you from me! I really appreciate the fix. This helped with another CSS snippet I was using for folder colors.

---

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [June 10, 2024, 7:50am UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/14 "2024-06-10T07:50:34Z")

</div>

No problem!

Some of the colored folder options included with themes might be a bit tricky digging out the correct sections to update and make into a snippet, but the stand-alone folder snippets should mostly follow the above pattern.

---

<div class="post-metadata">

**Author:** ![DangerZone](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/b19c9b/32.png) [@DangerZone](https://forum.obsidian.md/u/DangerZone)\
**Post date:** [August 29, 2024, 4:45am UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/15 "2024-08-29T04:45:18Z")

</div>

Thank you for this! I made a custom CSS to color my folders and subfolders and it suddenly stopped working a few months ago. It was pretty hard to find the solution, but glad I found your post!

Is there a resource with more information on this css element naming change that you could point me to for future reference? Thanks!

---

<div class="post-metadata">

**Author:** ![MLG\_Herobrine](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mlg_herobrine/32/74860_2.png) [@MLG\_Herobrine](https://forum.obsidian.md/u/MLG_Herobrine)\
**Post date:** [December 29, 2024, 2:31pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/16 "2024-12-29T14:31:23Z")

</div>

I uploaded my fixed CSS snippets for Obsidian v1.6+. This also fixes the margin issue.

[First level folder bg (Title only).css](https://forum.obsidian.md/uploads/short-url/asW0jaAong8XpDYCCWb0zuAjozm.css) (3.5 KB)  
[First level folder bg.css](https://forum.obsidian.md/uploads/short-url/3vxFNz1wYdYO0AA9N0qhr262aNg.css) (3.5 KB)

---

<div class="post-metadata">

**Author:** ![ChesterWong](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/c/bcef8e/32.png) [@ChesterWong](https://forum.obsidian.md/u/ChesterWong)\
**Post date:** [January 16, 2025, 3:38pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/17 "2025-01-16T15:38:07Z")

</div>

thank you so much. this is gorgeous

---

<div class="post-metadata">

**Author:** ![hasssh](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/h/258eb7/32.png) [@hasssh](https://forum.obsidian.md/u/hasssh)\
**Post date:** [June 26, 2025, 11:08am UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/18 "2025-06-26T11:08:49Z")

</div>

thank you for this fix! it helped me a lot!

---

<div class="post-metadata">

**Author:** ![gb\_obsidian](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/51bf81/32.png) [@gb\_obsidian](https://forum.obsidian.md/u/gb_obsidian)\
**Post date:** [September 18, 2025, 8:07pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/19 "2025-09-18T20:07:33Z")

</div>

I took the liberty to change this to be in rainbow colours, or more precisely, in progress pride 🏳️‍⚧️ 🏳️‍🌈 flag colours, if anyone is interested, please find it attached.

 ![Bildschirmfoto 2025-09-18 um 21.38.24](https://forum.obsidian.md/uploads/default/original/3X/e/b/eb69fbed10d7784045c676060a514cde1cc1d3db.png)

[First\_level\_folder\_bg\_Rainbow.css](https://forum.obsidian.md/uploads/short-url/1BisLXAm3Pp3HZvhPPtb1pzhz4h.css) (4.3 KB)

---

<div class="post-metadata">

**Author:** ![winged](https://forum.obsidian.md/user_avatar/forum.obsidian.md/winged/32/47752_2.png) [@winged](https://forum.obsidian.md/u/winged)\
**Post date:** [November 3, 2025, 9:01pm UTC](https://forum.obsidian.md/t/minimalist-colored-folders/54032/20 "2025-11-03T21:01:40Z")

</div>

That’s SO cute 😃

[Next page](https://forum.obsidian.md/t/minimalist-colored-folders/54032.md?page=2)
