Adding Color to Obsidian--- A Rainbow of Possibility!

@Lithou - While working with @Cajun I believe we found a potential for improvement in your amazing colored folders snippet.

In it, you do specify the colors for the File names, and it looks like you specify folders to #ccccccFF (a shade of grey).
As a result, if a user is using a light theme, the names are (usually) a shade of grey/black, and do not render very well against your colors.

For their case, we simply added a snip to adjust these colors explicitly (and done so things will work in light and/or dark mode - which might be an unnecessary complication?):

.theme-light, .theme-dark {
  --file-title-color: #dddddd;
  --folder-title-color: #ffffff;
}
.nav-file-title-content{color:var(--file-title-color);}
.nav-folder-title-content{color: var(--folder-title-color);}

If you’re so inclined, please consider adding an adjustment to these elements so it’s all in one place (your snippet).

Thanks for your work!

*Edit - found the --FoldText variable in the snip. I missed it first time through.

1 Like