Rainbow Sidebar
SNIPPET
Foparty

Rainbow Sidebar

A simple sass snippet to modify the look of your Obsidian Sidebar just changing a few values

The BEST Obsidian Colored Sidebar

INPIRED BY: @sergiogmn and @cyanvoxel

IMPORTANT: rainbow-sidebar file will force you to name your folders like 01, 05, 012, etc. In the other hand im working on a new version (sidebar2.scss) that will not need any type of naming and also will color lost notes on the main tree. (it is working but not tested yet)

A simple sass snippet to modify the look of your Obsidian Sidebar just changing a few values

How to use


  1. Fork this repo or if you are not very tech savvy, download the zip file and extract it into your .obsidian/snippets folder.

this will create a folder called obsidian-rainbow-sidebar in your .obsidian/snippets folder

  1. Open the obsidian-rainbow-sidebar folder in your text editor of choice... for most people VSCode.

  2. Make sure there is a "dev" command on your package.json file.

  3. Install the dependencies by running the command npm install or yarn install / bun install (whatever you use)

  4. Run the command npm run dev or yarn dev / bun dev (whatever you use) to compile the sass file into a css file, that will be outputted to your .obsidian/snippets/

  5. Open your Obsidian settings and go to the Appearance tab.

  6. Turn on the CSS snippets, and turn on the snippet rainbow-sidebar if you havent changed the name.

  7. On your text editor, you can modify the SCSS file as much as you want, but if you don't really know how to use SCSS, just modify the variable on the top of the file.

    8.1: $iterations = NUMBER OF FOLDERS THAT YOU HAVE (you can set it as 3000 but this will output a lot of unused CSS)

    8.2: $base-hue = NUMBER THAT YOU WANT TO START FROM THE COLOR PALETTE. 0 will be red, 220 blue... you play around with it.

    8.3: $max-lightness = how light the color palette will be. 50% leaves it pretty good, i will not go highrt than 65%, or lower that 30%.

    8.4: $factor = this is a multiplier that will change the color palette. (if you set it as 0, all colors will be the same, if 1, the change will be almost none, I RECOMMEND GOING FROM 5 TO 15 you can set this with decimal numbers if needed).

    NOTE: the other variables are there just for future development of my main idea. witch was also adding gradient inside the folders. The problem for now is that i need to revisit my SCSS lessons cause if I do it now, the number of lines on the final CSS file goes over 160k.

    enjoy!

comparation between what you get now and what I want to achieve:

Related

How to Install

  1. Download the repository ZIP below
  2. Unzip it and find the CSS snippet file
  3. Move the CSS file into your vault's .obsidian/snippets/ folder
  4. Open Obsidian → Settings → Appearance → CSS Snippets → Enable it

Stats

Stars

0

Forks

0

Last updated 22mo ago

Categories