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

Thanks for the ideas and CSS shared in this thread.

Really do like the visual support given by the coloured folders. However, with the current CSS, every time I add or remove a folder, I have to edit the CSS to change a specific folder name.

Is it possible to create a colouring scheme that colours folders just by their position in Obsidian: so the first folder is red, the second is orange, the third is green, etc? And is it possible to limit this just to top-level folders, the way it works now, without sub-folders taking on their own colours?

I have tried editing the CSS provided here and on this thread, but can’t make anything work. I can make all top-level folders have the same background colour, but the rainbow eludes me.

Thanks

Angel